Feat/Snippet Storage Setup for #107

Initial Setup Complete

Core snippets structure has been established.
Basic functionality is in place.

Next Steps / Known Improvements:
UI/UX refinement, including:

[ ] Implementing tag management for better organization.
[ ] Improving folder structures, such as paths/ for clarity and consistency.
[ ] Adding functionality for file annotations/notes for better context.
[ ] Implement search.

Code Refactor, including:

[ ] Refactor Update Functions
[ ] Debounce db updates
[ ] Move out Rust sqlite migrations

Feature expansions

[ ] Sharing?
[ ]

Data structures are mostly done for these

LGTM, mind if I do some changes after merging? I will be primarily optimizing queries, setting up some structure, might install some ORM as well not sure. because I was thinking of saving some settings to DB as well, like JSON editor or pastebins etc.

Yeah for sure! Go ahead, missed the 'IF NOT EXISTS' and the setup was a rough draft. But an ORM could definitely make it easier to extend.
Lemme know when you're ready. Will be continuing on the other feature's ✌


Update version: MarcinOtorowski.MSIXHero version <IP_ADDRESS>

Pull request has been created with komac v2.4.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run


Release 0.57.1

Target release date is the end of November 2023 or when #4454 is resolved. Whichever is sooner.

#4454 was merged.

Release is underway


[SPARK-31253][SQL][FOLLOW-UP] simplify the code of calculating size metrics of AQE shuffle

What changes were proposed in this pull request?

A followup of https://github.com/apache/spark/pull/28175:

use mutable collection to store the driver metrics
don't send size metrics if there is no map stats, as UI will display size as 0 if there is no data
calculate partition data size separately, to make the code easier to read.

Why are the changes needed?

code simplification
Does this PR introduce any user-facing change?

no
How was this patch tested?

existing tests

cc @JkSelf @maryannxue

Test build #121405 has started for PR 28240 at commit 3092cd8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/26088/
Test PASSed.

Test build #121405 has finished for PR 28240 at commit 3092cd8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/121405/
Test PASSed.

Thanks! Merged to master/3.0

Merged to master only, please manually backport this to 3.0. Thanks!

We haven't decided to backport the AQE SQL metrics yet, so this PR can't be backported for now.


copy folders in Windows

I am using Windows 7,
I have folder with subfolder which i want copy
problem is with subfolder and dev-server: this plugin return assets with backslash and dev-server don't find this files
example:
assets\lang\en.json from plugins
assets/lang/en.json from browser request

I have the same problem (win10, node@7, copy-webpack-plugin@4.0.0).
Running the tests with npm run build && npm run build:tests && mocha compiled_tests/ gives 30 failing tests, all involving mismatched slashes and backslashes, like e.g.
1) apply function with glob in from can use a glob to move multiple files to the root directory:

  AssertionError: expected { Object (binextension.bin, file.txt, ...) } to have keys 'binextension.bin', 'file.txt', 'directory/directoryfile.txt', 'directory/nested/nestedfile.txt', and 'noextension'
  + expected - actual

   [
     "binextension.bin"
  -  "directory\\directoryfile.txt"
  -  "directory\\nested\\nestedfile.txt"
  +  "directory/directoryfile.txt"
  +  "directory/nested/nestedfile.txt"
     "file.txt"
     "noextension"
   ]

  at C:\r\github\copy-webpack-plugin\compiled_tests\index.js:117:67

Downgrading to<EMAIL_ADDRESS>fixes the issue for me for now.

I will see if I can figure out a fix for this...

@larsthorup Saw your PR; I'll get that in soon. This is definitely a gap in our test coverage. I think I can add tests around this without spinning up a cross-platform CI.


What about define a Termination Criteria interface?

Most of the algorithms combine some of the following criteria to determine when an algorithm should stop:

Maximum number of iterations.
Maximum time.
Maximum number of iterations without improving.

Also, it could be interesting to set a minimum number of iterations the algorithm should be executed before stop.
When developing this interface, it should be taken into consideration that users could want to define their own termination criteria.

As of now, each algorithm has its own termination criteria, and I would keep it this way for simplicity. If many algorithms have common termination criteria we can revisit this issue.
Users can already define their own termination criteria for their custom algorithms as they wish. By forcing a common interface we may be forcing users to implement termination criterias in their algorithms they may not be interested in.


Not able to parse the DIDWW wsdl

Hello,
I have the following wsdl files:
https://sandbox-api.didww.com/api2/index.php?wsdl
https://api.didww.com/api2/?wsdl
But I'm not able to generate the client.
soap:wsdl2erlang("conf/did-sandbox.wsdl").
What must be generated?
1: client
2: server
3: both
Select a number: 1

Do you want to generate test stubs/skeletons?
1: no
2: yes, client only
3: yes, server only
4: yes, client and server
Select a number: 1

Which http client must be used?
1: ibrowse
2: inets
Select a number: 1
** exception error: no match of right hand side value {error,
                                                       "Include file not found (undefined)"}
     in function  soap_parse_wsdl:add_schemas/5 (src/soap_parse_wsdl.erl, line 212)
     in call from soap_parse_wsdl:parse_wsdls/3 (src/soap_parse_wsdl.erl, line 146)
     in call from soap_parse_wsdl:file/4 (src/soap_parse_wsdl.erl, line 80)
     in call from soap_parse_wsdl:get_model/2 (src/soap_parse_wsdl.erl, line 55)
     in call from soap_parse_wsdl:get_namespaces/2 (src/soap_parse_wsdl.erl, line 66)
     in call from soap:wsdl2erlang/2 (src/soap.erl, line 313)

Silviu

Both WSDLs use SOAP encoding. The SOAP framework only supports WSDLs that are compliant with WS-I basic profile, which means that only literal encoding is supported.

Is xsd:enumeration supported? I noticed that the following wsdl did not work.
<xsd:simpleType name="Color">
     <xsd:restriction base="xsd:string">
         <xsd:enumeration value="BLUE" />
         <xsd:enumeration value="RED" />
         <xsd:enumeration value="GREEN" />
      </xsd:restriction>
</xsd:simpleType>

Unfortunately, no. soap uses erlsom for processing XML, and according to https://github.com/willemdj/erlsom/blob/master/README.md#xml-schema-elements enumerations are

Ignored (all restrictions on simple types are ignored - those types are treated as ‘string’)

Not sure how difficult it would be to support it. @willemdj ?

What do you mean exactly when you say that the "wsdl did not work"?
The enumeration should not be a reason for it not to work. You should be able to process the WSDL, and the client or server should be able to send/process requests. But you will not get a parsing error when you send/receive a value that is outside the range, so if you care about that your application will have to take care of it.

What do you mean exactly when you say that the "wsdl did not work"?

There is no compilation failure for definition of simpleType per-say but the type is reported as unknown when used elsewhere.
==> Generated file SomeService_client.erl
** exception throw: {error,"Type not found",'P4:Color'}
     in function  erlsom_example_value:from_type/3 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 64)
     in call from erlsom_example_value:from_alternative/4 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 192)
     in call from erlsom_example_value:'-from_element/4-lc$^0/1-0-'/4 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 136)
     in call from erlsom_example_value:from_element/4 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 136)
     in call from erlsom_example_value:from_elements/5 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 90)
     in call from erlsom_example_value:from_type2/3 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 72)
     in call from erlsom_example_value:from_alternative/4 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 192)
     in call from erlsom_example_value:'-from_element/4-lc$^0/1-0-'/4 (_build/default/lib/erlsom/src/erlsom_example_value.erl, line 136)

The usage is as follows:
	<xsd:complexType name="someStatus">
		<xsd:sequence>
			<xsd:element name="arg0" nillable="true" type="xsd:long" />
			<xsd:element name="arg1" nillable="true" type="ns0:Color" />
		</xsd:sequence>
	</xsd:complexType>

The code for client is generated only when I get rid of usage for the simpleType (see below).
			<xsd:element name="arg1" nillable="true" type="xsd:string" />

Can you provide a complete example? That is, the WSDL (and possibly imported files)? Something that shows how ns0 is imported/included in the WSDL, at least, because there seems to be a problem with that.

Hmm.. I made this up because the WSDL is not in public domain. I'll have to spend some time to build a complete example.

@neeraj9 is this still an issue for you?

@cmullaparthi The auto-gen code treats enumeration as string, but that is alright for now after I changed the WSDL a bit.
Must say this project is a saviour, while helping me spread Erlang in my current organization because moving a legacy system which uses SOAP doesn't go away so easily :)
Thanks for making it open source.


Allow usage of symbols to plot a function from terminal.

User should be able to use symbols to plot the function instead of always using solid line. Matplotlib allows certain symplos like dashed line, dots etc to plot functions. PlotIt should also be able to use those symbols from terminal. Add a switch for the same so that the symbol can be passed as a parameter from command line.

Can you please elaborate which symbols are you talking about? @djmgit

@ankan17 please check what symbols are provided by matplotlip
As far I remember, they allow dashes '-' , dots '.', and a few more. Please checkout the options provided by matplotlip. Add a suitable switch. User should be able to use it in the following way:
python plotit.py -f x --symbol -

@djmgit I will work on this issue.

This issue can be closed @djmgit


Add a Model and Test the SAPUI5 App

Tutorial URL: https://developers.sap.com/tutorials/sapui5-webide-setup-datasource.html
Please specify the step you are referring to : step 6 : Click on $metadata, then click the Preview tab.
I am getting , this error, "Access-Control-Allow-Origin" , " has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." attached is the screenshot for same.

Hi,
sorry for the late response! This is strange and shouldn't happen. I just tried to reproduce this and it works fine for me.
Can you please check if you still have the same issue and if it appears in other browsers too?


Unsupported runtime for Java Lambda functions

docker version: 1.35
sam version: 0.2.4
java jdk version: 1.8.0_152
I have defined a couple of simple Lambda functions that work properly when imported through the Lambda console. In my template, I have specified the runtime as java8 and the CodeUri points to the correct jar. When running sam local start-api, I'm told that none of my functions were mounted due to an unsupported runtime. While looking through the open issues, I found that defining globals might cause this, so I've removed the global function definitions and set the runtime and codeUri to each individual function, but the issue still persists.
Edit:
When invoking one of the functions using sam local invoke "UserFunction"
I get the following:
Could not initiate  runtime: unsupported runtime
note: there is two spaces between 'initiate' and 'runtime' where it should show 'java8'

I'm running into the same error message. Changing the contents of the "Handler" section of the yaml file doesn't seem to affect this.
Log:
> sam local invoke "MyLambdaFunction"
2018/02/20 11:34:31 Successfully parsed template.yaml
2018/02/20 11:34:31 Connected to Docker 1.35
2018/02/20 11:34:31 Could not initiate  runtime: unsupported runtime
> sam --version
sam version 0.2.6
> docker --version
Docker version 17.12.0-ce, build c97c6d6

template.yaml:
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
  MyLambdaFunction:
    Type: AWS::Serverless::Function
    CodeUri: ./code
    Runtime: nodejs6.10
    Handler: app.handler
    Timeout: 5

I'm having a similar error:
ValueError: Unsupported Lambda runtime {u'Ref': u'Runtime'}

In the template I'm defining the runtime with a reference
Runtime: !Ref Runtime

I guess !Ref is not supported yet.

Yes, Ref of a property for Runtime is not yet supported.


Text index approaches

implementing text indexing in two different fashions.  let the voting commence.

Here are two approaches to defining text indexes:  the first uses 3 annotations; the second only one.  I lean slightly toward the first approach as it's a bit easier to parse and verify the values.  The second on is definitely the one stop shop but requires a bit of duplication between the 'value' and 'weights' parameters and then there's that ugly string parsing needed to get at the weight values.  Since it's a string there's no way to enforce that only int values are passed in until validated at runtime.
Still, here are two options.  Which feels better?

The first is arguably uglier, but it does allow much greater flexibility for extension. And given we don't know what sort of indexes are coming in the future, it feels a bit safer.


Cant' download from Soundcloud: HTTP 401 error

I've tried this from two different computers, so it's not me being blocked or something:
./youtube-dl https://soundcloud.com/dopesongsoundzmusic/k-camp-comfortable --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://soundcloud.com/dopesongsoundzmusic/k-camp-comfortable', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.22
[debug] Python version 2.7.3 - Linux-3.2.0-60-virtual-x86_64-with-Ubuntu-12.04-precise
[debug] exe versions: avconv 0.8.17-4, avprobe 0.8.17-4, ffmpeg N-39499-g12292f3, ffprobe N-39499-g12292f3, rtmpdump 2.4
[debug] Proxy map: {}
[soundcloud] dopesongsoundzmusic/k-camp-comfortable: Resolving id
[soundcloud] dopesongsoundzmusic/k-camp-comfortable: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "./youtube-dl/youtube_dl/extractor/common.py", line 326, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1865, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Duplicate of #6930.


Improve Debugger Attaching to child process experience

Hi,
(This is not a bug, but a feature request).
In my code I have a master process that forks a child process, the master process debug port is 5858, for the child process I set the debug port to 5859.
VS is attaching to port 5858, but then the child process hangs as it is waiting for a debugger to attach to its debug port...
server.js:
var cp = require('child_process'),
    path = require('path');

var WORKER_PATH = path.resolve(__dirname, 'worker.js');
var WORKER_ARGS = [];

console.log('Master starting...');

setTimeout(function () {
    console.log('Forking worker');

    var execArgv = process.execArgv.slice();
    var debugPort = process.debugPort + 1;
    for (var i = 0; i < execArgv.length; i++) {
        var match = execArgv[i].match(/^(--debug|--debug-brk)(=\d+)?$/);
        if (match) {
            execArgv[i] = match[1] + '=' + debugPort;
            break;
        }
    }

    var options = { env: process.env, silent: false, execArgv: execArgv };
    var nodeFork = cp.fork(WORKER_PATH, WORKER_ARGS, options);
    console.log('Forked worker, pid:', nodeFork.pid);
}, 1000);

worker.js
console.log('Worker is starting, pid:', process.pid);
setInterval(function () {
    console.log('Worker still alive, pid:', process.pid);
}, 2000);

The output I see:

Any updates on this?
I also noticed if you use cluster the debugger does not attach to workers and the entire experience if borked...

Thanks for bumping this. Eventually we hope to streamline the process, but here's what you can do in the meantime.
In VS, you can actually attach to multiple ports at a time. So as soon as you hit...

You can do Debug > Attach to Process... (Ctrl + Alt + P)

Specify the following options in the dialog:

Transport: Node.js Remote Debugging
Qualifier: localhost:5859

Then press Refresh, and you'll see the process appear in the list of Available Processes.

Then when you select Attach, you'll be able to continue and hit breakpoints in the worker.

If you're attaching to multiple processes, the Process dropdown will let you know where you are, and help you move between them.

Let me know if you have any more questions - we've been meaning to document this specific scenario for some time.

Thx. I have tried the regular "attach to process" method before opening this issue and it didn't work, I'll try to use the correct transport now...
What about profiling child processes? should it work regularly or a tweak is needed?
thanks again...

Yeah, that should work fine. There's nothing too special going on there. Essentially, we run
node --prof server.js under the covers, grab the v8 log, and sprinkle in some VS reporting tools to make it more useful. You can also drag in an existing log.
https://github.com/Microsoft/nodejstools/wiki/Profiling

Also... if you get the chance to play around with it further and have any ideas, then now's the perfect time to bring them up - turns out we have a meeting with some of the VS profiling/diagnostics folks about potential improvements in this area early next week!

Hi,
The debugging is working great after attaching using the "Node.js remote debugging" transport.
Profiling is not working so well (actually at all) for child processes...

@ValYouW are samples collected properly if you run node --prof myScript.js in the command line? If not, then that is an issue with node/v8, and we unfortunately can't do anything about it short of writing our own profiling hooks.

Hi, any chance of seeing the streamlining of attaching to multiple child processes automatically while debugging? I have a large node.js app using a plugin pattern that I have just split into separate child_processes because any instability in a plugin will bring down the whole process. All working well (except for using a bit more memory) but its a real pain to debug the child plugins manually.
Ideally if VS monitors child_process fork/spawn and automatically attaches to the child PID that would be sweet!

How is this a closed issue.  I see the exact same thing on 9/2/2016

@JohnRucker This issue is open and tracking possible improvements that could be made to debugging node child process.
To debug child processes, the current behavior of NTVS is no different from what node normally does (see this issue and explanation). We'd like to improve this, and would happily accept any contributions in this area.

“Attach to process…” works fine for remote debugging, but it is not convenient to attach each child process every time after running the application.
I use the solution based on Visual Commander Extension.  You can create the buttons on the tools bar and attach all child process with one click.

After installing free edition of Visual Commander Extension choose VCmd –> Commands…
and create two small scripts on Visual Basic with code below (use your own addresses and ports):

For quick attach to one process.

Imports EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualBasic

Public Class C
	Implements VisualCommanderExt.ICommand

	Sub Run(DTE As EnvDTE80.DTE2, package As Microsoft.VisualStudio.Shell.Package) Implements VisualCommanderExt.ICommand.Run
          Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger
          Dim trans As EnvDTE80.Transport = dbg2.Transports.Item("Node.js remote debugging")
          Dim processRemote As EnvDTE80.Process2

	   Dim mPort As String = InputBox( "Debug port?", "tcp://<IP_ADDRESS>:****")

	   If mPort <> "" Then
					' your remote address or <IP_ADDRESS>
          	Dim transportQualifier = "tcp://<IP_ADDRESS>:" & mPort & "/"
          	Dim processesRemote = dbg2.GetProcesses(trans, transportQualifier)
	   	processesRemote.Item("node.exe").Attach()
	   End If
	End Sub

End Class

For quick attach to all processes.

Imports EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualBasic

Public Class C
	Implements VisualCommanderExt.ICommand
	Sub Run(DTE As EnvDTE80.DTE2, package As Microsoft.VisualStudio.Shell.Package) Implements VisualCommanderExt.ICommand.Run

 	Try
          Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger
          Dim trans As EnvDTE80.Transport = dbg2.Transports.Item("Node.js remote debugging")

          Dim processRemote As EnvDTE80.Process2
	   Dim transportQualifier As String

		' your ports of child processes
          For mPort As Integer = 8560 To 8562
		' your remote address or <IP_ADDRESS>
            transportQualifier = "tcp://<IP_ADDRESS>:" & CStr(mPort) & "/"
            Dim processesRemote = dbg2.GetProcesses(trans, transportQualifier)
	     processesRemote.Item("node.exe").Attach()
          Next

	Catch ex As System.Exception
	   MsgBox(ex.Message)
    	End Try

	End Sub
End Class

Add them into your tools bar using:
Service -> Customize -> Commands -> Toolbar -> Add command... -> VCmd
You will see the list of VCmd commands, choose your own.

@VooVoo01 that's awesome! thanks for sharing!

“Attach to process…” does not work for remote debugging in VS2015 with node.js v.8 and higher if we are using the command '--inspect-port=5860' (for example).
Are there any solutions for debugging child processes with VS2015 and node.js v.8?

@VooVoo01 unfortunately Node 8 debugging will not be support in VS 2015.
Visual Studio 2017 Update 3 works great with Node 8 though.

Tracking this in an internal tracker, since this is an issue in the node 8 debugger, which doesn't use the GitHub issue tracker.


Fix TEST instruction emulation

This PR fixes two issues with the instruction emulator:

Many unsupported MMIO instructions (e.g. TEST r/mN, rN, XCHG r/mN, rN, etc.) lead to a host crash.
TEST r/mN, rN is not supported.

@junxiaoc Ah, right, the wording isn't the best. Let's wait for the test result, in case there's also something in the code that needs to be fixed as well.

Confirmed (a) in my comment above, that the new updated driver no longer causes a kernel panic. Have not explicitly verified correctness of (b) yet, but my target appears to be getting much farther.

@mborgerson Thanks! If you have time for one more test, could you apply only the first patch 40330993d8c2c6738903acc7c2dd924fe6bc31bf and capture HAXM logs? The purpose of this patch is not only to avoid a host kernel panic, but also to log useful information about the unsupported MMIO instruction.
You can run the following command to catch live HAXM output:
log stream --predicate 'eventMessage contains "hax"' --info


(feature request) make router connect stdcells to power rings

In a mixed-signal design from OpenFASoC with two voltage domains (VDD and VIN), I have some cells placed in a VDD grid that must also connect to the other domain's net (VIN). However, when running global_route and detailed_route, there's no route from these cells to the VIN voltage domain ring (generated via pdngen).
The two voltage domains:

The cells that must connect to VIN (they're already in the VDD grid):

The resulting route after global_route and detailed_route are run (there is no route from the cells to the VIN ring):

How to create this connection?
To reproduce the case:

Download reproduce_case_routing.tar.gz
Run openroad or openroad -gui
Source the script.tcl file

I've noticed the routing to VIN works when using an older pdn.cfg for this design (deprecated in pdngen).
However, when using the newer pdn.tcl we wrote (like in the images above), it doesn't.
Here are these files, if need be:
pdngen_files_case_routing.tar.gz

Power nets are not routed by the signal routers (grt/drt).  pdn doesn't create tracks.  The description of this problem is very confusing.

This looks like the enhancement request for sroute that I keep asking for a spec for.  Nothing will happen until this project has been properly defined.  @msaligane

I have no bandwidth and I am not great at writing specs.
@luccareinehr can you work on that with @maliberty .

@maliberty Sorry for the confusing description. What I meant was: there's a cell that should connect to a voltage domain it is not in (VIN), but the routing doesn't get generated.
There's a workaround for this where a second VIN net is created exactly in the same place as the original, but with a SIGNAL type (instead of POWER), and this new net gets connected to the cells in the other voltage domain instead. Then routing does get generated automatically, but I doubt this is the intended solution:

@msaligane mentioned requesting the addition of a point-to-point router to OpenROAD, is this the enhancement request Matt mentions in his comment?

@msaligane mentioned requesting the addition of a point-to-point router to OpenROAD, is this the enhancement request Matt mentions in his comment?

@maliberty Indeed, I'll reserve time to talk to mehdi and give you a proper spec.
As for this issue, yes it could be solved with a p2p router, but I don't think that's the best solution. Afaik, OpenROAD is intended to be a no-human-in-the-loop flow, but in its current state, if there are multiple voltage domains in a design and a cell which has connections to more than one of them (and is not a level converter), it won't get routed automatically.
Please correct me if I misunderstood something, or if my request is not very clear. Thanks for the support by the way

Afaik, OpenROAD is intended to be a no-human-in-the-loop flow

From my understanding, OpenROAD is intended to be no-human-in-the-loop for digital designs. It's a lofty goal that still has a lot of work to be done.

if there are multiple voltage domains in a design and a cell which has connections to more than one of them (and is not a level converter), it won't get routed automatically.

For clarity, what you are describing is a special net router and is not typically used in digital flows. The use case for this would be for non-digital signals, as in your case. So as @maliberty said, it's not currently supported and would have to be implemented.

@rovinski Thank you for the clarification!
@maliberty should I close this issue?

You can rename this issue to ask for the for feature.

The cell is connecting to a power ring not another cell.  That is not the normal multi-power domain P&R use model.  Even in proprietary tools this is a completely separate router because it is a totally different requirement from signal net routing.

@luccareinehr Could you potentially locate these cells in a third voltage domain and then connect the vin from temperature sensor block?
Beyond the routing issue I'm a little bit confused about how the pdn in the logic is isolated from the Vin of the tempature block if you connect them together. Is there something I'm missing?

Some comments on this feature:
I've actually done this before in a taped-out chip when connecting an on-chip voltage regulator to the power rails of the regulated domain. So basically the same use case, but our regulator was a block, not a standard cell.
It becomes a very tricky problem because the main concern is not about DRVs or timing, but the IR drop across/peak current through the routing. We had to estimate the peak current draw by the power domain and size the routing large enough (using multiple connections) to ensure that electromigration and IR drop were minimized.
Such a tool in OpenROAD would be a large undertaking. A simple repurposing of the detailed router to perform NDR connections is possible, but risky from a design perspective because it wouldn't be able to optimize for power integrity.

@rovinski Could we make a small change to the router to have it replicate connections for power purposes as quick hack? So in @luccareinehr's case we would create N duplicate nets to route to the power ring/grid. That's obviously not optimal, but would at least give designers a lever to be more or less conservative.
We could eventually run IR drop analysis and increase N until we were happy in future improvement.

In this case, what is VIN supposed to be used for? Is this for a ring oscillator to modulate it's speed? How is VIN generated?
I'm just wondering.

@QuantamHD The best first strategy would be to use a single connection with non default width (non-default routing / NDR). This strategy is still limited by the pin size on the block / cell which is generating the signal (i.e. if the pin is small, there is a practical limitation on how wide the metal route can be).
Creating multiple connections is only necessary if the net resistance requirements can't be met with a single connection (e.g. the desired metal width is greater than the max allowable width, or the width is capped by the size of the source pin). In this case, the power source would need to have multiple pins or a pin which is larger than max width. This only occurs for larger power sinks and is likely not applicable to @luccareinehr's design (my design was a multicore processor).
My concern isn't that there's no quick hack to fix @luccareinehr's problem; the concern is that the tools would not have a way of recognizing and warning the user of potentially chip-breaking mistakes.
It would be possible to use the detailed router to provide a partial solution this problem (such as @luccareinehr's case) but a general solution to the problem (making N connections; verifying power integrity) would likely require significantly different algorithms. For what it's worth, I don't think even commercial tools handle this case automatically. It usually takes significant hand-holding to get the special router to generate clean, quality routing.

@QuantamHD Despite how the pdn looks in the images, only the VSS of both voltage domains are shorted!
@arlpetergadfort Yes that's it, VIN modulates a ring oscillator. It is generated from a voltage drop in VDD after a couple of transistors in subthreshold regime, upon temperature variation (the design in question is a temperature sensor)

Sroute was added


Write unit tests for digiwf-email integration

Describe the bug
No unit tests implemented.
To Reproduce
Look at code.
Expected behavior
Unit tests have to be written.

dup https://github.com/it-at-m/digiwf-email-integration/issues/7

I will create a few tests along with #50

@lmoesle Das Issue hat @lehju übernommen


Expose Identity Profiles in search.

@fiji-flo PR updated. I solved the duplicate profiles issu by not indexing the IdpProfile of a user if the email already exists in the UserProfile index. This is handled in the prepare_idp_email method.


ScrollView horizontal={true}  error

[ ] Review the documentation: https://facebook.github.io/react-native
[ ] Search for existing issues: https://github.com/facebook/react-native/issues
[ ] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
OS: macOS High Sierra 10.13.6
Node: 8.4.0
Yarn: 1.7.0
npm: 5.8.0
Watchman: 4.9.0
Xcode: Xcode 10.0 Build version 10A255
Android Studio: 3.1 AI-173.4720617
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
Description
Set the property horizontal = {true} in ScrollView to scroll view horizontally but report an error after running Invariant Violation: Invariant Violation: Invariant Violation: Invariant Violation: Native component for "Android Horizontal ScrollView" does not exist.
here is my code

Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or     share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

It is working fine with react-native version 0.56.
 <ScrollView horizontal={true} contentContainerStyle={styles.contentContainer}>
<View style={{width:89, height:120, backgroundColor:'#6534ee'}}>
</View>
<View style={{width:89, height:120, backgroundColor:'#ffff'}}>
</View>
<View style={{width:89, height:120, backgroundColor:'#6435ee'}}>
</View>
      </ScrollView>


Initial commit of my branch

Hackathon Git Labs Project PR 🎉🎉
👉 Please remove the below and replace with your own values, leaving the headers where they are. 👈
PR contains:

INFO ABOUT YOUR PULL REQUEST GOES HERE (Please be as descriptive as possible) 🤜
If this PR followed the basic.md guide, please just add your JSON Object data here and a small note about your experience following this guide.

Hacktoberfest 2022:

[ ] Does this PR follow the intermediate.md guide and submitted as part of Hacktoberfest 2022?

Please note, we cannot accept basic.md PR submissions for Hacktoberfest, it must be a custom HTML or CSS creation following the intermediate.md guide.

IF YOU HAVE NO SCREENSHOTS, ENTER 'None'

Hi @IvetteMcDermott please follow the guides for these PRs. At the moment this PR is very empty, and we are not in a position to approve/merge. Thanks for understanding. If you are not sure where the guides are, we have two available.
basic.md
intermediate.md


How to reduce runtime exception caused by DEADLINE_EXCEEDED?

Hi,
In production environment we met this runtime exception on cloud logging recently. (As a result we lost our logs for a few minutes)
java.lang.RuntimeException: com.google.cloud.logging.LoggingException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.999962934s. [remote_addr=logging.googleapis.com/<IP_ADDRESS>:443]
	at com.google.cloud.logging.LoggingImpl$9.onFailure(LoggingImpl.java:823)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1074)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
	at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:100)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
	at com.google.common.util.concurrent.AbstractCatchingFuture.run(AbstractCatchingFuture.java:126)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
	at com.google.api.gax.retrying.BasicRetryingFuture.handleAttempt(BasicRetryingFuture.java:200)
	at com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.handle(CallbackChainRetryingFuture.java:135)
	at com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.run(CallbackChainRetryingFuture.java:117)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
	at com.google.api.core.AbstractApiFuture$InternalSettableFuture.setException(AbstractApiFuture.java:95)
	at com.google.api.core.AbstractApiFuture.setException(AbstractApiFuture.java:77)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1074)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:563)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:533)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.google.cloud.logging.LoggingException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.999962934s. [remote_addr=logging.googleapis.com/<IP_ADDRESS>:443]
	at com.google.cloud.logging.spi.v2.GrpcLoggingRpc$2.apply(GrpcLoggingRpc.java:203)
	at com.google.cloud.logging.spi.v2.GrpcLoggingRpc$2.apply(GrpcLoggingRpc.java:197)
	at com.google.api.core.ApiFutures$ApiFunctionToGuavaFunction.apply(ApiFutures.java:240)
	at com.google.common.util.concurrent.AbstractCatchingFuture$CatchingFuture.doFallback(AbstractCatchingFuture.java:223)
	at com.google.common.util.concurrent.AbstractCatchingFuture$CatchingFuture.doFallback(AbstractCatchingFuture.java:211)
	at com.google.common.util.concurrent.AbstractCatchingFuture.run(AbstractCatchingFuture.java:124)
	... 31 more
Caused by: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.999962934s. [remote_addr=logging.googleapis.com/<IP_ADDRESS>:443]
	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:51)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
	... 18 more
Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.999962934s. [remote_addr=logging.googleapis.com/<IP_ADDRESS>:443]
	at io.grpc.Status.asRuntimeException(Status.java:535)
	... 10 more

Our app is running on google app engine, and for logging libraries we use with the following versions:
com.google.cloud:google-cloud-logging-logback:0.121.14-alpha
com.google.cloud:google-cloud-logging:3.1.1
This error has occurred for multiple times so we are wondering if there is anything we can do to prevent losing logs due to this error.
We contacted gcp support and did some research. The conclusion was, we cannot know the exact cause of the error, while some issues mentioned that setting writeSynchronicity from ASYNC to SYNC may help.
Our first question is, can setting SYNC really help reduce the error? (The error suggest a time out; I suppose that the communication speed does not very by the synchronicity)
Another solution we can imagine is to extend the deadline. So our second question is, is there any way to pass a customized deadline to the logging library(in configuration or something)?
Hope to get some answers. Thank you.

Our first question is, can setting SYNC really help reduce the error? (The error suggest a time out; I suppose that the communication speed does not very by the synchronicity)

Please, see #249. Configuring ingestion mode to be synchronous will lead to performance degradation in the log intensive applications but will guarantee that the calls will perform synchronously, which reduces a risk for timeout.

Another solution we can imagine is to extend the deadline. So our second question is, is there any way to pass a customized deadline to the logging library(in configuration or something)?

The library does not support grpc customization.
I see that you use the version of the logback appender that is based on the (relatively) old version of the google-cloud-logging library (3.1.1). This version of the logging library had a bug (googleapis/java-logging#632). The bug was fixed in the version 3.4.0 of the library. I recommend to upgrade your logback library to the version that is using the google-cloud-logging version 3.4.0 or higher. The upgraded library will be able to batch multiple log ingestion requests together to decrease a load on the grpc channel, hence decreasing the chances to timeout.

I am closing this issue for now. Feel free to reopen it if you feel the answer is not satisfying.

Just to add up on the above, we are using python 3.11 and google cloud logging v 3.9.0, but we are still facing this issue from time to time. Reducing the number of logs did reduce the number of occurrences for the above. Is there a way to permanently stop this error from happening, or to at least suppress it?


Initial Deploy Script Syntax Error

I've looked at deploy.sh, I can't seem to find the root of an error I keep getting after cloning master:
./deploy.sh CONTAINER_VERSION=nginx:alpine create

Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 6 column 16 (char 95)
JSON received: {
  "family": "nginx",
  "containerDefinitions": [
    {
      "name": "nginx",
      "image": ,
      "memory": 128,
      "portMappings": [
        {
          "containerPort": 80,
          "protocol": "tcp"
        }
      ]
    }
  ]
}

The issue with that JSON is that there is no valid value for the "image" node. Whatever is generating that JSON is apparently not populating a proper value for "image".

I've opened PR to fix this https://github.com/arminc/terraform-ecs/pull/31

Fixed by #31


No way of setting ReaderOptions on an TwoPartyClient?

We have some very large RPC responses, and we're hitting the traversal limit when receiving the response in pycapnp. I looked at how to pass ReaderOptions down to the client, but it looks like it's currently impossible.
This was discussed on the C++ side in https://groups.google.com/forum/#!searchin/capnproto/readeroptions|sort:relevance/capnproto/kKSyOqm7ASM/3NkUYGoAFz0J and implemented in https://github.com/sandstorm-io/capnproto/pull/120/files.
It looks like in order to do the same thing on the pycapnp side we'd just have to pipe a ReaderOptions  from the TwoPartyClient down to https://github.com/jparyani/pycapnp/blob/468375d5667ffc3c51c9f6aed4bc083822a2f470/capnp/includes/capnp_cpp.pxd#L48.
Would you accept a PR that did so? Am I missing a way that this is already possible?
Thanks!

It's not possible at the moment, but I'd be happy to accept a PR adding such functionality.

This is worsened by https://github.com/sandstorm-io/capnproto/issues/407 and the fact that if your client and server have different limits bad things can happen.


A JavaScript error occurred in the main process

Hi. I have an Error during startup.
Uncaught Exception:
Error: EPERM: operation not permitted, chown '/home/somebody/snap/onenote-desktop/8/OneNote/config.json' at Object.chownSync (fs.js:1142:3) at Function.writeFileSync [as sync] (/snap/onenote-desktop/8/resources/app.asar/node_modules/write-file-automic/index.js:196:27) at ElectronStore.set store [as store] (/snap/onenote-desktop/8/resources/app.asar/node_modules/conf/index.js:277:19) at ElectronStore.set(/snap/onenote-desktop/8/resources/app.asar/node_modules/conf/index.js:152:14) at BrowserWindows.(/snaponenote-desktop/8/8resources/app.asar/src/main.js:54:10) at BrowseWindows.emit (events.js:194:13)
running on Manjaro. Everything is updated.
I have the same error on after reinstalling with edge.

Hi, same error running on ubuntu 18

Same error, pls help!

Hi, I found the same issue. Ubuntu 18.04.3 LTS. Gnome 3.28.2 SO x64 bits.
If you need more information...
from console:
Gtk-Message: 17:44:29.676: GtkDialog mapped without a transient parent. This is discouraged.
Thanks

same error
, pls help!

Same here Ubuntu 18.04

Temporary solution is to give 777 permission to snap folder in home directory.
sudo chmod -R 777 snap/

Same from 19.10

A temporary solution to this problem is to open up one note and once the error pops up simply minimize it and basically ignore it. Afterwards you'll notice that One Note just keeps attempting to load up, go to the taskbar (View -> Force Reload), and everything should work fine.
Again only temporary solution as the error prompt window will have to stay open. But everything other then that works fine!

Save error from 18.04, Thanks!

Having the same issue for Ubuntu 20.04 LTS, any solution found?

Hi I have the same issue on Ubuntu version 18.04.4 LTS. The temporary solution sometimes works, but sometimes the One Note window just does not load and the error still remains there. Any permanent fix would be appreciated. Thank you!

Heyy, any solutions yet? Any Ideas why it may be caused???

Hi,
Is anyone working on this? Having the same issue on Ubuntu 20.04 LTS

Having the same problem

1
snap remove onenote-desktop
sudo apt update
sudo apt install snapd
2
RESTART SYSTEM !!!
from

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

3
sudo snap install onenote-desktop --beta
4
onenote-desktop
5
:)

I apologize for the massive delay in replying to the thread. I had fixed the error on my computer and moved on to other programs/projects since I initially published this package. I think i forgot to push my changes, before I changed my computer and lost some code.
And, I am not sure why I was unsubscribed from this repo's updates. I did not know so many people had the same errors, or that other people were even using this. An oversight on my part.
I have just published an updated version of the app, with Snap, Deb and AppImage files. I should have the snap package published  in a bit.
While I labelled the release as alpha pre-release, I have tested it on Ubuntu/Kubuntu 20.04 and 20.10. Everything should be running fine. I will bump it to a stable release soon, once my laptop is fixed and have spent some time on further testing.
Thanks for the patience.

I apologize for the massive delay in replying to the thread. I had fixed the error on my computer and moved on to other programs/projects since I initially published this package. I think i forgot to push my changes, before I changed my computer and lost some code.
And, I am not sure why I was unsubscribed from this repo's updates. I did not know so many people had the same errors, or that other people were even using this. An oversight on my part.
I have just published an updated version of the app, with Snap, Deb and AppImage files. I should have the snap package published  in a bit.
While I labelled the release as alpha pre-release, I have tested it on Ubuntu/Kubuntu 20.04 and 20.10. Everything should be running fine. I will bump it to a stable release soon, once my laptop is fixed and have spent some time on further testing.
Thanks for the patience.


Icon, Logo and navbar added in every page

@smaranjitghose Please check it.

Icon added to the home page.
Logo added using xd.
Remove unnecessary CSS.
Placed the navbar on every page.
Bug on the project page.

Slight issue in the side nav bar. There's no option [the X button we usually have] to escape it


#399 remove CancelOrRefund

Fixes: https://github.com/commercetools/commercetools-adyen-integration/issues/399
Currently Travis is failing because the coverage has dropped. It should rise again once all tasks are finished.
Note: this PR should not be merged to master until all work is done.

@lojzatran So basically, you removed all the previous implementations related to refund-and-cancel workflow.


update and fix bugs

Fixed some bugs in shared memory parallel graph coloring package.
under src/SMPGC folder

added GM and MP algorithm original implementations for comparison.
SMPGColoring.h and SMPGCColoringD1Orig.cpp

added limited sized forbidden buffer implementations
SMPGCColoring.h and SMPGCColoringD1Bit.cpp

fix a bug in D1_OMP_GM3P()
SMPGCColoringD1.cpp

fix a bug in hybrid_Serial()
SMPGCColoringHybrid.cpp

fix a bug when reading metis format graph
SMPGCGraph.cpp

Hi, here are some things need to merge.
Thanks


Add VSAN policy update code to admin api

Add unit test for vsan_policy.update in admin cli
Add docs for vsan policy update in admin cli
Tested via make all and CI, as well as manual tests.
Fixes #329

All in all the code  looks good.

A few nits and suggestions (mainly about logging).
Main concern - the CI actually fails (out of space - see below), but the status does show OK - so
(1) something is still broken in CI reporting, most likely 'make test-esx' (I thought I've fixed it though) , and it may hide other issues
(2)  you mentioned manual tests - can you also provide what exactly did you test manually, what was the result and why did you decide against piutting it in automatesd testing

CI log says:
Running unit tests in /tmp/vmdk_ops_unittest11080/vmdk_ops_test.py...
....FF
======================================================================
FAIL: testPolicy (__main__.VmdkCreateRemoveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/vmdk_ops_unittest11080/vmdk_ops_test.py", line 125, in testPolicy
    self.assertEqual(err == None, unit[2], err)
AssertionError: {u'Error': 'Failed to create /vmfs/volumes/vsan:5204bc8bc03e1c20-5a4696067b772017/dockvols/vol_UnitTest_Create0.vmdk. Failed to create virtual disk: There is not enough space on the file system for the selected operation (13).\n'}

The automated tests are actually more comprehensive than the manual tests I performed. Manually, I only created and updated a policy file to check the output, and then tried to update wiht the same content to watch it fail. I didn't actually create any volumes to use a policy manually.
The only reason I did the manual tests was to sanity check my vsan/nimbus install and see the output before I ran make all.

I still see
AssertionError: {u'Error': 'Failed to create /vmfs/volumes/vsan:5204bc8bc03e1c20-5a4696067b772017/dockvols/vol_UnitTest_Create.vmdk. Failed to create virtual disk: There is not enough space on the file system for the selected operation (13).\n'}

in the CI log (which still shows as PASSED). Please take a look (the rest looks good, after merge conflicts cleanup)

Overall LGTM. Some minor suggestions above.

This branch was rebased on main and comments were addressed. make all passes against my nimbus setup with VSAN. Since this merge requires VSAN testing, it should probably wait until CI covers that, although I believe it's safe to merge now.

LGTM  - but please wait with merge until VSAN in CI is back on-line and CI passes (/cc @kerneltime )

LGTM


found a new related paper

url:
https://arxiv.org/abs/2410.19424
abstract:
Line art colorization plays a crucial role in hand-drawn animation production, where digital artists manually colorize segments using a paint bucket tool, guided by RGB values from character color design sheets. This process, often called paint bucket colorization, involves two main tasks: keyframe colorization, where colors are applied according to the character's color design sheet, and consecutive frame colorization, where these colors are replicated across adjacent frames. Current automated colorization methods primarily focus on reference-based and segment-matching approaches. However, reference-based methods often fail to accurately assign specific colors to each region, while matching-based methods are limited to consecutive frame colorization and struggle with issues like significant deformation and occlusion. In this work, we introduce inclusion matching, which allows the network to understand the inclusion relationships between segments, rather than relying solely on direct visual correspondences. By integrating this approach with segment parsing and color warping modules, our inclusion matching pipeline significantly improves performance in both keyframe colorization and consecutive frame colorization. To support our network's training, we have developed a unique dataset named PaintBucket-Character, which includes rendered line arts alongside their colorized versions and shading annotations for various 3D characters. To replicate industry animation data formats, we also created color design sheets for each character, with semantic information for each color and standard pose reference images. Experiments highlight the superiority of our method, demonstrating accurate and consistent colorization across both our proposed benchmarks and hand-drawn animations.
Subjects: | Computer Vision and Pattern Recognition (cs.CV)

Thanks! I'll update the repo, appreciate for your contribution!


Introduce stable tag for docker images

Issue summary
We are currently using the moving tag latest, which may be confusing. See an interesting article dedicated to this problem here.
It'd be beneficial to introduce a stable tag; a tag which is also moving but is only changed on a new release.

[ ] introduce stable tag to the Docker workflows
[ ] update the documentation - all image mentions should use the stable tag
[ ] update the forest-iac infra so that it uses the stable tag

Other information and links

How about using latest for the latest stable release and dev for rolling builds?

I'd go with edge and latest as described in
https://devops.pingidentity.com/docker-images/releaseTags/#edge
https://devops.pingidentity.com/docker-images/releaseTags/#latest
Also this approach seems to be supported by docker meta action.
https://github.com/docker/metadata-action#typeedge
Sounds good?


IE 11 issue: Invalid calling object

This error appears in IE 11.
index.js - 88 line
removeEventListener(this, arguments)
error:
Invalid calling object
How can this be fixed?

It's most likely caused by the removeEventListener function not being called in the context of the document. It should be fixed with a .call(). I'll fix it in a bit.


Media key shortcuts are inconsistent for some reason

Under gnome-shell, only the first time any of those shortcuts are used actually works. And by that, I mean that regardless of the shortcut, only the first press actually works. Meaning if I pause, or go to the next/prev track for the first time, I can't unpause, or go to the next or previous track afterwards with the shortcut. And I only get one action per app lifecycle, not one per type.

This sounds like a deeper issue with Electron. I will create a proof of concept gist to see if it's our app or not

Alright, proof of concept created. Can you please follow the instructions here:
https://gist.github.com/twolfson/0c6b8062c712ddabf882#file-readme-md
The app that is running via npm start will have further instructions on verifying media keys work properly.

I'm yet to try that, just trying to report that after managing to install the mpris service, the media keys started working properly. Possibly because the mpris extension is using them, as opposed to electron.

Results from the gist:
First time, randomly hitting the media keys and exiting:
npm start

><EMAIL_ADDRESS>start /tmp/gist-electron-media-keys
> electron index.js

medianexttrack registration bound!
mediaplaypause registration bound!
mediaprevioustrack registration bound!
mediastop registration bound!
mediaplaypause pressed
All windows closed. Exiting application

Second time, same scenario:
npm start

><EMAIL_ADDRESS>start /tmp/gist-electron-media-keys
> electron index.js

medianexttrack registration bound!
mediaplaypause registration bound!
mediaprevioustrack registration bound!
mediastop registration bound!
medianexttrack pressed
All windows closed. Exiting application

Seems its the same behavior, only the first kicked media key gets printed, then nothing.

Alright, sounds like an issue with electron. What OS are you using so we can report this to the electron repo?

I'm on arch linux

Cool, thanks. Going to open an issue on electron =)

We have created the issue: https://github.com/atom/electron/issues/3941

Closing since electron is considering this as wontfix =/


When I am using Protractor-retry then it Re-run whole test case not a failed test cases

Can someone help me on this.....
My conf file :
var retry = require('../lib/retry');
exports.config = {
framework: 'jasmine2',
specs: ['./jasmine/*.spec.js'],
jasmineNodeOpts: {
// If true, print colors to the terminal.
showColors: true,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval: 30000
},
capabilities: {
shardTestFiles: true,
maxInstances: 4,
browserName: 'chrome',
},
onCleanUp: function (results) {
retry.onCleanUp(results);
},
onPrepare: function () {
retry.onPrepare();
require('jasmine-expect');
browser.ignoreSynchronization = true;
},
afterLaunch: function() {
return retry.afterLaunch(2); // number of retries ( default is 2 )
}
};

What is protractor-retry?

Normally such questions is better to ask on StackOverflow or, at least, in the library repo. Anyway, this is because of the way of how Protractor and Jasmine  execute tests. You cannot run specific it from the file, just the whole file itself. And that’s how protractor-retry works. It just re-runs spec files that contain failed specs. To achieve execution of atomic spec, you have to keep one ‘it’ per spec file.

Also, from own experience- you better invest in stability of tests.  Otherwise in long-term you’ll get test execution, that will be very long. And executing tests in parallel will not give much benefit.

Hi am trying to run the protractor-retry but am getting an issues as follows
Ignoring uncaught error Error: spawn C:\Users\purnachandra.challa\AppData\Roaming\npm\node_modules\protractor\bin\protractor ENOENT


usage of LV_INDEV_POINT_MARKER throws compiler errors

so i set the LV_INDEV_POINT_MARKER to 5 to see my presses(?) in the lvgl config file
buuuut.... my IDE throws compiling errors.
the complete error log:
C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c: In function 'indev_proc_point':

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:286:9: error: unknown type name 'area_t'

         area_t area;

         ^

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:287:13: error: request for member 'x1' in something not a structure or union

         area.x1 = (indev->act_point.x >> LV_ANTIALIAS) - (LV_INDEV_POINT_MARKER >> 1);

             ^

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:288:13: error: request for member 'y1' in something not a structure or union

         area.y1 = (indev->act_point.y >> LV_ANTIALIAS) - (LV_INDEV_POINT_MARKER >> 1);

             ^

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:289:13: error: request for member 'x2' in something not a structure or union

         area.x2 = (indev->act_point.x >> LV_ANTIALIAS) + ((LV_INDEV_POINT_MARKER >> 1) | 0x1);

             ^

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:290:13: error: request for member 'y2' in something not a structure or union

         area.y2 = (indev->act_point.y >> LV_ANTIALIAS) + ((LV_INDEV_POINT_MARKER >> 1) | 0x1);

             ^

C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:291:18: warning: passing argument 1 of 'lv_rfill' from incompatible pointer type [-Wincompatible-pointer-types]

         lv_rfill(&area, NULL, LV_COLOR_MAKE(0xFF, 0, 0), LV_OPA_COVER);

                  ^

In file included from C:\Users\Ramon\Documents\Arduino\libraries\lvgl\src\lv_obj\lv_indev.c:16:0:

c:\users\ramon\documents\arduino\libraries\lvgl\src\lv_draw\lv_draw_rbasic.h:41:6: note: expected 'const lv_area_t * {aka const struct <anonymous> *}' but argument is of type 'int *'

 void lv_rfill(const lv_area_t * cords_p, const lv_area_t * mask_p,

      ^

Hi Ramon,
It is already fixed in dev-5.0 branch but if you update you need to do other changes as well (see dev-5.0 doc/README).
For now, I think it would be easier to fix the issue in your current version. You only need to  change area_t area; to lv_area_t area;
I hope that is all.

On Monday I can send you a .zip (like before) with the new version

Here is the new version. lvgl_dev-5.0_arduino.zip
Please follow the updates in your initialization.

Now only disp_flush is required (same as map_fp) but lv_flush_ready(); need to be called at the end
lv_tick_inc(1) is used instead of lv_tick_handler()

#include <lvgl.h>

void my_disp_flush(int32_t x1, int32_t y1, int32_t x2, int32_t y2, const lv_color_t *color_array)
{

  /*Write the coordinates like with disp map*/

  lv_flush_ready();
}

void hal_init(void)
{
    /*Initialize the display*/
    lv_disp_drv_t disp_drv;
    disp_drv.disp_flush = my_disp_flush;
    lv_disp_drv_register(&disp_drv);

    /*Initialize the graphics library's tick*/
    /*In a Timer call lv_tick_inc(1) in every milliseconds*/
}

void setup() {
  lv_init();

  hal_init();

  lv_obj_t *label = lv_label_create(lv_scr_act(), NULL);
  lv_label_set_text(label, "Hello Arduino!");
  lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0);

}

void loop() {
  // put your main code here, to run repeatedly:

  lv_task_handler();
  //delay_ms(3);
}

Fixed in v5.0.0


net/http: support HTTP/2

Just a thought, because it's a bit big and long-term stuff.

Hypertext Transfer Protocol version 2.0
http://tools.ietf.org/html/draft-ietf-httpbis-http2

HPACK - Header Compression for HTTP/2.0
http://tools.ietf.org/html/draft-ietf-httpbis-header-compression

Also it requires issue #6736.

Use cases would be the following:
- Server: 1.x, 2.0 and/or protocol agnostic
- Client: ditto
- Proxy (w/ traffic engineering): basic forward/reverse proxying, also traffic routing
and/or protocol bridging btw 1.x and 2.0
- QoX?: available to inject external queueing disciplines, frame scheduling and queue
management in between HTTP/2.0 framing and TLS layers
- Bearer: WebSocket over HTTP/2.0

Wow, I'm full.

@bradfitz will there be a public API that will allow us to create streams and send data to/receive data from them?

Yes.

Awesome, is there anything we can start playing around with yet? Or even a proposed API to review? :-)

Go look at https://github.com/bradfitz/http2 ... I'm already using it. Also note the open pull request that you'd be interested in.

Are you referring to the Pushhandler PR? If so, I'm not sure that's exactly what I'm looking for. I'm hoping to be able to manage streams myself from the client and/or server side, passing data back and forth over each stream.

I'm happy with the state of HTTP/2 now. Closing this meta bug.

@bradfitz I glanced quickly at the code but didn't see a way to hijack the connection and create my own streams. Is that possible yet?

@ncdc, we're not adding new API in Go 1.6. We can consider PUSH_PROMISE APIs in golang.org/x/net/http2 first, and only move things into the standard library when it's baked long enough in x/net. There were old proposals here:
https://github.com/bradfitz/http2/pull/23
https://github.com/bradfitz/http2/pull/34
But we no longer use that repo. Let's move this conversation to #13443


the meteor metric seems not consist with the official version

Describe the bug
The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by NLGeval as the reference (which reuses the official jar file for the computation)
Steps to reproduce the bug
from datasets import load_metric
from nlgeval import NLGEval, compute_individual_metrics

meteor = load_metric('meteor')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = meteor.compute(predictions=predictions, references=references)
# print the actual result
print(round(results["meteor"], 4))
metrics_dict = compute_individual_metrics(references, predictions[0])
# print the expected result
print(round(metrics_dict["METEOR"], 4))

By the way, you need to install the nlg-eval library first. Please check the installation guide here, thanks!
Expected results
0.4474
Actual results
0.7398
Environment info

datasets version: 1.10.2
Platform: macOS-10.16-x86_64-i386-64bit
Python version: 3.8.5
PyArrow version: 4.0.1

the issue is caused by the differences between varied meteor versions:
meteor1.0 is for https://aclanthology.org/W07-0734.pdf
meteor1.5 is for https://aclanthology.org/W14-3348.pdf
here is a very similar issue in NLTK
https://github.com/nltk/nltk/issues/2655

Hi @jianguda, thanks for reporting.
Currently, at 🤗 datasets we are using METEOR 1.0 (indeed using NLTK: from nltk.translate import meteor_score): See the citation here.
If there is some open source implementation of METEOR 1.5, that could be an interesting contribution! 😉


[wip]bell-icon: improved working of bell icon in recipient bar.

Testing plan:
GIFs or screenshots:

Closing in favor of the other open PR for https://github.com/zulip/zulip/issues/15223, which is a more complete version of this.  Thanks for working on this @ritikchauhan-01!


Third party library for project: timm, transformers, pytorch lightning

Third party library for project: timm, transformers, pytorch lightning
Dynamic num_classes for sparse or complete dataset
Integration with hydra
Optimize/guesstimate model


[Tests] Add a test to check multiple value support for x-amz-meta- header

Refer:  minio/minio#6145

hey any update on this?

The test case for this is added in minio/minio PR#6753. We can close this @deekoder


Issue SB-30516 fix: Added code to get video duration

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please choose appropriate options.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes in the below checkboxes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Ran Test A
[ ] Ran Test B

Test Configuration:

Software versions:
Hardware versions:

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@HarishGangula
Sir I am sending this change for getting duration of the video.
cc: @vinukumar-vs @itsvick

@Xitija  Test cases are missing for this PR
cc: @vinukumar-vs

@Xitija Test cases are missing for this PR cc: @vinukumar-vs

Adding test cases


Support aci app-profile creation from contiv cli

Brought in changes from contivmodel for aci/app-profile. Added cli to allopw create/delete app-profile.

LGTM


Note on scalar parameters not correct according to eq expression docs

There's a note on this page that reads like this:

Scalar parameters without a specified type are treated as strings. For example, eq(parameters['myparam'], true) will return true, even if the myparam parameter is the word false, if myparam is not explicitly made boolean. Non-empty strings are cast to true in a Boolean context. That expression could be rewritten to explicitly compare strings: eq(parameters['myparam'], 'true').

So according to this note, if parameters['myparam'] is the string "false" (or any other non-empty string), that will convert to the boolean value true and then do eq(true, true).
But unless I'm missing something here, this doesn't make much sense if we take into account what is said for the eq expression here:

Converts right parameter to match type of left parameter. Returns False if conversion fails.

Given this, we should be doing eq('false', 'true')... so which one is correct?

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

ID: 6724abea-bbdc-bf66-ed5e-3214fa6c3e66
Version Independent ID: 4f8dab21-3f0e-da32-cc0e-1d85c13c0065
Content: Templates - Azure Pipelines
Content Source: docs/pipelines/process/templates.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@PedroLamas Thank you for the feedback.
You are correct, the example in the templates doc seems to mistakenly have the parameters switched.  Please follow the guidelines stated in expressions.
To see this in action try:
steps:
- ${{ if eq(true, true) }}:
  - script: echo this works

- ${{ if eq('false', false) }}:
  - script: echo this works because right becomes left

- ${{ if eq(false, 'false') }}:
  - script: echo this works because left becomes right

The documentation has been updated and is pending review.


epic: Jan - Cortex API

Problem
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Success Criteria
A clear and concise description of what you want to happen.
Sub Issues

[x] https://github.com/janhq/jan/issues/2781
[x] https://github.com/janhq/jan/issues/2960
[ ] https://github.com/janhq/jan/issues/2968

Additional context
Add any other context or screenshots about the epic request here.

Should not scope Jan x Cortex in this issue right?


Cast unitsPerEm to int?

I'm getting an error while compiling a ufo made with DesignSpaceProcessor:
Python 3.6.1 (default, Jul 19 2017, 13:24:40)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from designSpaceDocument.ufoProcessor import DesignSpaceProcessor
>>> processor = DesignSpaceProcessor(ufoVersion=3)
>>> processor.read('test.designspace')
>>> processor.loadFonts()
>>> ufo = processor.makeInstance(processor.instances[0])
>>> from ufo2ft import compileOTF
>>> otf = compileOTF(ufo)
Underline thickness not set in UFO, defaulting to UPM * 0.05
Underline position not set in UFO, defaulting to UPM * -0.075
Underline thickness not set in UFO, defaulting to UPM * 0.05
Underline position not set in UFO, defaulting to UPM * -0.075
Underline thickness not set in UFO, defaulting to UPM * 0.05
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/ufo2ft/__init__.py", line 44, in compileOTF
    postProcessor = PostProcessor(otf, ufo)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/ufo2ft/postProcessor.py", line 15, in __init__
    otf.save(stream)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/fontTools/ttLib/__init__.py", line 219, in save
    self._writeTable(tag, writer, done)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/fontTools/ttLib/__init__.py", line 658, in _writeTable
    tabledata = self.getTableData(tag)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/fontTools/ttLib/__init__.py", line 669, in getTableData
    return self.tables[tag].compile(self)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/fontTools/ttLib/tables/_h_e_a_d.py", line 64, in compile
    data = sstruct.pack(headFormat, self)
  File "/Users/mnakamura/.pyenv/versions/3.6.1/lib/python3.6/site-packages/fontTools/misc/sstruct.py", line 75, in pack
    data = struct.pack(*(formatstring,) + tuple(elements))
struct.error: required argument is not an integer

This error seems to be caused by ufo.info.unitsPerEm; fonttools expects an int but it is a float actually.
>>> type(ufo.info.unitsPerEm)
<class 'float'>
>>> ufo.info.unitsPerEm
1000.0

Yes, we should use round.


NIFI-3940 upgraded to latest jruby which resolves an apparent lgpl bu…

…nding issue
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically master)?

[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

isn't quite right yet.  Breaks a test.  I am not a ruby expert so phoning a friend.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.446 sec - in org.apache.nifi.reporting.script.ScriptedReportingTaskGroovyTest
Results :
Failed tests:
TestExecuteJRuby.testReadFlowFileContentAndStoreInFlowFileAttribute:52 java.lang.NoSuchFieldError: O_TMPFILE

Taking a look.

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.231 sec <<< FAILURE! - in org.apache.nifi.processors.script.TestExecuteJRuby
testReadFlowFileContentAndStoreInFlowFileAttribute(org.apache.nifi.processors.script.TestExecuteJRuby)  Time elapsed: 1.205 sec  <<< FAILURE!
java.lang.AssertionError: java.lang.NoSuchFieldError: O_TMPFILE
at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:201)
at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:160)
at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:155)
at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:150)
at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:145)
at org.apache.nifi.processors.script.TestExecuteJRuby.testReadFlowFileContentAndStoreInFlowFileAttribute(TestExecuteJRuby.java:52)
Caused by: java.lang.NoSuchFieldError: O_TMPFILE
at org.jruby.RubyFile.createFileClass(RubyFile.java:202)
at org.jruby.Ruby.initCore(Ruby.java:1490)
at org.jruby.Ruby.bootstrap(Ruby.java:1274)
at org.jruby.Ruby.init(Ruby.java:1173)
at org.jruby.Ruby.newInstance(Ruby.java:338)
at org.jruby.embed.internal.AbstractLocalContextProvider.getGlobalRuntime(AbstractLocalContextProvider.java:82)
at org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:99)
at org.jruby.embed.internal.BiVariableMap.getRuntime(BiVariableMap.java:109)
at org.jruby.embed.internal.BiVariableMap.getTopSelf(BiVariableMap.java:241)
at org.jruby.embed.internal.BiVariableMap.getReceiverObject(BiVariableMap.java:237)
at org.jruby.embed.internal.BiVariableMap.put(BiVariableMap.java:332)
at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1185)
at org.jruby.embed.jsr223.Utils.put(Utils.java:234)
at org.jruby.embed.jsr223.Utils.preEval(Utils.java:109)
at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:88)
at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:142)
at org.apache.nifi.processors.script.ExecuteScript.onTrigger(ExecuteScript.java:220)
at org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:251)
at org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:245)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

The issue is that jython uses a binary build instead of Maven so it is an "unshaded JAR" (described in far more detail here). It includes libraries that conflict with jruby but Maven can't resolve them, so there are runtime errors.
Rather than separate the dependencies into separate modules, we can use the jython-shaded dependency mentioned above to resolve this.
I can't push the changes to this branch, but you can make the following changes in nifi-scripting-processor/pom.xml:
    <dependency>
        <groupId>org.python</groupId>
        <artifactId>jython-standalone</artifactId>
        <version>2.7.1b3</version>
    </dependency>

with
<dependency>
	<groupId>org.scijava</groupId>
	<artifactId>jython-shaded</artifactId>
	<version>2.7.0</version>
</dependency>

Tests all pass:
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.nifi.processors.script.ExecuteScriptGroovyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 2.533 sec - in org.apache.nifi.processors.script.ExecuteScriptGroovyTest
Running org.apache.nifi.processors.script.TestExecuteClojure
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.029 sec - in org.apache.nifi.processors.script.TestExecuteClojure
Running org.apache.nifi.processors.script.TestExecuteGroovy
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.648 sec - in org.apache.nifi.processors.script.TestExecuteGroovy
Running org.apache.nifi.processors.script.TestExecuteJavascript
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.979 sec - in org.apache.nifi.processors.script.TestExecuteJavascript
Running org.apache.nifi.processors.script.TestExecuteJRuby
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.77 sec - in org.apache.nifi.processors.script.TestExecuteJRuby
Running org.apache.nifi.processors.script.TestExecuteJython
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.72 sec - in org.apache.nifi.processors.script.TestExecuteJython
Running org.apache.nifi.processors.script.TestExecuteLua
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec - in org.apache.nifi.processors.script.TestExecuteLua
Running org.apache.nifi.processors.script.TestInvokeGroovy
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.517 sec - in org.apache.nifi.processors.script.TestInvokeGroovy
Running org.apache.nifi.processors.script.TestInvokeJavascript
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec - in org.apache.nifi.processors.script.TestInvokeJavascript
Running org.apache.nifi.processors.script.TestInvokeJython
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 sec - in org.apache.nifi.processors.script.TestInvokeJython
Running org.apache.nifi.record.script.ScriptedReaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.515 sec - in org.apache.nifi.record.script.ScriptedReaderTest
Running org.apache.nifi.record.script.ScriptedRecordSetWriterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.24 sec - in org.apache.nifi.record.script.ScriptedRecordSetWriterTest
Running org.apache.nifi.reporting.script.ScriptedReportingTaskGroovyTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.269 sec - in org.apache.nifi.reporting.script.ScriptedReportingTaskGroovyTest

Results :

Tests run: 45, Failures: 0, Errors: 0, Skipped: 1

unreal.  Great find.  Pushing squashed in a sec.  Thanks!

Ran a full build on OS X and everything worked. Verified contrib-check as well. Merged.


Randomize mac address on release if restoring original one fails

Some NICs / drivers and some MAC addresses may fail to restore (for
example, because a driver / vendor doesn't support an all-zeroes MAC
address that at the same time is the original MAC address assigned to
VFs on boot). In this case, it may be prudent to try to reset the
address to something else.
In this patch, we randomize the address instead of assigning a single
hardcoded one to address the issue where multiple VFs that originally
failed to restore the MAC address and were assigned the same address
on release are then re-allocated to new pods with the hardcoded
address left in place, which then result in duplicate addresses and
potential connectivity issues.
Signed-off-by: Ihar Hrachyshka<EMAIL_ADDRESS>

Testing it here: https://github.com/kubevirt/kubevirt/pull/3098

Please hold it off, the relevant kubevirt job failed once so I need to understand why (whether the patch works as I expected).

@booxter Should the VF be assigned with a random effective MAC address already during VF provisioning?

@zshi-redhat why? what would make it get a random MAC address? Unless you use some additional mechanism to override original MAC addresses, they may be not so random. (Like, some drivers leave all VFs with all-zeroes MACs on boot).

@zshi-redhat why? what would make it get a random MAC address? Unless you use some additional mechanism to override original MAC addresses, they may be not so random. (Like, some drivers leave all VFs with all-zeroes MACs on boot).

@booxter So even for effective MAC address, the original value when first provisioned is all-zero? I was under the impression that it's admin MAC address that gets all-zero when first created.

/retest

@booxter sorry for the late response on this PR.
Just chatted with @ahalim-intel and we got a few questions below:

Does the issue happen on kernel interface or userspace(dpdk) interface? We thought kubevirt use vfio driver which is dpdk interface, but the change in this PR is about effective mac address. (sr-iov cni doesn't configure effective mac for dpdk interface)
Could you please share the exact NIC type? We are not sure if there is any device that will have initial effective mac address being all zero.

Closing due to inactivity. Please re-open if you want to address this again.


How can I plug your optimiser to Keras?

Can you tell if your optimiser be plugged to Keras?

I'm not sure what you mean... the optimizer uses Keras to build/train/test the networks. If you want to use it for your own networks built using Keras, you'll need to update the code to do so.
If you're looking for something that can just plug right into Keras as a library, you may want to look at hyperas: https://github.com/maxpumperla/hyperas


Roll Plugins from 63eb67532a7a to cf40966ef1dc (1 revision)

https://github.com/flutter/plugins/compare/63eb67532a7a...cf40966ef1dc
2021-09-30<EMAIL_ADDRESS>[flutter_plugin_tools] Validate pubspec description (flutter/plugins#4396)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


feature summary

it would be good to have a small summary at the top of the readme like we have for the lucene-zh project

resolved in bda0e780b198d3eb3dfbca2cb002eedb6c0bede0


Inconsistent LPUSH: Command returns OK instead of Integer(length of list)

Steps to reproduce
<IP_ADDRESS>:7379> lpush mylist "test"

Expected output
The expected output when the above set of commands (maybe when run on Redis)
<IP_ADDRESS>:6379> LPUSH mylist "test"
(integer) 1

Observed output
The observed output when the above set of commands when run on DiceDB
<IP_ADDRESS>:7379> lpush mylist "test"
OK

Expectations for resolution
This issue will be considered resolved when the following things are done

changes in the dice code to meet the expected behavior
addition of relevant test case to ensure we catch the regression

You can find the tests under the integration_tests directory of the dice repository and the steps to run are in the README file. Refer to the following links to set up DiceDB and Redis 7.2.5 locally

setup DiceDB locally
setup Redis 7.2.5 locally
setup DiceDB CLI

Hi, I worked on the doc issue for this command, so would like to contribute to this as well. Thank you.

https://github.com/DiceDB/dice/blob/887d693113e266c8525c75b103346ced5fbdf997/integration_tests/commands/async/deque_test.go#L86
according to the tests, this is the expected behaviour I think.
Though ideally it should return integer

Can I work on this?

@Aditya-Chowdhary assigned, thanks for contributing.

Closing as duplicate PR has been merged.


Added Main Site Content

Added Main site to the views directory.
@jaydeepukani: You need to create x-app-layout for main site.

Closing this PR cuz of overriding public dir

This is new PR. Only added those files required by main site.


Syncing optimizations

Moving queueing syncing blocks from pbft to networking
Improvements to validation of syncing
Optimizing syncing to avoid data copy and calculating dag block order
Adding hash for dag order and unique transactions order in pbf block

prnet cleaned-up successfully


Flutter shape resizing and dragging over image back-grounded canvas

I want to create different kind of shapes (like a rectangle, line or circle)
over an image background canvas and edit those shape with corner points for resizing the shapes.
How can I able to do that with flutter?
Shapes customization dragging corners is similar to this
JavaScript framework Fabric.js
and the result should be like this red rectangle shape over an image:

Maybe this can help ? https://www.youtube.com/watch?v=vvI_NUXK00s

@RomanJos It shows about how to draw different shapes with custom paint widget, but I need the functionality after drawing the shape and want them to be flexible through the corner points so that I can drag them and resize the size of those shapes on the canvas over an image.
Actually, I meant to say I need the exact functional rectangle boxed-shape with 4 points which we often see while cropping an image in any photo editing app. Not the cropping functionality, but the rectangle box with 4 points over an image. How can I achieve that?

Maybe rebuild the widget with the updated position for one corner ? With gesture detector or something similar (idk much about it) you take where the finger touch and if its in x radius of one corner then make it follow the finger

I solved the issue with writing this below code:
The first part of the code from Scaffold:
if (_imageWidget != null) ...[
            FittedBox(
              fit: BoxFit.fill,
              child: GestureDetector(
                onPanStart: (DragStartDetails details) {
                  // get distance from points to check if is in circle
                  int indexMatch = -1;
                  for (int i = 0; i < _points.length; i++) {
                    double distance = sqrt(
                        pow(details.localPosition.dx - _points[i].dx, 2) +
                            pow(details.localPosition.dy - _points[i].dy, 2));
                    if (distance <= 30) {
                      indexMatch = i;
                      break;
                    }
                  }
                  if (indexMatch != -1) {
                    _currentlyDraggedIndex = indexMatch;
                  }
                },
                onPanUpdate: (DragUpdateDetails details) {
                  if (_currentlyDraggedIndex != -1) {
                    setState(() {
                      _points = List.from(_points);
                      _points[_currentlyDraggedIndex] = details.localPosition;
                    });
                  }
                },
                onPanEnd: (_) {
                  setState(() {
                    _currentlyDraggedIndex = -1;
                  });
                },
                child: SizedBox(
                  width: _image.width.toDouble(),
                  height: _image.height.toDouble(),
                  child: CustomPaint(
                    painter: RectanglePainter(
                        points: _points, clear: _clear, image: _image),
                  ),
                ),
              ),
            )
          ]

The Second Part
class RectanglePainter extends CustomPainter {
  List<Offset> points;
  bool clear;
  final ui.Image image;

  RectanglePainter(
      {@required this.points, @required this.clear, @required this.image});

  @override
  void paint(Canvas canvas, Size size) {
    final paint = Paint()
      ..color = Colors.red
      ..strokeCap = StrokeCap.square
      ..style = PaintingStyle.fill
      ..strokeWidth = 2;

    final outputRect =
        Rect.fromPoints(ui.Offset.zero, ui.Offset(size.width, size.height));
    final Size imageSize =
        Size(image.width.toDouble(), image.height.toDouble());
    final FittedSizes sizes =
        applyBoxFit(BoxFit.contain, imageSize, outputRect.size);
    final Rect inputSubrect =
        Alignment.center.inscribe(sizes.source, Offset.zero & imageSize);
    final Rect outputSubrect =
        Alignment.center.inscribe(sizes.destination, outputRect);
    canvas.drawImageRect(image, inputSubrect, outputSubrect, paint);
    if (!clear) {
      final circlePaint = Paint()
        ..color = Colors.red
        ..strokeCap = StrokeCap.square
        ..style = PaintingStyle.fill
        ..blendMode = BlendMode.multiply
        ..strokeWidth = 2;

      for (int i = 0; i < points.length; i++) {
        if (i + 1 == points.length) {
          canvas.drawLine(points[i], points[0], paint);
        } else {
          canvas.drawLine(points[i], points[i + 1], paint);
        }
        canvas.drawCircle(points[i], 10, circlePaint);
      }
    }
  }

  @override
  bool shouldRepaint(RectanglePainter oldPainter) =>
      oldPainter.points != points || clear;
}

Damn thats good !

I solved the issue by writing this below code:
The first part of the code from Scaffold:
if (_imageWidget != null) ...[
            FittedBox(
              fit: BoxFit.fill,
              child: GestureDetector(
                onPanStart: (DragStartDetails details) {
                  // get distance from points to check if is in circle
                  int indexMatch = -1;
                  for (int i = 0; i < _points.length; i++) {
                    double distance = sqrt(
                        pow(details.localPosition.dx - _points[i].dx, 2) +
                            pow(details.localPosition.dy - _points[i].dy, 2));
                    if (distance <= 30) {
                      indexMatch = i;
                      break;
                    }
                  }
                  if (indexMatch != -1) {
                    _currentlyDraggedIndex = indexMatch;
                  }
                },
                onPanUpdate: (DragUpdateDetails details) {
                  if (_currentlyDraggedIndex != -1) {
                    setState(() {
                      _points = List.from(_points);
                      _points[_currentlyDraggedIndex] = details.localPosition;
                    });
                  }
                },
                onPanEnd: (_) {
                  setState(() {
                    _currentlyDraggedIndex = -1;
                  });
                },
                child: SizedBox(
                  width: _image.width.toDouble(),
                  height: _image.height.toDouble(),
                  child: CustomPaint(
                    painter: RectanglePainter(
                        points: _points, clear: _clear, image: _image),
                  ),
                ),
              ),
            )
          ]

The Second Part
class RectanglePainter extends CustomPainter {
  List<Offset> points;
  bool clear;
  final ui.Image image;

  RectanglePainter(
      {@required this.points, @required this.clear, @required this.image});

  @override
  void paint(Canvas canvas, Size size) {
    final paint = Paint()
      ..color = Colors.red
      ..strokeCap = StrokeCap.square
      ..style = PaintingStyle.fill
      ..strokeWidth = 2;

    final outputRect =
        Rect.fromPoints(ui.Offset.zero, ui.Offset(size.width, size.height));
    final Size imageSize =
        Size(image.width.toDouble(), image.height.toDouble());
    final FittedSizes sizes =
        applyBoxFit(BoxFit.contain, imageSize, outputRect.size);
    final Rect inputSubrect =
        Alignment.center.inscribe(sizes.source, Offset.zero & imageSize);
    final Rect outputSubrect =
        Alignment.center.inscribe(sizes.destination, outputRect);
    canvas.drawImageRect(image, inputSubrect, outputSubrect, paint);
    if (!clear) {
      final circlePaint = Paint()
        ..color = Colors.red
        ..strokeCap = StrokeCap.square
        ..style = PaintingStyle.fill
        ..blendMode = BlendMode.multiply
        ..strokeWidth = 2;

      for (int i = 0; i < points.length; i++) {
        if (i + 1 == points.length) {
          canvas.drawLine(points[i], points[0], paint);
        } else {
          canvas.drawLine(points[i], points[i + 1], paint);
        }
        canvas.drawCircle(points[i], 10, circlePaint);
      }
    }
  }

  @override
  bool shouldRepaint(RectanglePainter oldPainter) =>
      oldPainter.points != points || clear;
}

Hello,
I was trying your solution for a similar problem. Can you suggest what is the variable _points for and how did you initialize it?


#120: added tests for setting PDF metadata

Added some tests along with the fix for #120
https://github.com/danburzo/percollate/commit/4c61f7c03051ae50ab42b0ce04b67d659c0be8be

Awesome, thanks!


starting to use jsdoc for our libraries

How to use:
npm run jsdoc
The files are placed in a folder doc/jsdoc
The script jsdoc.sh controls which files are examined for jsdoc annotations. Currently, we use the sound library.

Pull Request Test Coverage Report for Build 1848

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

Totals

Change from base Build 1845:
0.0%

Covered Lines:
1376

Relevant Lines:
4321

💛  - Coveralls

Addresses: https://github.com/source-academy/cadet-frontend/issues/636

Moving this to js-slang