Only first row showing when using the Virtual Matrix class (dev version)

i was trying to use the dev version by doing this in the ini
lib_deps =
    ${env.lib_deps}
;   use dev version of the lib
    https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA.git

but only 2 of my 64x64 matrix display would work under the dev version :S
using the normal one in the ini all 4 panels work :S
lib_deps = fastled/FastLED
	       mrfaptastic/ESP32 HUB75 LED MATRIX PANEL DMA Display
	       adafruit/Adafruit GFX Library
	       adafruit/Adafruit BusIO
	       bitbank2/AnimatedGIF

this is my setup
#define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 64 // Number of pixels tall of each INDIVIDUAL panel module.

#define NUM_ROWS 2 // Number of rows of chained INDIVIDUAL PANELS
#define NUM_COLS 2 // Number of INDIVIDUAL PANELS per ROW
#define PANEL_CHAIN NUM_ROWS*NUM_COLS    // total number of panels chained one to another

// Change this to your needs, for details on VirtualPanel pls see ChainedPanels example
#define SERPENT true // Should be false
#define TOPDOWN false // Should be true

// Virtual Panl dimensions - our combined panel would be a square 4x4 modules with a combined resolution of 128x128 pixels
#define VPANEL_W PANEL_RES_X*NUM_COLS // Kosso: All Pattern files have had the MATRIX_WIDTH and MATRIX_HEIGHT replaced by these.
#define VPANEL_H PANEL_RES_Y*NUM_ROWS //

// placeholder for the matrix object
MatrixPanel_I2S_DMA *matrix = nullptr;

// placeholder for the virtual display object
VirtualMatrixPanel  *virtualDisp = nullptr;

namespace MatrixConfig
{
    void begin()
    {
        HUB75_I2S_CFG mxconfig(PANEL_RES_X, PANEL_RES_Y, PANEL_CHAIN);

        mxconfig.gpio.e = 18; // Must be pin 18 for 64x64 else -1

        matrix = new MatrixPanel_I2S_DMA(mxconfig);

        matrix->setBrightness8(127);

        if( not matrix->begin() )
        {
            Serial.println("****** !KABOOM! I2S memory allocation failed ***********");
        }

        virtualDisp = new VirtualMatrixPanel((*matrix), NUM_ROWS, NUM_COLS, PANEL_RES_X, PANEL_RES_Y, SERPENT, TOPDOWN);
    }
};

Can you post a photo? So you have four of these chained together in a 2x2 grid?
I take if if you don't use the VirtualDisplay class, you can address all four panels as if its a 64x256 pixel horizontal chain (just want to confirm that the core library isn't busted)?

Actaully, try the dev version again now, I think I found the bug

Actaully, try the dev version again now, I think I found the bug

yes i have 4 x 64x64 in a 2x2 grid
just tried it again using the VirtualDisplay class and the normal Matrix Class but still only 2 panels working :S

Can you double check your wiring as you should get output in all four panels when NOT using the virtual display class, and just using the underlying dma_display configured for a 256x64 resolution horizonal screen.

the ribbon cable is connected correctly as it works with the stabel version just fine and power is not  an issue either as im running them all on a 60A PSU with good thick power wires!
you mean i have to test all 4 in a layed out "grid"? so all 4 side by side and not in a 2x2?

Can you please run the 'SimpleTestShapes' example: https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/blob/master/examples/1_SimpleTestShapes/1_SimpleTestShapes.ino
With:
#define PANEL_RES_X 64      // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 64     // Number of pixels tall of each INDIVIDUAL panel module.
#define PANEL_CHAIN 1     // Total number of panels chained one to another

All that needs to happen is all panels to show something (the same thing probably).
Then try it again with:
#define PANEL_RES_X 64      // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 64     // Number of pixels tall of each INDIVIDUAL panel module.
#define PANEL_CHAIN 4     // Total number of panels chained one to another


Update flyway-core to 8.5.4

Updates org.flywaydb:flyway-core from 7.15.0 to 8.5.4.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.flywaydb", artifactId = "flyway-core" } ]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #622.


Provide asynchronous/preloading navigation API

Maybe this is a topic for 2.0 since navigation is a very central concept, but let me describe the problem anyway:
It seems to be a recurring issue that when a page is created and opened, there are still some tasks to perform before the UI is in its final state. That includes loading images, webviews, or displayable data via asynchroneous http or file APIs. This results in the ugly scenario the that the new UI changes during or shortly after the page transition. The same issue exists - to a smaller degree - for the initial UI not part of a page (navigation and drawer elements).
A limited workaround would be to create the page, wait for a synthetic load event, then open it. However, this doesn't work for image pre-loading (we would need load events on all widgets that can display images, and at least in windows an image doesn't start loading until the widget is connected to the UI tree), and it delays the page transition, making the ui less responsive. It's also a lot of work.
I can only speak from the perspective of a windows developer, but there is a solution that can automtically wait (with a given timeout) for all images to load - which would already be a huge win - before starting the intro animation for the new page. It also has an optional hook to indicate to the navigation logic when the page is ready to be displayed. If we provided such features as API it could fix all the issues described above.

What kind of images are you referring to? Bundled images or images loaded remotely?

Both actually, since they are both loaded async (at least on windows, but remote images are loaded async on all platforms I would assume).

Yeah images are always loaded async everywhere. I would recon that local loading is sufficiently fast though.
I would hesitate to include any kind of artificial delay. The ui should make appropriate transitions as soon as possible in order to give the feeling of a snappy ui.

Adding to the above comment what could be interesting is to load images independently from the ImageView. Eg. preloading when you know you will need it next. Like heating up the cache.
In some future where we would be able to properly fetch images and store them on disc that could also be implemented in user code.

I think displaying contents as they become available isn't necessarily an "ugly" effect. In most cases I suppose it will be preferable to delaying the initial UI.
If an application wants to wait for content being loaded, shouldn't that be possible using the load events of WebView and ImageView?

It's pretty ugly when the image changes the layout (which will happen whenever you rely on its intrinsic size) or covers a bigger area of the new page. I also think the "thumbs-up" appearing after a delay in the tabris-con app is pretty ugly.
Just to explain how it works in windows: There is a page-outro and a page-intro animation which play in succession. You can make it so that the page outro is played immediately, but the page intro is played only once the new page is ready. In-between that the area is blank (white or black, with a spinner if you like). That's what I would like to offer as an option, and you can't do that using only load events or pre-caching, especially if the load events rely on the widget being in the widget-tree.
A similar issue exists with the splash screen in windows (it may go away to soon), but that is much harder to fix.

@tbuschto Is the problem that the image loading takes place to late? Eg. only when the page is fully visible (after the intro animation).

After or during the animation, that's the scenario. I have to admit though that this is not as often the case at it first seemed since we often use the remote script loading feature. When packaged it's mostly only a problem when loading resources from elsewhere.
Ideas:
Using magical blocking API:
page.preload().open(); // could probably not handle XHR though....
Using promise:
page.preload().then(=> page.open());
Less magical using promise and two-step opening:
page.attach().find("Image").when("load").then(=> page.open());
Implicit two-step opening by giving a Promise (seems the best idea to me):
page.open(page.find("Image").when("load"));


App crashes while trying to Create a Nostr Account

Description
The app is crashing when I create a new Nostr Account. The app allows me to fill in my new Nostr account's information, it then shows me my account preview, but when I click on the last step, "Create Nostr Account", the app crashes.
Steps to reproduce

Click on "Create account" when first loading the app
Fill in the required fields
Create Nostr Account

Expected behavior
The app should create a brand new Nostr Profile with all the given information that the user fills in. There should be no crash.
Actual Behavior
When clicking on the "Create Nostr Account" button, the app crashes.

Fixed in build 0.22.3


Optitype on different sequencing

Hi
I have downloaded a few TCGA chr6 bam files which after converting them to fastq I've run in Optitype (docker version). I've used WXS and RNA for the available sample types (normal tissue, normal blood, primary tumor, etc).
Once done this I've tried to check the consistency of the HLA types for each patient across all its samples types (a pairwise comparison), no allowing mistmaches in any of the allele calls.
That means that if for a give patient I have these samples; A: WXS tumor B: WXS blood C: RNA tumor D: RNA blood I've compared A vs B, A vs C, A vs D, B vs C, B vs D and C vs D.
After this comparison about a 30% of comparison showed at least one mistmach in the calls.
When I compare only WXS data about 12% of comparison have at least one mistmached call,  when I do it for just RNA about 10% of comparison show at least a mistmached HLA call.
So from your experience.
Is this normal?
Would you expect such differences between WXS calls and RNA calls?
If so which one would you recommend trusting the most? I would expect the most trustable data source to be WXS Normal samples.
Once more, thanks for your time.

Hi,
Sounds a bit high, but not overly so. With six alleles per sample and four samples per individual if one out of 24 goes wrong you'll get a mismatch. Given OT's 98-odd percent allele-wise accuracy your 30% figure sounds quite realistic: major simplification, but 0.985^24 = 0.7
As for which one you should trust most, I'd go with WXS Normal as well. You might be able to confirm that on your data, whether they show best concordance with the "consensus". But feel free to send me a table, I can have a look.


not-responding form on add custom certificate

currently using the latest version estabe 2.5.0
in the form to add a new custom certificate, when you press the button "save", it is static and without doing anything else
when I check the error console in the browser, I get the following message, indicating an error when checking a property not defined in that form (maybe it was inherited from the cloudflare form)
17.bundle.17.js:1 Uncaught TypeError: Cannot read property 'cloudflare_use' of undefined
at i.click @ui.save (17.bundle.17.js:1)
at HTMLDivElement.dispatch (main.bundle.js?v=2.5.0:27)
at HTMLDivElement.p.handle (main.bundle.js?v=2.5.0:27)
I hope this problem can be solved soon
thanks

I seem to be having the same issue with a Cloudflare origin certificate.

I just tried on the recently released version 2.6.0 and the problem still persists
16.bundle.16.js:1 Uncaught TypeError: Cannot read property 'dns_challenge' of undefined
at i.click @ui.save (16.bundle.16.js:1)
at HTMLDivElement.dispatch (main.bundle.js?v=2.6.0:27)
at HTMLDivElement.p.handle (main.bundle.js?v=2.6.0:27)

See #655 - which was submitted after 2.6.0 release.

thank you for the notice
i proceed to close the issue


 Unless you redirect the stderr to /dev/null. I admit the verbose mode could print at least some message so when the stderr is ignored it is seen the framework is not hanging.

Extended with https://github.com/ingvagabund/cluster-capacity/commit/e21934896e2303d2e934683cc20d17605fa165cc
$ cc --podspec examples/pod.yaml --period 1 --verbose --output json 2>/dev/null
{"Timestamp":"2016-12-03T10:10:29.55059538+01:00","PodRequirements":{"CPU":"150m","Memory":"100Mi","NvidiaGPU":"0","OpaqueIntResources":null},"TotalInstances":26,"NodesNumInstances":{"<IP_ADDRESS>":26},"FailReasons":{"FailType":"FailedScheduling","FailMessage":"pod (small-pod-26) failed to fit in any node","NodeFailures":{"<IP_ADDRESS>":"Insufficient cpu"}}}
{"Timestamp":"2016-12-03T10:10:31.825647161+01:00","PodRequirements":{"CPU":"150m","Memory":"100Mi","NvidiaGPU":"0","OpaqueIntResources":null},"TotalInstances":26,"NodesNumInstances":{"<IP_ADDRESS>":26},"FailReasons":{"FailType":"FailedScheduling","FailMessage":"pod (small-pod-26) failed to fit in any node","NodeFailures":{"<IP_ADDRESS>":"Insufficient cpu"}}}

$ cc --podspec examples/pod.yaml --period 1 --verbose --output yaml 2>/dev/null
FailReasons:
  FailMessage: pod (small-pod-26) failed to fit in any node
  FailType: FailedScheduling
  NodeFailures:
    <IP_ADDRESS>: Insufficient cpu
NodesNumInstances:
  <IP_ADDRESS>: 26
PodRequirements:
  CPU: 150m
  Memory: 100Mi
  NvidiaGPU: "0"
  OpaqueIntResources: null
Timestamp: 2016-12-03T10:12:29.458588752+01:00
TotalInstances: 26
FailReasons:
  FailMessage: pod (small-pod-26) failed to fit in any node
  FailType: FailedScheduling
  NodeFailures:
    <IP_ADDRESS>: Insufficient cpu
NodesNumInstances:
  <IP_ADDRESS>: 26
PodRequirements:
  CPU: 150m
  Memory: 100Mi
  NvidiaGPU: "0"
  OpaqueIntResources: null
Timestamp: 2016-12-03T10:12:31.594706875+01:00
TotalInstances: 26

Though, non-json output format does not make much sense.

Thanks your fix. --verbose work in watch mode, but still need to improve I think. Please refer to https://github.com/ingvagabund/cluster-capacity/issues/17


Timed out element blocks subsequent element in Flow.withTimeout

  it should "work for flows that keep the order of messages" in {
    val delayActor = system.actorOf(Props[DelayActor])
    import akka.pattern.ask
    implicit val askTimeout = Timeout(5.seconds)
    val flow = Flow[String].mapAsyncUnordered(10)(elem => (delayActor ? elem).mapTo[String])

    val result = Source("a" :: "b" :: "c" :: Nil).via(flow.withTimeout(timeout)).runWith(Sink.seq)

    val expected = Success("a") :: Success("c") :: Failure(FlowTimeoutException()) :: Nil
    result map { _ should contain theSameElementsAs expected }
  }

Test above should be successful. At this time, it is not.

While this is not a valid use case (TimerEnvelope API should be used if the flow may not be able to keep the ordering of message), we should at least need to figure out what's going on here.

Here is a gist that show cases this problem: https://gist.github.com/anilgursel/aa70497a9431fc8b498c599d9d469e2b.  The first test passes while the second one fails.  If fusing is disabled (implicit val materializer = ActorMaterializer(ActorMaterializerSettings(system).withAutoFusing(false))), then both tests pass.


Xhtml2PDF, Web pages with Images, ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

I have a script which parses the content of the website and converts it to PDF files. The website was not using https but recently switched to it. After that my script stopped working as expected for pages which contain links to images.
The error goes from this line:
pisaStatus = pisa.CreatePDF(
        sourceHtml,                # the HTML to convert
        dest=resultFile)           # file handle to recieve result

For any page which has link to image I get following error:
File "default_old.py", line 164, in convert_html_to_pdf
  dest=resultFile)           # file handle to recieve result
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/document.py", line 97, in pisaDocument
  encoding, context=context, xml_output=xml_output)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/document.py", line 59, in pisaStory
  pisaParser(src, context, default_css, xhtml, encoding, xml_output)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 708, in pisaParser
  pisaLoop(document, context)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 648, in pisaLoop
  pisaLoop(node, context, path, **kw)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 593, in pisaLoop
  pisaLoop(nnode, context, path, **kw)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 593, in pisaLoop
  pisaLoop(nnode, context, path, **kw)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 477, in pisaLoop
  attr = pisaGetAttributes(context, node.tagName, node.attributes)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 117, in pisaGetAttributes
  nv = c.getFile(nv)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/context.py", line 848, in getFile
  return getFile(name, relative or self.pathDirectory)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/util.py", line 673, in getFile
  file = pisaFileObject(*a, **kw)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/site-packages/xhtml2pdf/util.py", line 581, in __init__
  conn.request("GET", path)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 1057, in request
  self._send_request(method, url, body, headers)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 1097, in _send_request
  self.endheaders(body)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 1053, in endheaders
  self._send_output(message_body)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 897, in _send_output
  self.send(msg)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 859, in send
  self.connect()
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/httplib.py", line 1278, in connect
  server_hostname=server_hostname)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/ssl.py", line 352, in wrap_socket
  _context=self)
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/ssl.py", line 579, in __init__
  self.do_handshake()
File "/home/alexander/.pyenv/versions/2.7.11/lib/python2.7/ssl.py", line 808, in do_handshake
  self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

How can I solve it?

This error sounds that you have a self signed certificate.
here is where https connection is make, if you see no ssl exception found so it's is not possible for xhtml2pdf
https://github.com/xhtml2pdf/xhtml2pdf/blob/32a5006bb02a95d7dcfaaf46bc4e0f60520bb8e9/xhtml2pdf/util.py#L635
but it's not impossible to solve, try searching in google how to add own certificate to python trust certificate path.

The script is not working only for couple of pages. For all the rest of the pages it is working as expected. That is why I think the problem is not in how I create connection. However, I have tried to create connection with disabled ssl certificate prove and also with the path to the website certificated. The result is the same.

well you are right, see PR #378.

@luisza  Thanks Luis, looks like it can solve the problem. Can you please also give a small example of how can I pass settings which force disable ssl check?

Sorry,  The new options are
--http_nosslcheck:
No check ssl certificate.
See http.client.HTTPSConnection documentation for this parameters
--http_key_file
--http_cert_file
--http_source_address
--http_timeout
So you need to call with something like
xhtml2pdf  --http_nosslcheck https://domain   yourfile.pdf
If you want to test you need something like
git clone https://github.com/xhtml2pdf/xhtml2pdf.git
git checkout -b luisza-http_config master
git pull git://github.com/luisza/xhtml2pdf.git http_config

@luisza  Thank you very much! can you show also how can I pass this argument in code without command line?

Hi,
Basically you need to set  httpConfig before call pisa.CreatePDF
For example:
from xhtml2pdf.config.httpconfig import httpConfig
httpConfig.save_keys('nosslcheck', True)
pisaStatus = pisa.CreatePDF(
        sourceHtml,
        dest=resultFile)

other way is setting as a dict
import ssl
from xhtml2pdf.config.httpconfig import httpConfig
httpConfig['context']=ssl._create_unverified_context()
...

Very helpful! Thanks one more time. The code is working as expected now.

Great,
It's helps a lot if you could write some documentation about how make it work (based in this issue answers) so I could include in documentation and merge in master faster.


docs: Add Diagrams to Singer Spec

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2693
Originally created by @tayloramurphy on 2021-04-02 20:03:32

Feedback from first draft is that some diagrams would help.
We can add Mermaid to the blog to help with this. I think some simple ones would be great.
This was shared on the Singer Slack

View 3 previous comments from the original issue on GitLab

Still relevant.
@WillDaSilva I think the stale bot is ignoring the https://github.com/meltano/meltano/labels/evergreen label.

@edgarrmondragon It isn't ignoring it per se. It doesn't check for the label when closing an issue, and when the label was initially added it had hit a rate limit for this repository so it couldn't remove the stale label. Now that it's done its initial flurry, it shouldn't hit the rate limit anymore, so it should reliably pick up when the evergreen label is added.


RandomPairSampler is missing

Great library!
The implementation for RandomPairSampler is missing from utils/data/sampler.py. Will it be implemented any time soon? It sounds like something useful for loading input data for a verification task.

We implemented a RandomPairSampler in an earlier version of the library. But later it was removed as the API for learning models with siamese structure and joint embedding was not well designed. A temporary (but maybe better) solution is to generate pairs inside a mini-batch, just like what the triplet loss did.


Accelerated bridge CNI release

we have added a few CVE fixes to accelerated bridge CNI, lets do a release so folks enjoy latest fixes.
perhaps we want to have #57 as well

will go ahead and release a patch release of the CNI.
issue #57 will be handled at a later time

v0.5.1 released.


Fix build signing after update to Gradle 4.

Auto release of 2.0.1 failed because build process didn't sign jars, sign task was skipped.
My guess is that Gradle 4.x significantly refactored build lifecycle and we can't analyze task graph at the time of deciding if we should sign jars or not.
I've checked new version locally, it runs signing, so it should be good now, I'll release v2.0.2 after merging this PR.

Codecov Report

Merging #832 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #832   +/-   ##
=======================================
  Coverage   97.41%   97.41%
=======================================
  Files          91       91
  Lines        2707     2707
  Branches      305      305
=======================================
  Hits         2637     2637
  Misses         38       38
  Partials       32       32

Continue to review full report at Codecov.

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

Uhh, it's kinda hard to decouple release scripts and Gradle setup from Travis, it runs regular ci.sh before deploy and we're trying to sign jars right away
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':storio-common:signArchives'.
> Cannot perform signing task ':storio-common:signArchives' because it has no configured signatory


Bash adapter

It would be great if there were an adapter for debugging Bash scripts that use this library: https://github.com/rogalmic/vscode-bash-debug
I would also like to know how to create new adapters. Should they live in this package? Is it possible to create a new package that provides new adapters?
Thank you very much for your hard work. This plugin really helps Sublime Text ecosystem :)

If its for other people to use they should live in this package because there isn't a stable api for adapters to use. For testing and custom adapters you can add them outside the package and they will be picked up.
Here is the current adapters https://github.com/daveleroy/SublimeDebugger/tree/master/modules/adapters you can add to that and import it in the init.py and open a pull request.
Something like the following should get you started.

from . import util
from .. import dap
from .. import core

class Bash(dap.AdapterConfiguration):

	type = 'bashdb'
	docs = 'https://github.com/rogalmic/vscode-bash-debug#vs-code-bash-debug'

	installer = util.GitInstaller (
		type='bashdb',
		repo='rogalmic/vscode-bash-debug'
	)

	async def start(self, log: core.Logger, configuration: dap.ConfigurationExpanded):
		node = await util.get_and_warn_require_node(self.type, log)

		install_path = self.installer.install_path()
		command = [
			node,
			f'{install_path}/extension/out/bashDebug.js'
		]
		return dap.StdioTransport(command)

	async def configuration_resolve(self, configuration: dap.ConfigurationExpanded) -> dap.ConfigurationExpanded:

		defaults = {
			'pathBash': 'bash',
			'pathBashdb': f'{self.installer.install_path()}/extension/bashdb_dir/bashdb',
			'pathBashdbLib': f'{self.installer.install_path()}/extension/bashdb_dir',
			'args': [],
			'env': {},
			'argsString': '',
			'pathCat': 'cat',
			'pathMkfifo': 'mkfifo',
			'pathPkill': 'pkill',
			'cwd': configuration.variables['folder']
		}

		for key, value in defaults.items():
			if not configuration.get(key):
				configuration[key] = value

		return configuration

They verify some things here https://github.com/rogalmic/vscode-bash-debug/blob/e9ae6ea07c05ce621d2f25b899b5560d000d9c57/src/extension.ts#L46 which I did not add


Fix panic and UB message style to comply rustc diagnostic style

I had to discipline myself xD

hehe. ;)
Thanks!


Header type problem

Trying:
python csv2es.py --index-name test --doc-type test --import-file test.csv
gives:
Using host: http://<IP_ADDRESS>:9200/
Traceback (most recent call last):
  File "csv2es.py", line 215, in <module>
    cli()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "csv2es.py", line 197, in cli
    es.create_index(index_name)
  File "/usr/local/lib/python2.7/dist-packages/pyelasticsearch/client.py", line 92, in decorate
    return func(*args, query_params=query_params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyelasticsearch/client.py", line 1005, in create_index
    query_params=query_params)
  File "/usr/local/lib/python2.7/dist-packages/pyelasticsearch/client.py", line 257, in send_request
    self._raise_exception(status, error_message)
  File "/usr/local/lib/python2.7/dist-packages/pyelasticsearch/client.py", line 271, in _raise_exception
    raise error_class(status, error_message)
pyelasticsearch.exceptions.ElasticHttpError: (406, u'Content-Type header [] is not supported')

I'm not an elasticsearch expert so, forgive me if this is something idiot.

Happens to me also. i have just followed the sample code provided

The same questions!  hope to fix it as soon as possible!

I find the way to solve the Q, just modify the requirements.txt, set the elasticsearch to your version. For example, if your version is 6.x.x you can set: elasticsearch>=6.0.0,<7.0.0

I find the way to solve the Q, just modify the requirements.txt, set the elasticsearch to your version. For example, if your version is 6.x.x you can set: elasticsearch>=6.0.0,<7.0.0

Alternatively, if you are using the pip installed version, you can just upgrade elasticsearch (pip install --upgrade elasticsearch).

Have this issue with elasticsearch-7.7.1.


Allow depends, pre-depends, recommends, and suggests to be arrays

This commit makes it so that depends (and any of the other fields above) can be written as
depends = ["a", "b", "c"]

in addition to the existing depends = "a, b, c" format.
It is converted at the config level by joining all the array elements with ", ". No additional validation is performed beyond that already done by serde deserialization.
I have tested this with a local crate and it appears to work as expected.
Closes #88

Thanks


Fixed check if sourcefilename is valid

When the server checks if sourcefilename is valid it treats the run variable as an object but during the check the variable is not an object yet. So it will never check the filename.
This will fix #46

Ouch, that's embarassing. Thanks for checking and fixing.

Ouch, that's embarassing. Thanks for checking and fixing.


Secure cadence 34

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 57.898%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1019

Relevant Lines:
1760

💛  - Coveralls


Focus input

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description
#17339
https://github.com/appsmithorg/appsmith/issues/4874
I requested the focus function, but it hasn't been done yet.
I looked at the reset function and made it similar.
I don't think this will be merged.
I will fix the wrong part if you give me a guide.
@satbir121 @bharath31
https://user-images.githubusercontent.com/107019051/211307979-408c5a5a-3e12-423e-b418-420c89d149a2.mov
Checklist:
Dev activity

[x] 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
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

I'll upload again with another account


Issue with openpyxl

I am trying to write excel in Julia and it seems that the best way is to use PyCall to call python packages. I installed PyCall and other packages like numpy and math worked when I use PyCall, however, when I use @pyimport openpyxl, it says ImportError('No module named openpyxl',).
Then I noticed that perhaps I should link PyCall to my python directory and tried everything on this page but it still doesn't work. Any similar situations? How can I solve this issue? Thanks.

I just tried this and it worked:
import Conda
Conda.add("openpyxl")
using PyCall
@pyimport openpyxl

Does it work for you? You can also try:
ENV["PYTHON"]=""; Pkg.build("PyCall")

Before rerunning the above code.

No module named openpyxl simply means that openpyxl is not installed for the Python version that PyCall is configured to use.   Either switch Python versions (via ENV["PYTHON"]="") as explained in the README, or install openpyxl as usual for Python.
I would do pyimport_conda("openpyxl", "openpyxl") to automate the installation process, as described in the README.

It worked, thanks.


panic marshalling list in map[string]any

hello,
i'm looking at using kdl with viper, and am having an issue with a test case.
var data = map[string]any{
	"key": "value",
	// "list": []any{
	// 	"item1",
	// 	"item2",
	// 	"item3",
	// },
	"map": map[string]any{
		"key": "value",
	},
	"nested_map": map[string]any{
		"map": map[string]any{
			"key": "value",
			"list": []any{
				"item1",
				"item2",
				"item3",
			},
		},
	},
}

this test case can be turned into a kdl byte string without issue, but if i uncomment the list above then i get a panic.
if i uncomment the list above and then wrap the entire object in another map[string]any then that also works.
var data = map[string]any{
	"results": map[string]any{
		"key": "value",
		"list": []any{
			"item1",
			"item2",
			"item3",
		},
		"map": map[string]any{
			"key": "value",
		},
		"nested_map": map[string]any{
			"map": map[string]any{
				"key": "value",
				"list": []any{
					"item1",
					"item2",
					"item3",
				},
			},
		},
	},
}

here is the panic i get
Running tool: C:\Program Files\Go\bin\go.exe test -timeout 30s -run ^TestCodec_Encode$ github.com/spf13/viper/internal/encoding/kdl

--- FAIL: TestCodec_Encode (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x20e960]

goroutine 6 [running]:
testing.tRunner.func1.2({0x2f5220, 0x5a4e60})
	C:/Program Files/Go/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
	C:/Program Files/Go/src/testing/testing.go:1548 +0x397
panic({0x2f5220?, 0x5a4e60?})
	C:/Program Files/Go/src/runtime/panic.go:914 +0x21f
github.com/sblinch/kdl-go/internal/marshaler.marshalSliceToNode(0x2f3d20?, {0x33bd68, 0x4}, {0x2dcfc0?, 0xc000008120?, 0x0?}, 0x0)
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:158 +0x680
github.com/sblinch/kdl-go/internal/marshaler.marshalValueToNode(0xc0000ffe60, {0x33bd68, 0x4}, {0x2dcfc0?, 0xc000008120?, 0x18b434b0108?}, 0x0)
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:544 +0xce9
github.com/sblinch/kdl-go/internal/marshaler.marshalValueToNode(0xc0000ffe60, {0x33bd68, 0x4}, {0x2ed140?, 0xc000032620?, 0x98?}, 0x0)
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:548 +0xc8d
github.com/sblinch/kdl-go/internal/marshaler.marshalMapToNodes(0x30?, {0x2f23a0?, 0xc00002d170?, 0x18b434b0108?}, {0x0?, 0x0, 0x0})
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:70 +0x23b
github.com/sblinch/kdl-go/internal/marshaler.marshalValueToNodes(0x100?, {0x2f23a0?, 0xc00002d170?, 0x1000013804d?})
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:725 +0x150
github.com/sblinch/kdl-go/internal/marshaler.MarshalWithOptions({0x2f23a0, 0xc00002d170}, 0xc0000ffea8, {})
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:47 +0x107
github.com/sblinch/kdl-go/internal/marshaler.Marshal(...)
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/internal/marshaler/marshal.go:37
github.com/sblinch/kdl-go.Marshal({0x2f23a0, 0xc00002d170})
	C:/Users/drewr/go/pkg/mod/github.com/sblinch/kdl-go@v0.0.0-20231112203113-9fa9a505b79a/marshal.go:52 +0x76
github.com/spf13/viper/internal/encoding/kdl.Codec.Encode(...)
	c:/Users/drewr/viper/internal/encoding/kdl/codec.go:9
github.com/spf13/viper/internal/encoding/kdl.TestCodec_Encode(0x0?)
	c:/Users/drewr/viper/internal/encoding/kdl/codec_test.go:86 +0x2a
testing.tRunner(0xc00006f6c0, 0x36d4f8)
	C:/Program Files/Go/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
	C:/Program Files/Go/src/testing/testing.go:1648 +0x3ad
FAIL	github.com/spf13/viper/internal/encoding/kdl	0.443s
FAIL

so with this
key "value"
map "skipped"
map key="skipped" key="value"
nested_map {
map key="value" 17 {
	list "item1" "item2" "item3"
	mixup ""=1 2 3 4
	first "first"=1 2 3 4
	child ""=1 2 3 4 { "" 5 ; "" 6 ; }
}
}

i get unmarshal errors from map being there twice, i think because the type changes. but i think it should just replace the type and the last one should win? any other option gets complicated, but i dont think it should throw because its valid kdl?
separate issue { "" 5 ; "" 6 ; } is valid kdl but seems to cause an issue. i think semicolon isn't correctly being handled. { "" 5 "" 6 } works fine

I've come to understand that my initial issue may have been caused by my triggering the key=val logic as described in the docs, https://github.com/sblinch/kdl-go/blob/main/docs/marshal.md

If the slice is of type []interface{}, elements of type []interface{}{"key", value} are treated as properties, and all other elements are treated as arguments.

this is pretty cool actually and i like this but it did surprise me. is there a toggle somewhere? i'm learning as I go and see that kdl-go has already thought of most of the things that have come to mind for me. :-) closing this 'working as intended' unless you think otherwise can reopen? it may be nice to get an error message instead of a panic, panics make me sad.

actually, reopening this because I tried using a string using

If the slice is of type []string, elements containing an equal sign (=) are treated as properties by splitting them at the equal sign (eg: in name=John, name becomes the key and John becomes the value), and all other elements are treated as arguments.

			input: map[string]interface{}{
				"null":    nil,
				"boolean": true,
				"color":   "gold",
				"number":  int64(123),
				"string":  "Hello World",
				// "array":   []interface{}{1, 2, 3, 4, 5}, // https://github.com/sblinch/kdl-go/issues/3
				"stringarray": []string{"1", "2", "3", "4", "5"},
				"object":      map[string]interface{}{"a": "b", "c": "d"},
			},

and still got panic same as before. none of these have an '=' so each of the stringarray values should be put into arguments right? .1 = "1" and so on?

this test case can be turned into a kdl byte string without issue, but if i uncomment the list above then i get a panic.

Fixed, thank you!

actually, reopening this because I tried using a string using

Can't reproduce with the info you've provided. If the problem was not resolved by the fix for the above issue, please open a new issue with a complete test case and I'll investigate.


multiple issues not displayed in recommendations

Here's a case of event loop delay and GC issue - but only GC issues displays in the recommendations tab

also should all lines in memory usage be read?

A severe memory issue often entails blocking the event loop, so it’s impossible to discern from both. In other terms, “the event loop is blocking because of high gc activity”.
However the code in that case does not seem to show such problematic memory usage.. can you share a repro?

In this case there's event loop blocking code and a memory leak - this is evident because a shorter duration load test only exposes the event loop issue whereas a longer one also teases out the memory leak
Will share code once I've pushed it to a repro

To me it is fine to detect one issue at a time. This keeps the UI simple and it is intended to run the tool multiple times until it does not show any issues anymore.
And since it is also difficult to distinguish the cases, I am closing this. If you still think it should be addressed, please show an example code and maybe also outline how it should be visualized.


ui/map: better rounding for distances

rounding to nearest integer  if d <= 500 ft | m:
1.6 ->  2 ft | m
1.2 -> 1 ft | m
200.5 -> 201 ft | m

rounding by 2 digit precision  if d > 500 ft | m && d <= 10 mi | km:
0.52 -> 0.5 mi | km
0.89 -> 0.9 mi | km
1.52 -> 1.5 mi | km
1.58 -> 1.6 mi | km

rounding to nearest integer if d > 10 mi | km:
10.6 -> 11 mi | km
10.3 -> 10 mi | km
110.6 -> 111 mi | km

resolve https://github.com/commaai/openpilot/issues/29132

Nice! Can we use the same formatting for the ETA?

Think rounding to nearest 50 ft is fine, that's what GMaps does. But I haven't tried this in the car, so maybe it feels better

Let's still round to 50 ft/m, and continue to show ft/m < 500.

looks mostly good to me! @incognitojam can you final review it/clean it up if needed and get this merged?

thanks!


Multiplexing: RequestId type is fixed to u64

Currently RequestId type is fixed as u64 and is generated at client. I propose that multiplexing should be generic over some trait RequestId: Hash + Eq + Debug + Copy {} and this of course would mean that RequestId generation has to happen somehow other than by keeping a counter.
My use case is a multiplexed protocol where identifiers are Uuids.
If this feature is not of any importance to the project at the moment, any mentorship or advice would be appreciated.

See #129

Thanks @aajtodd, missed #129. Closing as duplicate.


sendmail::mc::feature

Either I'm not doing something correctly or understanding the module correctly but I am unable to get the sendmail::mc::feature to add a FEATURE to the sendmail.mc file. In my hierdata/hosts/sendmail.yaml file I'm adding:
classes:

"sendmail"

"sendmail::mc::feature": mailertable
{bunch of other sendmail:: configs}
But when I run puppet agent on my host, it doesn't even look like it's running the mc::feature class. Everything else works perfectly fine but it's just this sendmail::mc::feature class that just isn't running. (Hopefully all that makes sense?)

If you only included sendmail in your hiera classes, then only that class is used. sendmail::mc::feature is a defined type which needs to be defined separately for each required feature. So you will have to add
sendmail::mc::feature { 'mailertable': }

somewhere in your manifests.
What you are trying to do in hiera is currently not possible. The general suggestion would be, to create a profile class (e.g. profile::sendmail) and include all the necessary definitions in that class.
But I can see the benefit of including a couple of features in the main sendmail class especially if that would be the only reason to write a profile class. I could add a new parameter features to the class that would take a hash of the features to add. In your case you would have to include
sendmail::features:
  mailertable: {}

in hiera to make it work. mailertable is the name of the feature to add (see above) and {} is an empty hash of parameters if you do not need any (as above).

I have just uploaded version 1.3.0 of the sendmail module to the Puppet Forge. It contains the proposed features parameter. You should be able to include the mailertable feature using the hiera code outlined above.
But please not that this will only include the feature in the configuration. It does not manage the mailertable file itself. You will have to use the sendmail::mailertable class to manage the complete file or the sendmail::mailertable::entry defined type to manage individual entries in the file.

Just updated to 1.3.0 and everything works awesomely now. Thanks for a pushing a fix like that!

Fixed in release 1.3.0


unsused containers are not deleted automatically

This is being addressed by https://github.com/backend-developers-ltd/ComputeHorde/pull/59

In earlier versions, some containers with keep_ prefix were created. You can safely remove them.
From the latest release, containers will be removed after jobs (as was previously), and images will be pruned if configured threshold crosses.
For details, see #59


Read TC Revision in GetTcVersion

Is it possible to also read the revision number in the GetTcVersion?
I already tried to add the additional function assuming it was on the next subindex
int32_t TwinCAT::getTcRevision(uint16_t& revision)
{
	uint32_t u32_tc_revision_idx = 0x8001 + (m_moduleId << 4);
	u32_tc_revision_idx = (u32_tc_revision_idx << 16) + 4; // Subindex "Revision version"

	uint32_t n_bytesRead = 0;
	return m_adsClient.AdsReadReq(MDP_IDX_GRP, u32_tc_revision_idx, sizeof(revision), &revision, &n_bytesRead);
}

However this results in the Ads-Error 0xECA60102

At sub index 4 is the AmsNetId. Here you can find the information model:
https://infosys.beckhoff.com/content/1033/devicemanager/263030539.html
Anyway, I will check if/how it is possible to read the revision.

Oh that page helps a lot. On first glance it looks like I need to read sub index 12.
Going to test it tomorrow.

It look like sub index 12 is indeed the TwinCAT revision.


user authentication package

Models user as a NamedResource with and ssh/rsa public key and a
specific role.
A role is defined as a set of privileges and a privelege captures the
create, read, update and deleted operations against a resource key. If
the resource key is empty then the privilege applies to all resources.
Signed-off-by: Ravi Chamarthy<EMAIL_ADDRESS>

Codecov Report

Merging #36 (d1ffba3) into main (ce246d8) will increase coverage by 3.28%.
The diff coverage is 93.03%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   77.34%   80.63%   +3.28%
==========================================
  Files          11       14       +3
  Lines         596      754     +158
==========================================
+ Hits          461      608     +147
- Misses        113      122       +9
- Partials       22       24       +2

Impacted Files
Coverage Δ

auth/rsa.go
87.69% <87.69%> (ø)

auth/role.go
96.38% <96.38%> (ø)

auth/user.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Codecov Report

Merging #36 (b5e8f81) into main (ce246d8) will increase coverage by 3.71%.
The diff coverage is 94.96%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   77.34%   81.05%   +3.71%
==========================================
  Files          11       14       +3
  Lines         596      755     +159
==========================================
+ Hits          461      612     +151
- Misses        113      119       +6
- Partials       22       24       +2

Impacted Files
Coverage Δ

auth/rsa.go
87.69% <87.69%> (ø)

auth/role.go
100.00% <100.00%> (ø)

auth/user.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


added textstat - python package

Python package to calculate statistics from text, which helps to decide readability, complexity and grade level of a particular corpus.

@shivam5992 Can you please edit the package.json as well? Thanks! ❇

Already added this in package.json 🚀

/cc #5


Add listening for RxSet to ReactiveServiceMixin

This pull request contains a small change to also notify listeners for RxSet, with the same logic that applies to RxList

Nice, thanks. Will push update now.

Pushed. 1.7.2 has the changes

Sweet, cheers


Unable to provision clusters in latest v2.6-head

Summary:

I suspect this could be a fleet issue. If not, we should transfer it to rancher/rancher or the relevant project.
I can no longer provision any clusters, whether they be rke1 or rke2 in Rancher. I have not tried hosted providers or importing. This seems to happen regardless of the node driver type.
In the rancher logs we see:
2021/11/10 20:02:17 [ERROR] error in planner for 'fleet-default/dave-azuretest': secrets "dave-azuretest-bootstrap-template-gblwb-machine-plan" not found
2021/11/10 20:02:17 [ERROR] error in planner for 'fleet-default/dave-azuretest': secrets "dave-azuretest-bootstrap-template-gblwb-machine-plan" not found

And I noticed an entry below when I enable debug logging:
2021/11/10 20:05:58 [DEBUG] Searching for providerID for selector rke.cattle.io/machine=f225a6d3-425f-417e-b100-c650095d5178 in cluster fleet-default/dave-fleet-c, machine dave-fleet-c-pool1-75b6d55b5c-ktwnr: {"Code":{"Code":"Forbidden","Status":403},"Message":"clusters.management.cattle.io \"c-m-rvn8ltbz\" is forbidden: User \"u-5p7ztbex4v\" cannot get resource \"clusters\" in API group \"management.cattle.io\" at the cluster scope","Cause":null,"FieldName":""} (get nodes)

This issue was identified in a recent v2.6-head build created 1-3 hours ago, tag v2.6-25b1518bacbd5833435a494a463b2f253328d79c-linux-amd64 specifically was used for my testing.

Environment:
Rancher version: v2.6-head 25b1518 11/10/2021 ~11:45am Arizona time
Rancher cluster type: single-node docker install
Docker version: 20.10
Downstream cluster type: any rke1 or rke2 node driver clusters
Downstream K8s version: any
Steps to Reproduce:

Try to provision an RKE1 or RKE2 cluster with node driver

Expected Result:
The cluster(s) to provision without any issues.
Actual Result:
The clusters will never get past the status "Non-ready bootstrap machine(s) dave-azuretest-pool1-ddfb8784-s7jxk: waiting for cluster agent to be available and join url to be available on bootstrap node" and are stuck in the provisioning state.
Additional Info:
Slightly older v2.6-head build doesn't seem to have this problem. I don't recall the specific commit I was using prior I think it was from the day prior. But, based on reports form other QA folks this seems to be pretty recent.

Transferred to rancher/rancher because the latest v2.6-head build is from ~15 hours ago and Fleet charts (v0.3.8-rc1) were merged ~4 hours ago. While Fleet might still be an issue, v2.6-head appears to be broken for another reason. Regardless, where the issue is happening is TBD, so transferring to this repository is appropriate.

@davidnuzik after the v2.6-head update yesterday, I no longer see this issue. Are we good to close and reopen if needed?

Yep! Thanks - closing. This is no longer an issue.


Feature/metrics

Adding metrics in application in /actuator/metrics endpoints and also send usage to log as INFO messages.

The code analysis fails with wrong java source code 13. Not sure how to fix this Magnus?


Responsive grid with item's width fixed

Is it possible to keep the items width fixed while the grid is responsive? For example, a grid of 1000px, 4 columns and items of 250px. The moment the grid is below 1000px, the grid should be of 3 columns but items still 250px. instead of 33% width of the grid.

At this time that's not possible, but you could emulate it by fixing the container size to intervals based on breakpoints. If you made the actual grid container 750px wide it would work fine.
If you're trying to get them to justify while remaining 250px, you'd have to add your own resize handler adjust the margin prop.

Ok, I'll give a try to set the grid's container a fixed width. Thanks!


Fixed pyenv version syntax

The :latest syntax used in the  pyenv invokation in onCreateCommand.sh does not appear to exist. Because of this, the devcontainer fails to build. The fix is to specify the Python versions without patch versions, which makes pyenv automatically use the latest version.
Snippet from the log for the previously failing build:
pyenv: version `latest' not installed
pyenv: python3.8: command not found

The `python3.8' command exists in these Python versions:
  3.8.18

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.
scripts/onCreateCommand.sh: line 27: /workspaces/lsprotocol/.venv/bin/activate: No such file or directory
[1268491 ms] onCreateCommand failed with exit code 1. Skipping any further user-provided commands.

It looks like ruff updated formatting rules. Would it be possible for you to run ruff format . with the latest version of Ruff

Interesting.. I am testing the build of new codespaces container myself just right now, but was able to get through all versions including 3.8 but still ended up with failed build. Perhaps there was some update from pyenv getting rid of :latest

Did the reformatting, it added one comma :)


Update lint_pull_request.yml

updated lycheeverse/lychee-action
Pre-Review Checklist for the PR Author

[ ] Code follows the coding style of CONTRIBUTING.md
[ ] Tests follow the best practice for testing
[ ] Changelog updated in the unreleased section including API breaking changes
[ ] Branch follows the naming format (iox-123-this-is-a-branch)
[ ] Commits messages are according to this guideline

[ ] Commit messages have the issue ID (iox-#123 commit text)
[ ] Commit author matches Eclipse Contributor Agreement (and ECA is signed)

[ ] Update the PR title

Follow the same conventions as for commit messages
Link to the relevant issue

[ ] Relevant issues are linked
[ ] Add sensible notes for the reviewer
[ ] All checks have passed (except task-list-completed)
[ ] All touched (C/C++) source code files from iceoryx_hoofs are added to ./clang-tidy-diff-scans.txt
[ ] Assign PR to reviewer

Notes for Reviewer

Checklist for the PR Reviewer

[ ] Commits are properly organized and messages are according to the guideline
[ ] Code according to our coding style and naming conventions
[ ] Unit tests have been written for new behavior
[ ] Public API changes are documented via doxygen
[ ] Copyright owner are updated in the changed files
[ ] All touched (C/C++) source code files from iceoryx_hoofs have been added to ./clang-tidy-diff-scans.txt
[ ] PR title describes the changes

Post-review Checklist for the PR Author

[ ] All open points are addressed and tracked via issues

References

Closes TBD

I updated the actions with #2021
@mosfet80 looking forward to more contributions from you and I hove the formalism does not scare you away :)


Add Label and Helper Text to Input and other components

Instead of wrapping the component with a Label we should be able to pass a label prop that does it for us. I would expect similar behaviour for helper text too. This should help reduce the verboseness of our current implementation.
https://priceline.invisionapp.com/d/main#/console/18363303/381488561/preview

First phase we could just add the helperText prop to get the ball rolling.
@James300 Are you thinking something like this?
function Input(props) {
  const { helperText, ...rest } = props;

  return (
    <Fragment>
      <input {...rest} />
      {helperText && <div>{helperText}</div>}
    </Fragment>
  );
}


Don't copy GDAL API C files in clean target.

da85e9521e98e05bfa6033a127b48e38069bebf0 broke the clean target again, because it changes the sources when it shouldn't. This was fixed earlier via #322.

It's a little more complicated than this. The source distribution contains an ogrext1.c and an ogrext2.c file now and we use the one suited to the builder's GDAL API version. I'm going to make a new PR that does this without copying files.
Can you remind me how the clean target is used within a Debian build @sebastic?

The separate targets are called in the various stages of the build:
python setup.py clean
python setup.py config
python setup.py build
python setup.py install --root <DESTDIR>

The clean target is first executed outside the build chroot, and then again inside the chroot as part of the sequence above (which is executed for every Python version).

Replaced by #362.


'adaptiveHeight' with more than 1 'item'

Hi,
I am using the slider as a carousal with item set to 2 and slideMove set to 2. The issue is that the adaptiveHeight modifies the height based on the slide number and not the set currently being shown.
Let me explain.
My settings:
$('#responsive').lightSlider({
        item:2,
        loop:false,
        slideMove:2,
        adaptiveHeight:true,
});

So lets say my slider has 8 slides (each image has a different height)
So the slides visible are 1 & 2
On pressing next slides 3 & 4 are visible
And so on...

Issue 1:
Now when slides 1 & 2 are visible, height is adjusted for image 1, even if image 2 is taller. Hence image 2 gets cropped.
Issue 2:
On 'Next', slide 3 & 4 are visible, but height is set for image 2. Now if say image 3 & 4 were both taller than image 2, then both 3 & 4 are cropped.
Hope I make sense. Let me know if you need me to explain this further, and i'll get some screenshots with captions.
Thanks again,
Jasin

Hi,
I think using adaptiveHeight: true with multiple slide item would not be a good idea because remaining slides in the viewport may get cropped or display a gap under slider item.
But if you want to use adaptiveHeight with multiple slide item you can use something like this.
var adHeight = 0;
for (var i = 0; i < settings.item; i++) {
    // check tallest slide in the viewport
    if ($children.eq(scene+i).outerHeight(true) > adHeight) {
        adHeight = $children.eq(scene+i).outerHeight(true)
    };
};
$el.css('height', adHeight);

Please update line number 894 and 983. Please note this code works well only when loop is false.
// From your code sample i can see that you are using loop false

Hi Sachin, you rock!
The above code works great as long as slideMove is set to 1
This means issue 1 above is solved, though issue 2 still remains. But I can set slideMove to 1 to take care of it.
And yes, the loop ofcourse has to be set false.
Thanks a lot. Keep up the awesomeness :)

Two years later sorry but for other guys...
Add a new function:
`getHeight: function() {
var startIndex = (scene * settings.item);
var endIndex = (startIndex + settings.item);
var maxHeight = 0;
if(endIndex >= length)
{
	startIndex -= (endIndex - length);
	endIndex = length;
}

for (var i = startIndex; i < endIndex; i++)
{
	var height = $children.eq(i).outerHeight();
	if(height > maxHeight) maxHeight = height;
}

return maxHeight;

}`
And update these lines (sorry I added multiple fixes so my lines numbers are not the same for you):

In "setHeight: function() ... var setCss = function() ...", after "if (fade) {}", add this:
if (settings.item > 1) {  tH = plugin.getHeight(); }

In "refresh.init = function ()", inside "if (settings.adaptiveHeight === true && settings.vertical === false) {}", change by this:
if (settings.item > 1) {  var height = plugin.getHeight();  $el.css('height', height); } else {  $el.css('height', $children.eq(scene).outerHeight(true)); }

In "$el.mode = function (_touch) {}", inside "if (settings.adaptiveHeight === true && settings.vertical === false) {}", change by this:
if (settings.item > 1) {  var height = plugin.getHeight();  $el.css('height', height); } else {  $el.css('height', $children.eq(scene).outerHeight(true)); }

I hope that some of you will win a few minutes or hours ;-)

I also have this problem, I don't understand how to apply these fixes discussed in this thread. I tried @sachinchoolur answer by pasting his code into the "onSliderLoad: function() { // code here }" function, but it made no difference.
Any advice?


bug fix: correct path for AlreadyExistsError

Need to fully qualify the path to AlreadyExistsError (otherwise, run into a runtime error)

Looks good


The process that is defined for using connection references does not work as described.

With one simple flow using the current environment CDS connector. Connection references from the source environment included in the solution. When deploying, the flow no longer recognized the connection reference and you have to make a new connection reference in the target environment. I have created connections in both environments that have the same name and use the same SPN or username.
Would appreciate understanding what i am missing and what the road map for this looks like.

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

ID: c8f2fd7c-a516-b3b7-c939-cba62d7836dc
Version Independent ID: e681d318-9124-05ee-9438-29cfd3c4e732
Content: Connection references in solutions - Power Apps
Content Source: powerapps-docs/maker/data-platform/create-connection-reference.md
Service: powerapps
GitHub Login: @caburk
Microsoft Alias: caburk

Continued testing seems to show this is due to connection reference owner. When using automated tools the owner is changed to the deployment user.

@craig-lund - the article has been updated as well as the feature since you posted this issue, which should help resolve your problem.
Closing issue.


Unprivate private channels

I would like to see the option to make private channels open to everyone like a normal channel.
This way if a certain project is rounded up and everyone can have acces I don't need to add everyone.

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

ID: ce34b12b-aa50-608b-bbfa-a1fb4bb79f8d
Version Independent ID: 9ddeb6f4-f30a-1e72-fc94-ae66def91f40
Content: Private channels in Microsoft Teams - Microsoft Teams
Content Source: Teams/private-channels.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@bmannetje Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

Hi @bmannetje, thank you for your feedback.
Considering the nature of the issue, it is advised that please this feature request here:
https://microsoftteams.uservoice.com/

@bmannetje Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


How to set boot order to specific drive

Hello,
I have a Pop! OS disk image and I need to set the boot order to D:. Is it possible to do that? Thanks!

(Oh, and by the way, I mean using the libv86 API)

(Oh, and by the way, I mean using the libv86 API)

Not sure. Do you know how to set up networking and mount a directory using showDirectoryPicker?

Nope

Nope

Ugh. :(

You can pass boot_order to V86, which in turn is passed to seabios. Unfortunately it doesn't look like seabios allows specifying a second hard drive though: https://github.com/coreboot/seabios/blob/a5cab58e9a3fb6e168aba919c5669bea406573b4/src/boot.c#L271-L285

You can pass boot_order to V86, which in turn is passed to seabios. Unfortunately it doesn't look like seabios allows specifying a second hard drive though: https://github.com/coreboot/seabios/blob/a5cab58e9a3fb6e168aba919c5669bea406573b4/src/boot.c#L271-L285

How would I mount a directory using showDirectoryPicker() and enable networking?


Funding the Commons Bangkok talk prep

What is it?
Evolving retrofunding with continuous experimentation
Existing retrofunding programs have distributed millions of dollars to date, usually in the form of large but infrequent distribution rounds. This poses 2 problems: (1) From the perspective of the recipient projects, it makes budgeting and planning difficult, without fine-grained feedback on their impact. (2) From the perspective of the funder organization, it reduces the iteration cycle for experimentation. If we think of retrofunding as an impact optimization experiment, we propose a new system where discrete rounds are replaced with continuous funding flows that are dynamically re-adjusted by data/AI-augmented governance processes. By drastically shortening the feedback loop, we aim to quickly iterate towards funding allocations that maximize positive changes in impact outcomes per unit dollar invested into the ecosystem.

Gonna scope in a quick refresh of the OSO talk as well for the OSS Hub

https://docs.google.com/presentation/d/1fbcZB1IK2JKhOi5JVZzavC-EyOzxTxlQ07GmjYSwu9o/edit?usp=drive_link
https://docs.google.com/presentation/d/1CbuOoQZF1Rxq7iivyhzkSx6qCUiF661z0VXTn7KbUnk/edit?usp=drive_link


nit: documentation fix

Signed-off-by: Priyanshu Raj<EMAIL_ADDRESS>Summary
Small nit fix in the documentation.
Checklist

The basics

[x] I tested these changes manually in my local or dev environment

Tests

[ ] Added or updated
[x] N/A

Event Tracking

[ ] I added event tracking and followed the event tracking guidelines
[x] N/A

Error Reporting

[ ] I reported errors and followed the error reporting guidelines
[x] N/A

@rpriyanshu9 , thank you for the contribution!


As an NUS student/staff, I can add more information to tasks

As an NUS staff/student, I can set priorities for each of the tasks.

As an NUS staff/student, I can mark my tasks as done or undone.

As an NUS staff/student, I can add optional details to my tasks - descriptions, locations, comments

Completed in PR #72, #68, #70, #78


access controls should be hidden when inaccessible

Describe the bug
If the user does not have permission to get/list service accounts, roles, and/or role bindings, these buttons are still showing up under "Access Control". If you click on them, it says "Failed to load items."
To Reproduce
Steps to reproduce the behavior:

Set up a user with limited permissions with no access to service accounts, roles, or role bindings.
Authenticate as that user and open up the cluster in Lens.
Open up "Access Controls" on the lefthand side and click on "Service Accounts", "Role Bindings", or "Roles".

Expected behavior
These buttons should be hidden if the user doesn't have permission, just like other resources are hidden. If nothing under "Access Controls" is accessible then the whole thing should be hidden.
Screenshots

Environment (please complete the following information):

Lens Version: 4.2.2
OS: macos 10.15.7
Installation method (e.g. snap or AppImage in Linux): n/a

Fixed by #2258


Error when use 2 WORKER_INSTANCES

16/12/05 15:23:24 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 16
16/12/05 15:23:24 INFO executor.Executor: Running task 0.0 in stage 9.0 (TID 16)
16/12/05 15:23:24 INFO spark.MapOutputTrackerWorker: Updating epoch to 2 and clearing cache
16/12/05 15:23:24 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 10
16/12/05 15:23:24 INFO memory.MemoryStore: Block broadcast_10_piece0 stored as bytes in memory (estimated size 3.1 KB, free 366.3 MB)
16/12/05 15:23:24 INFO broadcast.TorrentBroadcast: Reading broadcast variable 10 took 33 ms
16/12/05 15:23:24 INFO memory.MemoryStore: Block broadcast_10 stored as values in memory (estimated size 5.1 KB, free 366.3 MB)
16/12/05 15:23:24 INFO spark.MapOutputTrackerWorker: Don't have map outputs for shuffle 0, fetching them
16/12/05 15:23:24 INFO spark.MapOutputTrackerWorker: Doing the fetch; tracker endpoint = NettyRpcEndpointRef(spark://MapOutputTracker@<IP_ADDRESS>:54772)
16/12/05 15:23:24 INFO spark.MapOutputTrackerWorker: Got the output locations
16/12/05 15:23:24 INFO storage.ShuffleBlockFetcherIterator: Getting 1 non-empty blocks out of 2 blocks
16/12/05 15:23:24 INFO storage.ShuffleBlockFetcherIterator: Started 0 remote fetches in 3 ms
F1205 15:23:24.250123 13841 socket.cpp:48] Check failed: nsent >= 0 ERROR: Sending message header!
*** Check failure stack trace: ***

spark-submit --master ${MASTER_URL}
--num-executors ${SPARK_WORKER_INSTANCES}
--conf  spark.task.cpus=${CORES_PER_WORKER}
--conf  spark.cores.max=${TOTAL_CORES}
--files /mnt/data/chris.wang/CaffeOnSpark/data/lenet_memory_solver.prototxt,/mnt/data/chris.wang/CaffeOnSpark/data/lenet_memory_train_test.prototxt
--conf  spark.driver.extraLibraryPath="${LD_LIBRARY_PATH}"
--conf  spark.executorEnv.LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
--class com.yahoo.ml.caffe.CaffeOnSpark
${CAFFE_ON_SPARK}/caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar
-train
-features accuracy,loss -label label
-conf  ${CAFFE_ON_SPARK}/data/lenet_memory_solver.prototxt
-clusterSize ${SPARK_WORKER_INSTANCES}
-devices 1
-connection ethernet
-model hdfs://<IP_ADDRESS>:8999/mnist_lenet.model
-output hdfs://<IP_ADDRESS>:8999/lenet_features_result


Allow overriding of visitor share on a per experiment basis

At the moment every alternative is given an equal share of the users, if there are two alternatives then each should receive 50% of users, if there are 3 then 33.3% each etc
If you are introducing a new feature and want to test that it improves conversion, but you are unsure of the effects, maybe you only want 10% of the traffic to use that alternative whilst the other 90% go through the control, you should be able to specify the share when defining the test.

Merged in here: 791efe096510b32842f6702b73e519df3e3f9f9c
Released with version 0.3.0: https://rubygems.org/gems/split/versions/0.3.0


Supporting mutable classes for dealing with MS Office schemata

In this issue I log my activities and the encountered problems when adding support for mutable classes, and trying this out on the XML schemata for Microsoft Office.

The MS Office schemata came from the ECMA-376, Fourth Edition. More precise they are in ECMA-376, Fourth Edition, Part 4 - Transitional Migration Features.
xsd file overview
In that zip there is another zip named OfficeOpenXML-XMLSchema-Transitional.zip, with the following xsd files:
dml-chart.xsd                dml-wordprocessingDrawing.xsd          shared-documentPropertiesCustom.xsd         vml-main.xsd
dml-chartDrawing.xsd         pml.xsd                                shared-documentPropertiesExtended.xsd       vml-officeDrawing.xsd
dml-diagram.xsd              shared-additionalCharacteristics.xsd   shared-documentPropertiesVariantTypes.xsd   vml-presentationDrawing.xsd
dml-lockedCanvas.xsd         shared-bibliography.xsd                shared-math.xsd                             vml-spreadsheetDrawing.xsd
dml-main.xsd                 shared-commonSimpleTypes.xsd           shared-relationshipReference.xsd            vml-wordprocessingDrawing.xsd
dml-picture.xsd              shared-customXmlDataProperties.xsd                                                 wml.xsd
dml-spreadsheetDrawing.xsd   shared-customXmlSchemaProperties.xsd   sml.xsd

Problems
The were problems in the XSD files, at least in the context of generating scalaxb files:
entity types with the same names in different files
same names for entities and attributes
sml.xsd: CT_ChartFormat
  <xsd:complexType name="CT_ChartFormat">
    <xsd:sequence>
      <xsd:element name="pivotArea" type="CT_PivotArea"/>
    </xsd:sequence>
    <xsd:attribute name="chart" use="required" type="xsd:unsignedInt"/>
    <xsd:attribute name="format" use="required" type="xsd:unsignedInt"/>
    <xsd:attribute name="series" type="xsd:boolean" default="false"/>
  </xsd:complexType>

resulted in the following code in xmlprotocol.scala:
  trait DefaultCT_ChartFormatFormat extends scalaxb.ElemNameParser[CT_ChartFormat] {
    val targetNamespace: Option[String] = Some("http://schemas.openxmlformats.org/spreadsheetml/2006/main")

    override def typeName: Option[String] = Some("CT_ChartFormat")

    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[CT_ChartFormat] =
      phrase((scalaxb.ElemName(Some("http://schemas.openxmlformats.org/spreadsheetml/2006/main"), "pivotArea")) ^^
      { case p1 =>
           CT_ChartFormat(scalaxb.fromXML[CT_PivotArea](p1, scalaxb.ElemName(node) :: stack),
        scala.collection.immutable.ListMap(List(
        (node \ "@chart").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[Long](x, scalaxb.ElemName(node) :: stack)) } map { "@chart" -> _ },
        (node \ "@format").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[Long](x, scalaxb.ElemName(node) :: stack)) } map { "@format" -> _ },
        (node \ "@series").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[Boolean](x, scalaxb.ElemName(node) :: stack)) } orElse Some(scalaxb.DataRecord(None, None, scalaxb.fromXML[Boolean](scala.xml.Text("false"), scalaxb.ElemName(node) :: stack))) map { "@series" -> _ }
        ).flatten[(String, scalaxb.DataRecord[Any])]: _*))
      })

resulting in this compile error:
xmlprotocol.scala:6392: error: scalaxb.XMLFormat[CT_Chart] does not take parameters
      CT_ChartFormat(scalaxb.fromXML[CT_PivotArea](p1, scalaxb.ElemName(node) :: stack),
                    ^

CT_PictureFormat
  <xsd:complexType name="CT_PictureFormat">
    <xsd:attribute name="val" type="ST_PictureFormat" use="required"/>
  </xsd:complexType>

resulted in the following code in xmlprotocol.scala:
  trait DefaultCT_PictureFormatFormat extends scalaxb.XMLFormat[CT_PictureFormat] with scalaxb.CanWriteChildNodes[CT_PictureFormat] {
    val targetNamespace: Option[String] = Some("http://schemas.openxmlformats.org/drawingml/2006/chart")
    import scalaxb.ElemName._

    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, CT_PictureFormat] = seq match {
      case node: scala.xml.Node =>
        Right(CT_PictureFormat(scala.collection.immutable.ListMap(List(
        (node \ "@val").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[ST_PictureFormat](x, scalaxb.ElemName(node) :: stack)) } map { "@val" -> _ }
        ).flatten[(String, scalaxb.DataRecord[Any])]: _*)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }

resulting in this compile error:
xmlprotocol.scala:45285: error: scalaxb.XMLFormat[CT_Picture] does not take parameters
      case node: scala.xml.Node => Right(CT_PictureFormat(scala.collection.immutable.ListMap(List(
                                                         ^

Solutions

Hundreds of compile errors on generated scalaxb code were of this type:
 shared-documentPropertiesVariantTypes.scala:117: error: type mismatch;
 found   : Nil.type
 required: Seq[scalaxb.DataRecord[Any]]
 case class CT_Array(var ct_arrayoption: Seq[scalaxb.DataRecord[Any]] = Nil,

As a workaround List() is now generated instead of Nil.

When compiling the generated scalaxb classes, the following exception came up after about 6 minutes:
error: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at scala.tools.nsc.typechecker.Typers$Typer.<init>(Typers.scala:116)
	at scala.tools.nsc.typechecker.Typers$NormalTyper.<init>(Typers.scala:98)
	at scala.tools.nsc.typechecker.Typers$class.newTyper(Typers.scala:96)
	at scala.tools.nsc.Global$$anon$1.newTyper(Global.scala:459)

See this issue on StackOverflow
I gave scalac 4 Gb heap space, and allowed for more garbage collection time:
time scalac -J-XX:-UseGCOverheadLimit -J-mx4g *.scala

I have now compiled the scala files generated from the MS Office XSD,
and stored the result in a .jar file, which is about 60 Mb.
The modified scalaxb does not yet generate setter methods for attributes.

Can you please make a github repo with the correctly edited XSD files?

I have an appointment this afternoon; I will probably have no time.
The diffs in issue#2 should show what I changed.
However, looking back, I did not need to touch the attributes, so I changed more than needed.
The important things are some renamings: appending “_1”. I did that in parts that are not used by PowerPoint, I hope.
Besides, it might be better to have scalaxb create different packages so that no name clashes would occur,
and no changes would be needed.
But I am not sure how to do that.

On 02 Jul 2016, at 11:37, Anatolii Kmetiuk<EMAIL_ADDRESS>wrote:
Can you please make a github repo with the correctly edited XSD files?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/AndreVanDelft/scalaxb/issues/2#issuecomment-230093145, or mute the thread https://github.com/notifications/unsubscribe/AC_20_g-nN4Iu8pfdoxABovvN2Vq55-jks5qRjFHgaJpZM4JCLcb.

I have added a script to generate the sources in packages based on their schema's namespace. After ./deploy.sh, scripts from routines directory will end up in the install directory.
cd install/
./run.sh msoffice/ src

This will generate the sources in the src directory, given that msoffice contains the schema files. However, there is still a tone of errors. It would be very helpful if you could upload a zip with your modified, compiling schema files so that I can see what exactly is wrong with them.

Hundreds of compile errors on generated scalaxb code were of this type:
shared-documentPropertiesVariantTypes.scala:117: error: type mismatch;
found   : Nil.type
required: Seq[scalaxb.DataRecord[Any]]
case class CT_Array(var ct_arrayoption: Seq[scalaxb.DataRecord[Any]] = Nil,
As a workaround List() is now generated instead of Nil.

It seems that Nil is still generated instead of List(), I got some of those.

P.S.: You'll need gawk to run the run.sh, btw: brew install gawk.

P.P.S.: compile the generated sources as follows:
cd src/
find . -type f -name *.scala -print0 | xargs -0 scalac -J-XX:-UseGCOverheadLimit -J-mx4g

Op 3 jul. 2016, om 16:15 heeft Anatolii Kmetiuk<EMAIL_ADDRESS>het volgende geschreven:
I have added a script to generate the sources in packages based on their schema's namespace. After ./deploy.sh, scripts from routines directory will end up in the install directory.
cd install/
./run.sh msoffice/ src
This will generate the sources in the src directory, given that msoffice contains the schema files. However, there is still a tone of errors. It would be very helpful if you could upload a zip with your modified, compiling schema files so that I can see what exactly is wrong with them.
Hundreds of compile errors on generated scalaxb code were of this type:
shared-documentPropertiesVariantTypes.scala:117: error: type mismatch;
found : Nil.type
required: Seq[scalaxb.DataRecord[Any]]
case class CT_Array(var ct_arrayoption: Seq[scalaxb.DataRecord[Any]] = Nil,
As a workaround List() is now generated instead of Nil.
It seems that Nil is still generated instead of List(), I got some of those.

Very very strange. Could you give me those?
And why would List() solve the problem anyway?
In the Scala REPL Nil seems to work, so I am puzzled.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/AndreVanDelft/scalaxb/issues/2#issuecomment-230155530, or mute the thread https://github.com/notifications/unsubscribe/AC_208Ac0XO_oAxX9WAeEQkS4G2N8C0yks5qR8QTgaJpZM4JCLcb.

My script doesn't seem to work yet. It generates the packages, but it also generates some new classes that fail to compile with errors. I have no idea why, strange indeed.
I don't have these Nil errors, I stumbled on them accidentaly and now the errors are different.
I'll try to make it work a bit later.

By the way, the modified schemas you sent me seem to compile, but only with the -mutable flag. Without it, there were errors.

I have removed the shell scripts for the package generations and added the same functionality to the program as a flag. Now you can run the following command:
./scalaxb --autopackages --package-dir -v -d src msoffice/*

--autopackages will generate the packages from the schema. The generation procedure is here.

What goes wrong with MS schema bindings generation
I'm using the following development sequence. From the root of the project, provided that original (not modified) schema files are under install/msoffice:
# Deploy the app to install/
./deploy.sh

# Generate the sources to install/src/
cd install/
./scalaxb --autopackages --package-dir -v -d src --attribute-prefix attr_ msoffice/*

# Compile the sources
cd src/
find . -type f -name '*.scala' -print0 | xargs -0 scalac -J-XX:-UseGCOverheadLimit -J-mx4g

The following problems are encountered when doing so.
Name clashes in xmlprotocol.scala
Problem
A lot of errors of this kind:
./http/schemas/openxmlformats/org/drawingml/n2006/chart/xmlprotocol.scala:57636: error: DefaultMainCT_CommentsFormat is already defined as trait DefaultMainCT_CommentsFormat
  trait DefaultMainCT_CommentsFormat extends scalaxb.ElemNameParser[http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_Comments] {
        ^
./http/schemas/openxmlformats/org/drawingml/n2006/chart/xmlprotocol.scala:57703: error: DefaultMainCT_SmartTagTypeFormat is already defined as trait DefaultMainCT_SmartTagTypeFormat
  trait DefaultMainCT_SmartTagTypeFormat extends scalaxb.XMLFormat[http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_SmartTagType] with scalaxb.CanWriteChildNodes[http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_SmartTagType] {
        ^
89 errors found

Possible cause
xmlprotocol.scala seems to do some sort of a registry for an entire schema been processed. It's sole point seems to be to provide implicit fields of this kind:
  implicit lazy val ChartCT_BooleanFormat: scalaxb.XMLFormat[http.schemas.openxmlformats.org.drawingml.n2006.chart.CT_Boolean] = new DefaultChartCT_BooleanFormat {}

Which, if imported, will provide implicit scalaxb.XMLFormat in scope. After the implicit fields, there is a ton of traits that extends scalaxb.XMLFormat and traits that extends scalaxb.ElemNameParser which apparently provide the implementations for the implicit fields.
The errors are because there are collisions in this file of the kind:
  trait DefaultMainCT_SmartTagTypeFormat extends scalaxb.XMLFormat[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_SmartTagType] with scalaxb.CanWriteChildNodes[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_SmartTagType] {

  trait DefaultMainCT_SmartTagTypeFormat extends scalaxb.XMLFormat[http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_SmartTagType] with scalaxb.CanWriteChildNodes[http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_SmartTagType] {

Now, if you look at them closely, you'll see that the type parameters of XMLFormat and CanWriteChildNodes refer to the classes in different packages: "http.schemas.openxmlformats.org.spreadsheetml.n2006.main" and "http.schemas.openxmlformats.org.wordprocessingml.n2006.main.CT_SmartTagType".
The error doesn't seem to arise when generating without the packages.
This prompts a thought that in case of package-less generation, the name clashes are handled across the entire code base, while in case of packages been generated the name clashes are handled only on the package level. xmlprotocol appears to assume that the name clashes have been handled before it, and generates its own names from the names as specified in the packages, which appear to clash.
Another minor issue: xmlprotocol.scala is generated under http.schemas.openxmlformats.org.drawingml.n2006.chart package, which is apparently wrong. This is a global file without a correspondent XML schema file, so it should be generated in some global package.
Hack
Delete xmlprotocol.scala for immediate compilation of all the other code.
Solution
xmlprotocol.scala seems to be solely for providing implicit values in scope. Implicit values are not ordinarily referred to from the code base by name, they are just imported in scope.
If this is true, we can make sure the generated classes and values have unique names in xmlprotocol.scala. For example, on their generation time, we can append a number to each generated entity, incrementing that number after each entity.
Name clashes with predefined Scala values
Problem
A lot of errors of this kind:
./http/schemas/openxmlformats/org/spreadsheetml/n2006/main/sml.scala:3756: error: type mismatch;
 found   : http.schemas.openxmlformats.org.spreadsheetml.n2006.main.Nil.type
 required: Seq[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_Cfvo]
case class CT_DataBar(cfvo: Seq[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_Cfvo] = Nil,
                                                                                ^
./http/schemas/openxmlformats/org/spreadsheetml/n2006/main/sml.scala:3767: error: type mismatch;
 found   : http.schemas.openxmlformats.org.spreadsheetml.n2006.main.Nil.type
 required: Seq[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_Cfvo]
case class CT_IconSet(cfvo: Seq[http.schemas.openxmlformats.org.spreadsheetml.n2006.main.CT_Cfvo] = Nil,
                                                                                ^
197 errors found

Cause
In sml.scala and wml.scala, the code of the following kind is generated:
case object Nil extends ST_DdeValueType { override def toString = "nil" }

In the majority of cases in these files Nil is used in the sense of a collection, not that new case object, but it is resolved to this case object.
Why this happens? In sml.scala, on line 3904, we have:
  <xsd:simpleType name="ST_DdeValueType">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="nil"/>
      <xsd:enumeration value="b"/>
      <xsd:enumeration value="n"/>
      <xsd:enumeration value="e"/>
      <xsd:enumeration value="str"/>
    </xsd:restriction>
  </xsd:simpleType>

The part <xsd:enumeration value="nil"/> is apparently the source of the problem. Seems that scalaxb doesn't check for name clashes with native Scala types before generating its classes.
Hack
In the files where the conflict happens, find that case object Nil and rename it to something else, like case object NilValue10. It is used only once in the files: several lines above the class definition, find case "nil" => Nil and replace it with case "nil" => NilValue10.
Solution
One of the following:

Validate the class names before they are generated. If there's a clash with some native type, rename the generated class.
Have every class name generated as a fully qualified path: not Nil, but _root_.scala.Nil
Since that Nil is needed only at object ST_TblWidth, simply generate it and all the other bindings for possible restrictions specified in the schema under the generated object file

Note: Attribute name clashes
Some attributes also get clashed with some other parameters in the schema. This is solved by: --attribute-prefix attr_.
Conclusion
After solving these two problems are solved, the compilation goes for several minutes without any errors, seems that there will be none.

Everything compiles successfully with the following slightly modified procedure:
# Deploy the app to install/
./deploy.sh

# Generate the sources to install/src/
cd install/
./scalaxb --autopackages --package-dir -v -d src --attribute-prefix attr_ --protocol-package msoffice.protocol msoffice/*

# Compile the sources
cd src/
find . -type f -name '*.scala' -print0 | xargs -0 scalac -J-XX:-UseGCOverheadLimit -J-mx4g

The only changed part in this procedure is  --protocol-package msoffice.protocol for scalaxb. It specifies to deploy xmlprotocol.scala to a dedicated package, rather than to a random one, unrelated to its nature.
I have not tested the runtime behaviour of the generated classes.

New instructions for MSOffice sources generation:

Generate the app. From the root of ScalaXB project, run sbt app/assembly. This will generate ./scalaxb-1.4.1, which is an app executable.
Generate the sources for msoffice: time (./scalaxb-1.4.1 --autopackages --package-dir --mutable -v -d src --attribute-prefix attr_ --protocol-package msoffice.protocol --no-varargs msoffice/*)
Compile the sources: time (find src/ -type f -name '*.scala' -print0 | xargs -0 scalac -J-XX:-UseGCOverheadLimit -J-mx4g -d msbindings.jar)


Fix Unable to change to /home/container

"Unable to change to /home/container. Something went real wrong." was shown even if cd /home/container succeeded.

Thanks for catching that! That was a silly mistake on my end as this ends up being an if-else one liner.
I prefer to group commands instead of executing them in a subshell. After further review, I don't even see why to echo anything - failure to cd into the bind mount would fail to start the container anyways.
I've removed the echo completely in https://github.com/Software-Noob/pterodactyl-images/commit/45f9944c5958b4e622843e9e3ec90a8659c37f82


git rm json/rosetta-stone.json

Build output should not be in RCS.
Prevent issues like mikemaccana/rosetta-stone#2 appearing to
add and remove windows commands.

Good catch


Error with gulp command

Hi guys!
I would like run Curvytron, but when a run gulp command I have this error src/server/core/Server.js: line 22, col 26, Expected an identifier and instead saw 'static' (a reserved word).
gulp
[12:11:55] Using gulpfile /curvytron/gulpfile.js
[12:11:55] Starting 'jshint'...
[12:11:55] Starting 'server'...
[12:11:55] Starting 'front-expose'...
[12:11:55] Starting 'ga'...
[12:11:55] Starting 'views'...
[12:11:55] Starting 'front-min'...
[12:11:55] Starting 'sass-min'...
[12:11:55] Finished 'front-expose' after 49 ms
[12:11:55] Finished 'ga' after 413 ms
[12:11:56] Finished 'sass-min' after 784 ms
[12:11:56] Finished 'views' after 1.01 s
src/server/core/Server.js: line 22, col 26, Expected an identifier and instead saw 'static' (a reserved word).

1 error
[12:11:59] Finished 'front-min' after 3.68 s
[12:11:59] Finished 'server' after 3.77 s
[12:11:59] Finished 'jshint' after 3.97 s
[12:11:59] Starting 'default'...
[12:11:59] Finished 'default' after 22 μs

I am on master branch.
If I remplace the line 21 by this.app.use(express['static']('web')); it works fine!
Do you want a PR?

We love PR ! <3 Thanks

Thanks! :+1:


Tesseract not installed on ubuntu

Sys specs:
# anand at anand in ~/projects/python/ocr [19:47:47]
$ uname -a
Linux anand 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

# anand at anand in ~/projects/python/ocr [19:48:19]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty

I have installed tesseract using apt-get install terreract-ocr.
To make sure everything is installed, I have run this command and it is throwing error.
# anand at anand in ~/projects/python/ocr [19:48:24]
$ tesseract -v
tesseract: symbol lookup error: /usr/lib/x86_64-linux-gnu/libtesseract.so.3: undefined symbol: l_generateCIDataForPdf

I believe it works fine on Ubuntu 15.10. apt-get install tesseract-ocr
tesseract 3.04.00
 leptonica-1.72
  libgif 4.1.6(?) : libjpeg 8d (libjpeg-turbo 1.3.0) : libpng 1.2.51 : libtiff 4.0.3 : zlib 1.2.8 : libwebp 0.4.3 : libopenjp2 2.1.0

@cothan Thanks.
I couldn't install from package on 14.04.
However i have installed from source and now its working.

I did not want to build from source, and for me, the sudo apt install libtesseract-dev helped.

@Himura2la I did the same, and it works too


Interface & Advanced Interface

also tried to regen TOC via script

Coverage increased (+1.7%) to 88.571% when pulling c553fee122ea56ed93f6b96ab57666b8660d46a2 on gurgeous:patch-4 into 1639b25cbe3f74097de04e151c446aa0493560a7 on piotrmurach:master.

Very nice, I like how things are coming together.


Change ServiceBinding API group to binding.operators.coreos.com

From now on odo link will work only with  ServiceBindingOperator v0.5.0 and up
What type of PR is this?
/kind bug
/kind failing-test
What does does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes https://github.com/openshift/odo/issues/4480
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[ ] Documentation

[ ] I have read the test guidelines

How to test changes / Special notes to the reviewer:

This won't fix the problem we have at hands. With 0.5.0, the secret name for SBR created using SBO has changed.
0.4.0
SBR name: node-todo-etcdcluster-example
Secret name: node-todo-etcdcluster-example
0.5.0
SBR name: node-todo-etcdcluster-example
Secret name: node-todo-etcdcluster-example-f8dd759def54719174cc76cfc6ce76b3428e207e
I'm trying to figure things out and discussing this with SBO team as well.

OK, it's embarrassing but I was wrong in earlier comment. My comment was based on the example on odo.dev not working as expected.
What I was seeing was that in spite of doing odo link, the node-todo application had that "loading" animation which indicated that it was still not connected to the etcd cluster service we started from etcd Operator.
This problem was fixed with this change https://github.com/dharmit/node-todo/commit/aa9ebb24f658e93655c90eb37d22b28f463a70f2.
@kadel https://github.com/openshift/odo/pull/4484/ should fix things.

this one should be closed in favor of https://github.com/openshift/odo/pull/4484/files

Then let’s close it?


Implement Swift macros

Swift 5.9 adds support for macros. This could allow for less boilerplate and more legibility when making types conform to VersionedCodable, for instance:
struct Poem: Codable {
    var author: String
    var poem: [String]
}

extension Poem: VersionedCodable {
    static let version: Int? = 1
    typealias PreviousVersion = OldPoem

    init(from oldVersion: OldPoem) {
        self.author = oldVersion.author
        self.poem = oldVersion.poem.split(separator: "\n")
    }
}

might become:
@versioned(version: 1, previously: OldPoem.self)
struct Poem: Codable {
    var author: String
    var poem: [String]

    init(from oldVersion: OldPoem) {
        self.author = oldVersion.author
        self.poem = oldVersion.poem.split(separator: "\n")
    }
}

Support for conformance in the conventional way should be maintained.

Currently suggested new syntax (may change as I fiddle around with it:
@versionedCodable(v: 2, previously: PoemV1.self)
struct Poem {
}

Increasingly believing that this should actually be in a sister package and not part of VersionedCodable itself. There are cases where macros might not be appropriate.
In any case, you need to tell the compiler to trust a macro whenever you build using one - since ultimately it is a plugin for the compiler. This might be unnecessarily onerous for most use cases.


STOR-1017: Rebase to v1.4.8

Second part of https://issues.redhat.com/browse/STOR-1017: Rebasing the EFS CSI driver to the latest upstream version.
Upstream diff: https://github.com/kubernetes-sigs/aws-efs-csi-driver/compare/v1.4.8...tsmetana:rebase-1.4.8

/lgtm
/approve

/label docs-approved
/label px-approved
We historically did not announce CSI driver version in docs.

For QE: changelong since OCP 4.12 (CSI driver ver 1.4.2): https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/CHANGELOG-1.x.md#v148
No new features, just fixes.

/label qe-approved
With @chao007's approval, this cannot be (easily) tested before merge.


Update the graphql-client guide landing page

with the following description:
GraphQL is an open source data query language. Unlike REST APIs, each POST request sent to a GraphQL service goes to a single HTTP endpoint. To learn more about GraphQL, see the Optimizing REST queries for microservices with GraphQL guide.
You'll learn how to use the SmallRye GraphQL client’s typesafe interface to query and mutate data from multiple microservices.

Staging update - verify here

Prod update -verify here


Split apart handshaking examples

[ ] With request handshaking without response handshaking
[ ] Without Request handshaking with response handshaking
[ ] With request handshaking with response handshaking

CFU-L2 now uses both request and response handshaking. See also https://github.com/grayresearch/CFU/commit/6f25d4f8a7cebb1af3777b5977026e9207f842a7 and https://github.com/grayresearch/CFU/issues/9.


Package request: HEMTT

HEMTT
A build system for Arma 3 mods. Works entirely via CLI. Written in Rust. Uses cargo to build.
Metadata

homepage URL: https://brettmayson.github.io/HEMTT/
source URL: https://github.com/BrettMayson/HEMTT
license: gpl2
platforms: linux

Add a :+1: reaction to issues you find important.

For anyone attempting this next:
there is a cargo dependency, which tries to fetch itself from the internet
https://github.com/acemod/arma3-wiki/blob/f59f5f2d7b0872feb01987ab777ae543b90af5c9/clients/rust/build.rs
I don't know how to go about patching a cargo dependency, so I'm giving up on this.


feat: add metrics for the new storage

Checklist

[x] I have read the coding guide.
[ ] My change requires a documentation update, and I have done it.
[ ] I have added tests to cover my changes.
[x] I have filled out the description and linked the related issues.

Description
Add metrics for the new storage.
Closes #3749

I think these are nice to have, but not sure how useful they will be in debugging issues. They would help to find issues on the storage level I think. The problem is we could potentially have multiple indexstore and chunkstore calls as a single operation and so these metrics might not give the whole picture. So, we should have metrics on storer side when we create the sessions/putters etc. This way we can get metrics of how much time it takes to put to storage from the API side etc. We could have these as separate metrics in storer package.
I feel we can still have these metrics and put them behind some config flag from options. If the flag is set we construct the TxStores using the metrics wrapper. WDYT?

Yes, there will be an additional set of metrics for each component in the new local store package (when completed). These metrics focus on the performance/monitoring of the storage abstraction, this can be useful when we decide to change the underlying storage. I don't see any advantage in having them behind a flag, so they can be enabled/disabled. Perhaps you could elaborate on this?


About the ITQ?

Hi, could you please tell me the ITQ's full name? I'm not good at math, I searched it in the Internet, but there were nothing. I saw only LASSO in your paper, but SVD, "ITQ" and LASSO in your code, which one makes more contribution? Hope to get your reply, thanks!

Might be disappointing, ITQ is a nickname I used. It's channel decomposition (Zhang etal) mentioned in paper.

3 algorithms' contribution is not discussed, which is not our focus. Grossly, VH and channel decomposition contribute 3x, and channel pruning contribute 4/3x