Use BLOB type for serializing params for UDF function

Is there a way to always use blob serialization when calling an UDF function ?

Yes, you can create pack bytes into a PHP string, pass that as the argument to the record UDF, cast it to bytes(), then inspect bytes as meaningful params. You'll use API methods in Aerospike's bytes Lua module.
Assume you have registered the following UDF module as example_bytes_udf:
function inspect_bytes_input(rec, input)
    local bytes_input = bytes(32)
    bytes.append_string(bytes_input, input)
    local ret = map()
    ret['size'] = bytes.size(bytes_input)
    ret['type'] = bytes.get_type(bytes_input)
    ret['byte1'] = bytes.get_byte(bytes_input, 1)
    ret['byte2'] = bytes.get_byte(bytes_input, 2)
    ret['byte3'] = bytes.get_byte(bytes_input, 3)
    ret['byte4'] = bytes.get_byte(bytes_input, 4)
    return ret
end

I can call this from PHP as follows:
$db->apply($key, "example_bytes_udf", "inspect_bytes_input", array("moo\7x\7"), $ret_val);
var_dump($ret_val);

And I get the following:
array(6) {
  ["size"]=>
  int(6)
  ["byte1"]=>
  int(109)
  ["byte2"]=>
  int(111)
  ["byte3"]=>
  int(111)
  ["byte4"]=>
  int(7)
  ["type"]=>
  int(4)
}

Which means it sees 6 chars in the input (two of them are the \7 bell character), inspecting individual bytes shows the expected values in each position, and the input is an as_bytes of type 'generic'.
I hope that helps.

Mmh, my question were not very good.
So.
I'm using aerospike as redis drop in. Goal : no modification in client code.
For that, I'have written this small wrapper
https://github.com/bpaquet/aerospike_redis_php
The only problem I have is for storing gzcompress string into aerospike.
With redis, I can do $r->set('toto', gzcompress(big_json));
With aerospike too, bit the string is truncated at first NULL.
I have read the 'known problem' of the readme, but custom serializer code
seems to not be used with UDF.
I have try to unpack('C*') the string to force the drive to use bytes
array, but it perform very slowly, and I get  some memory overflow.
The only workaround I have is to base64 encode the gzcompress string :(
Any better idea ?
On Tue, Apr 14, 2015 at 3:45 AM, Ronen Botzer<EMAIL_ADDRESS>wrote:

Yes, you can create pack bytes into a PHP string, pass that as the
argument to the record UDF, cast it to bytes(), then inspect bytes as
meaningful params. You'll use API methods in Aerospike's bytes Lua module
http://www.aerospike.com/docs/udf/api/bytes.html.
Assume you have registered the following UDF module as example_bytes_udf:
function inspect_bytes_input(rec, input)
local bytes_input = bytes(32)
bytes.append_string(bytes_input, input)
local ret = map()
ret['size'] = bytes.size(bytes_input)
ret['type'] = bytes.get_type(bytes_input)
ret['byte1'] = bytes.get_byte(bytes_input, 1)
ret['byte2'] = bytes.get_byte(bytes_input, 2)
ret['byte3'] = bytes.get_byte(bytes_input, 3)
ret['byte4'] = bytes.get_byte(bytes_input, 4)
return retend
I can call this from PHP as follows:
$db->apply($key, "example_bytes_udf", "inspect_bytes_input", array("moo\7x\7"), $ret_val);var_dump($ret_val);
And I get the following:
array(6) {
["size"]=>
int(6)
["byte1"]=>
int(109)
["byte2"]=>
int(111)
["byte3"]=>
int(111)
["byte4"]=>
int(7)
["type"]=>
int(4)
}
Which means it sees 6 chars in the input (two of them are the \7 bell
character), inspecting individual bytes shows the expected values in each
position, and the input is an as_bytes of type 'generic'.
I hope that helps.
—
Reply to this email directly or view it on GitHub
https://github.com/aerospike/aerospike-client-php/issues/40#issuecomment-92555868
.

The solution would be for us to ensure UDF behaves in a similar way to the write operations. With the bit of Redis you've mentioned you're doing custom serialization anyway. Once UDFs behave as the put() would with a custom session handler, you have more or less drop-in code.
However, I'm not sure why you'd want to pass serialized PHP to a record-UDF (apply() ). In your example you're just writing to a record. That's what put() and operate() are for in Aerospike. What kind of work on the serialized PHP would you need to do?

On Tue, Apr 14, 2015 at 9:43 AM, Ronen Botzer<EMAIL_ADDRESS>wrote:

The solution would be for us to ensure UDF behaves in a similar way to the
write operations. With the bit of Redis you've mentioned you're doing
custom serialization anyway. Once UDFs behave as the put() would with a
custom session handler, you have more or less drop-in code.
However, I'm not sure why you'd want to pass serialized PHP to a
record-UDF (apply() ). In your example you're just writing to a record.
That's what put() and operate() are for in Aerospike. What kind of work on
the serialized PHP would you need to do?

No, I do not want pass serialized PHP. I want to pass binaray string
$redis-set(gzcompress(json_encode(big_object));
I do not want to change gzcompress(json_encode(big_object)) because it's
not on my scope : I do not want to change the app code.
So, the default serialization for udf use String, not bytes.
Is there any way to force it ?
I dit not success to use a custom serializer.

—
Reply to this email directly or view it on GitHub
https://github.com/aerospike/aerospike-client-php/issues/40#issuecomment-92678168
.

Bertrand, json-encoding, then compressing your object is a form of custom serialization. by comparison, the PHP serialize() function is one of the native ones in PHP's 'standard library'. To register your own serializer you'd simply wrap gzcompress(json_encode($val)) in a function then register its name. I wasn't suggesting you change your app code. What I was pointing out earlier was that right now the apply() function doesn't respect a registered serializer, but instead uses the default PHP mechanism. That's inconsistent with put() so we will change it.
Right now UDFs can take an array of arguments. You can pack binary into any string and pass it as an argument, as long as it doesn't have a \0 in the middle of it. When I fix apply() to enable custom serialization that workaround you saw in the README will work on it as well.
But really, why do you need a record UDF (i.e. apply())? If you are trying to set a bin in a record you should use the put() method. :question:

I can use put for redis get / set operations.
But for others like rpush, lpop and so one, I have to use UDF.
I'm waiting for your patch :)
On Tue, Apr 14, 2015 at 6:30 PM, Ronen Botzer<EMAIL_ADDRESS>wrote:

Bertrand, json-encoding, then compressing your object is a form of
custom serialization. by comparison, the PHP serialize() function is one of
the native ones in PHP's 'standard library'. To register your own
serializer you'd simply wrap gzcompress(json_encode($val)) in a function
then register its name. I wasn't suggesting you change your app code. What
I was pointing out earlier was that right now the apply() function doesn't
respect a registered serializer, but instead uses the default PHP
mechanism. That's inconsistent with put() so we will change it.
Right now UDFs can take an array of arguments. You can pack binary into
any string and pass it as an argument, as long as it doesn't have a \0 in
the middle of it. When I fix apply() to enable custom serialization that
workaround you saw in the README will work on it as well.
But really, why do you need a record UDF (i.e. apply())? If you are trying
to set a bin in a record you should use the put() method. [image:
:question:]
—
Reply to this email directly or view it on GitHub
https://github.com/aerospike/aerospike-client-php/issues/40#issuecomment-92957126
.

Alrighty. I opened a couple of JIRA tickets over here. Hope to get this resolved sooner rather than later. I'll update you.


Don't uglify on dev builds

I've been disabling the .pipe(uglify()) of the Gulpfile to make debugging easier in Chrome devtools.  Would be nice to have this done automatically during dev builds.  I suppose this could be based off of a env variable, be the default behavior for the gulp command, create a new gulp command (gulp dev), or have some flag passed in to the gulp command (gulp --no-uglify). I think I'd prefer for it to be the default behavior.

Hm... there is a site map built with .pipe(sourcemap.write()) that should lead back to where errors are coming from. I haven't run into any issues thus far with it working this way. Is the sourcemap not working on your end?

Sourcemap has been working fine for me on Firefox.

The sourcemap worked in that it appears correct in the source, but all the variables are renamed which is a bit of a pain during development:

Maybe there's a pro-tip that I'm missing to compensate for this?  I'm using Chrome 46.0.2490.71 (64-bit).

whoa that's weird, I haven't seen them renamed at all in my browser.

I experience the same on my work machine on both Chrome:

and Firefox:

Are you sure you guys don't experience this?

Hm, I guess I've never used the scope feature and always tend to debug straight in the console. Looks like scope is truncated just like yours:

But dropchop object is what I use so I've never had a problem:

/me wonders if he should start using this scope feature

Looks like there's an issue logged with Chrome for this type of situation. I wonder if Firefox has one, too.

The sourcemap is generating file/line specific errors as expected right now - going to close this!


Trying to import cell groups errors in Blender 2.79b

Steps to reproduce:

pip install dbbs_models
Open a Python shell

> from dbbs_models import PurkinjeCell
# Basically uses Import3D to load an ASC morphology file
> pc = PurkinjeCell()
> from blenderneuron import neuronstart

Open Blender, select the soma section in the cell group objects, press "Import Cell Groups to Blender"

When I try to create a minimally reproducible example I can in fact import the cell groups if I directly use Import3D.

When I try to create a minimally reproducible example I can in fact import the cell groups if I directly use Import3D.

Hi @Helveg,
Thanks for reporting the issue -- I was able to reproduce it.
The underlying cause is the limit on the length of blender object names. I will work on a long term fix, but I found a workaround that you could use in the meantime.

Create a dummy class that wraps one of the dbbs cell classes (this shortens the name of the cell in Blender), e.g.:

import dbbs_models
class PurkinjeCellDummy(dbbs_models.purkinje_cell_models.PurkinjeCell): pass

Instantiate the cell using the dummy class, e.g. pc = PurkinjeCellDummy()
Start BlenderNEURON in NEURON with from blenderneuron import neuronstart and import the group

I get this with the above steps:

Hi @Helveg,
Thanks for reporting the issue -- I was able to reproduce it.
The underlying cause is the limit on the length of blender object names. I will work on a long term fix, but I found a workaround that you could use in the meantime.

Create a dummy class that wraps one of the dbbs cell classes (this shortens the name of the cell in Blender), e.g.:

import dbbs_models
class PurkinjeCellDummy(dbbs_models.purkinje_cell_models.PurkinjeCell): pass

Instantiate the cell using the dummy class, e.g. pc = PurkinjeCellDummy()
Start BlenderNEURON in NEURON with from blenderneuron import neuronstart and import the group

I get this with the above steps:

Without looking closer at the morphology points, I'm not sure if those are an issue with BN or the morphology. I noticed that if the 'Interact with Sections' option is used, the lines dissapear.

Without looking closer at the morphology points, I'm not sure if those are an issue with BN or the morphology. I noticed that if the 'Interact with Sections' option is used, the lines dissapear.

Great news! Thanks for the workaround, I can continue playing around now!

Great news! Thanks for the workaround, I can continue playing around now!

@JustasB just checking and entirely related: I'd like to know whether you saw my proposal on the closed issue #10 ?

@JustasB just checking and entirely related: I'd like to know whether you saw my proposal on the closed issue #10 ?


Tap reset doesn't work

In a meeting with a big person in tech we've noticed that tap reset didn't work, not sure why. I'll test around with it later.

Interestingly enough, after recently reinstalling my entire PC so also reinstalling SteamVR and SlimeVR Server tap  reset also stopped working for me.
It used to work completly fine before the reinstall

Is it possible it's disabled by default but shows as enabled? I think I had this problem with usb detection...

Is it possible it's disabled by default but shows as enabled? I think I had this problem with usb detection...

Could be, the toggles were on and had sensible delays. I didn't try to toggle them on or off tho.

So after trying the latest server version:
Quick Reset works fine but Reset and Mounting reset do not work.

Some more info:
sometimes it helped to tap on different sides of the tracker, especially the side which is facing upwards. Maybe the acceleration calculation is to blame.
I also made a branch with logging in the TapDetectionManager and sound being played when a enough taps were registered to help with debugging this.
https://github.com/Philip6294/SlimeVR-Server/tree/tap-detection-debug

@Philip6294 Do you mind sharing more info for your sound debugging? ( since I don't own add slime Tracker )
Can you describe the situation (any sound played or log)?
1. when you tapped twice?

2. when you tapped three times?

how often you tap does not matter, the sounds play after the required amount has been tapped.
After enough taps have been registered it plays the sound and after the reset it writes a line to the log.
The logic to handle this is all added to TapDetectionManger.java

Do you know if this is still an ongoing issue? I believe that the cause of this is a faulty or inaccurate accelerometer. This is because to prevent false positives all other trackers must report a low acceleration for the reset to go through even if the taps are all registered. There is a config value to increase the number of trackers that can be over the threshold and still allow a reset and this has seemed to solve the problem for the few people that have used it.

Do you know if this is still an ongoing issue? I believe that the cause of this is a faulty or inaccurate accelerometer. This is because to prevent false positives all other trackers must report a low acceleration for the reset to go through even if the taps are all registered. There is a config value to increase the number of trackers that can be over the threshold and still allow a reset and this has seemed to solve the problem for the few people that have used it.

I never had that problem happen to me again so I think it can be closed.
During trying to troubleshoot it though, I noticed that low TPS could also cause taps to not register, this could maybe be added somewhere in documentation.


is there a way, give an issue.url, to update it?

I have an issue fetched from github, I have it's issue.url (for example, https://api.github.com/repos/some-org/a-repo/issues/990), and now I want to update it.
ATM, it looks like I need to do a url.parse(), then split the path, find some-org and a-repo by direct indexing into the path, and then I can call octo.repos('some-org', 'a-repo').issues(issue.number).update({labels: labels}, ....
I suspect that there is a better way, since I've already got the URL partially constructed, can you point me to it?

Unfotunately the only URL parsing octokat does besides validation is to determine the type of the object returned in the JSON.
See https://github.com/philschatz/octokat.js/blob/master/src/grammar.coffee#L407-L411
But it might make sense to offer root verb methods whose 1st argument is a URL. Something like:
octo = new Octokat();
octo.verbs.fetch(url, cb)
octo.verbs.update(url, {title: 'new title'}, cb)
octo.verbs.fetch(url).then(...)

Howdy! I added #78. Hope that helps!


kernel is already registered when importing 'mind-ar/dist/mindar-image-three.prod.js'

When I import mind-ar/dist/mindar-image-three.prod.js, I receive roughly 200 warnings that are all something like
The kernel 'name of kernel' for backend 'cpu' is already registered
I am currently running mind-ar in Angular.
This is what my import looks like
import 'mind-ar/dist/mindar-image-three.prod.js' ;
Does anyone know what I can do to remove these warnings?

Did you also import tensorflowjs in your project?


form won't accept username

form specifies the field is an email, which browser enforces to need a @ character, but sessions controller wants admin

I changed this to text.  Let me know if this fixes your issue.


"Unable to get the list of users in this channel" error

Hello,
I'm testing the plugin on a self-hosted Mattermost instance, version 6.7.2
The e2ee plugin is installed and enabled, I've successfully created my private key and actived encryption on a test channel.
However, when I actually try to send a message I get this error :
Unable to get the list of users in this channel: Eoor: Received invalid response from the server.
I can't find anything in Mattermost's logs.
Do you have any idea what can cause this issue ?
Thanks

Hello!
There is potentially fixes to do to support Mattermost v6.7. I unfortunately don't know when I'll have the time to test it :(


Space-time mesh generator in 3D/4D. [mfem_4d_meshgen]

Added to 4d_dev:

parallel mesh generator which extends a 2D/3D (triangular/tetrahedral) mesh into a space-time 3D/4D mesh for given time step and number of time slabs;
visualization through mesh slices: 3D or 4D mesh is sliced by hyperplanes t=const and the output slice mesh (or grid function) is printed in VTK format (can be directly used by ParaView);
several 2D/3D meshes (square for 2D, cube and sphere ~ ball in 3D - for testing mesh generator).
Qhull software is an option which can be used or not used for mesh generator, so slight modifications to makefile and defaults.mk were made (a configuration flag MFEM_WITH_QHULL and variables QHULL_DIR, QHULL_OPT, QHULL_LIB);
a new example ParMeshGenViz4D.cpp.

Travis regression testing above is failing, see https://travis-ci.org/mfem/mfem/builds/225415199

Sorry, I forgot to "git add" the latest defaults.mk (as well as example and mesh files). What is the right way to add them and carry out the testing again? I just commited the cnages and pushed them to the branch. Is the pull request still active?
Is the testing environment always taking hypre and metis from default mfem paths aka<EMAIL_ADDRESS>? So should I have these paths in  defaults.mk or can I set them externally for tests (like an argument for make)?

Pull request is still active. Testing runs automatically on push.

Hi Kirill,
This is PR is at 50K additions now which is too much to be put in the library :)
Do you mind removing the meshes and the github_mfem_4d.* files from it?
Also, it goes without saying that we should consider and merge the 4d_dev branch first, for which currently there is no pull request.
Cheers,
Tzanio

@tzanio, note that this is a PR into 4d_dev.

@tzanio, I don't mind about removing anything (github_mfem_4d.* are actually trash files from qt creator project, I apologize for that), and since it is about 4d stuff, I think it only makes sense as a PR for 4d_dev.


Custom constructor for gdnative classes

As far as I know, there's no way to setup a constructor with parameters on a class in GDNative.
For example
class MyClass : public Reference {
     GODOT_CLASS(MyClass, Reference)
public:
     MyClass(int num) {
          this->num = num;
     }

     MyClass() : num(num) {}
private:
     int num;
};

Only the MyClass() with no parameters gets called. If I removed MyClass(), then I get an error because a reference instantiates itself with a simple "new T()".
I know the workaround is easy, but I figured since many small improvements have been getting into nativescript, why not this one?

Note that while native Godot classes do not support constructor parameters, GDScript classes support them, so it would be natural for GDNative classes to support them as well.
While NativeScript::new (_new) is marked as vararg, it does not use the arguments passed to it.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


Angular cache 3.x documentation link in README

My understanding that JS-Data replaces Angular Data 1.x The link in README for angular-cache 3.x takes you to the site that talks about angular-data 1.x. This may confuse a lot of people. Maybe the link should take to the Angular-cache dedicated page? http://angular-data.pseudobry.com/documentation/api/angular-cache/angular-cache

Angular-data 2.x (now js-data-angular used in conjunction with js-data) has no use for Angular-cache whatsoever, as JSData has its own cache expiry capabilities. That's not to say JSData and Angular-cache are mutually exclusive, you can use one or the other, or both, they don't care.
Angular-cache is only relevant to Angular-data 1.x, therefore the link should be to Angular-data 1.x, and Angular-data 1.x only. I could however update the wording around the link to be more specific on this point.

Thank you for clarifying it. It is a little confusing with all these different versions floating in the docs around. :)
I am currently using Angular-data 2.1 and I love it. Now, I have a need to create a small cache where I can store some UI related data. It has nothing to do with models or persistence layer. Should I not use angular-cache at all and instead inject items to the data store directly? If you could please point me out in the right direction, I would highly appreciate it. Thank you.

My answer would be the same as when you asked this here

I thought this sounded familiar. Sorry, been reading tons of material lately. Start forgetting things :)


Generated models don't have proper XML element names and namespaces when the media type is application/xml

We are using a swagger model in which the produced and consumed media type for all operations is "application/xml". Sometimes, the XML element names used are different from the generated type names, and all elements belong to a custom XML namespace, for example:
tuple:
  type: object
  properties:
...
  xml:
    namespace: http://www.sap.com/lmsl/slp

In all generated model structs, there should be a field of type xml.Name that contains the namespace specified in xml.namespace and the correct XML element name, for example:
type Tuple struct {
    XMLName xml.Name `xml:"http://www.sap.com/lmsl/slp tuple"`

As reported in #353, there is currently no support for media type "application/xml" at all. However, once it is added, naming of XML elements and support for XML namespaces should be considered as well.

parent: #183

We're using both JSON and XML.
I like this approach rather than creating type StuffThings []StuffThingor something like that when wrapped=true.
type Stuff struct {
    XMLName xml.Name `json:"-" xml:"http://www.sap.com/lmsl/slp tuple"`
    Name string `json:"name"
    StuffThings []StuffThing `json:"stuffThings,omitempty"    xml:"StuffThings>StuffThing,omitempty"`
}

@stoyarn @casualjim
hello everybody, i have same this problem. Do you have any decisive way?


DeepSpeed op builder

Thanks for helping to solve this problem

I encountered this issue before. I fixed it by re-installing CUDA and PyTorch.
The below versions work for me:
CUDA Toolkit 11.7 Downloads | NVIDIA Developer
torch==1.13.1

I also use torch 1.13.1 and cuda 11.7， but it doesn't work ！

I also use torch 1.13.1 and cuda 11.7， but it doesn't work ！

I encountered this issue before. I fixed it by re-installing CUDA and PyTorch.
The below versions work for me: CUDA Toolkit 11.7 Downloads | NVIDIA Developer torch==1.13.1

There may be some confusion here regarding which CUDA version we are referring to, so I'll clarify. There is a CUDA Runtime API and a CUDA Driver API. Each of these may have different versions depending on how CUDA was installed on your system.
nvidia-smi will report the Driver version while nvcc --version will report the Runtime version. Please check the CUDA version installed with nvcc --version and confirm that it is >=11.0 if your pytorch install is compiled with CUDA 11.


Add github action "publish to github packages"

By pushing to a "publish" branch this branch will be build and published to github packages.

update README
update build.gradle
remove superflous task
remove unused travis configs

See metafacture-fix#265.

I'm a bit confused here. The version is feature-publish-SNAPSHOT (see package). Do we actually want an unspecific snapshot release? Even if we do, I don't think we'll be able to publish that version again, I think we'll have to (manually?) delete all the packages before we can publish again with the same version.
Before, I had it set up (not in master, I used these only for OERSI) to release only when we push to an RC branch, and use that simple branch name as the version. See https://github.com/metafacture/metafacture-core/commit/6613de93e1ee1a49198ad5f837c68bc992bf0a30 (based on the original setup in https://github.com/metafacture/metafacture-core/commit/8d762ea428d41b26bf4dc64b7cc229d91793b19a). Resulting in versions like 5.3.3-rc2 (see package).

I'm a bit confused here. The version is feature-publish-SNAPSHOT (see package). Do we actually want an unspecific snapshot release?

TBH, I wasn't expecting this either, but it's a side effect of the "sophisticated" version logic in metafacture-core. My suggestion would be to drop it and simply rely on explicit version numbers (as in metafacture-fix).

Thx @fsteeg , cherry-picked your solution.
Published metafacture-core-5.4.1-rc1 to GitHub packages.
See https://github.com/metafacture/metafacture-core/wiki/Maintainer-Guidelines#release-candidate how to do it.


Feature request: Automated builds for AVX2

Would it be possible to add also AVX2 optimized builds to the automated PIP builds provided by Google?

@gunan, what do you think?

Unfortunately, we do not have machines that have avx2 support for all configurations we have.
I can see ourselves upgrading some of the machines soon, however as Apple did not update mac pro's this year, I see no way for us to release avx2 images for mac.
For linux, this might be possible in some near future, but not immediately.

For us Linux amd_64 and Python 3.5. We have no need for MacOSX or Python 2.7 support at the moment.

I just checked, and no machines test and release infra currently has avx2 extensions.
We are all blocked on services providing these machines to us, therefore for the time being, we can build, but we cannot test it for avx2.
Given the fragility of the avx build, we have to test it and fix all the issues with avx2.
http://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu-mavx/
All things considered, official support for avx2 is infeasible right now. We will reevaluate this in a quarter. I am closing this issue for now.


Integration framework flag --istio.test.noCleanup doesn't work.

Describe the bug
This flag doesn't have any effect.
Expected behavior
Test environment won't be destroyed if this flag is set.
Steps to reproduce the bug
Run test with --istio.test.noCleanup
Version
n/a
Installation
n/a
Environment
n/a
Cluster state
n/a

Hey @diemtvu, I've just landed a big refactoring of tests framework in master. The nocleanup flag should be working now. I am closing this bug. Please feel free to reopen it if you see any further cleanup related issues.


Excel in-cell dropdown

I have this code below. The purpose of this code is to set very specific cell's to have drop down values. Not all cells in the column must have this dropdown and the data types differ for each cell.
This works fine and excel is created.
The issue here is that in Excel, for each cell that have a dropdown applied you need to:

Select the cell
Select the "Data" tab
Select "Data Validation"
Check the "in-cell dropdown" checkbox
before the cell have a drop  down option

This code was developed using several sources to try and resolve the issue, and all of the sources advise more or less the same code
if (data.ApplyLookup(x, rowIndex))
{
	string columnName = GetExcelColumnName(x + 1);

	DataValidation dataValidation = new DataValidation
	{
		Type = DataValidationValues.List,
		ShowDropDown = true,
		AllowBlank = true,
		SequenceOfReferences = new ListValue<StringValue> { InnerText = $"{columnName}{rowIndex}" }
	};

	string lookupString = $"\"{string.Join(",", data.LookupValues[x].Select(kv => kv.Value))}\"";
	dataValidation.Formula1 = new Formula1(lookupString);

	dataValidations.Append(dataValidation);
}

Hi @hansie-the-quorum, Can you give some more detail about your issue? Does the code you posted not work or is the issue something else?

Hi Michael,
Thank you for your speedy response.
The code provided works, but not as expected.
The spreadsheet that I am building have some dropdown values that are very cell specific in the context that In a column it may or may not be set, as the data in lets say E2 may have the required lookup, but E3 then will not have the lookup as this is a free text field, the next row E4, then will have the lookup values and so on until the end of the sheet data.
This may be for lest say Columns E,F and G, where each columns lookup differ from each other.
The code executes fine, and the data is set, but, always the ‘but’, sorry for that, but the drop down does not show in Excel.
To allow the data cell to display the drop down in the spread sheet the user then needs to select each cell, one my one, select the data tab, then the Data Validation and manually set the “In-cell dropdown” to ticked. (See image blow)
Now according to each and other blog, including co-pilot, the code provided should set that tick-box to true, and allow the user to see all the dropdowns from the word go.
I hope this explains it a bit better.
I was thinking that maybe I am asking the wrong question, or understood it wrong, so, if this is a blunder from my side, sorry for the inconvenience caused.
Kind regards
Hansie
@.***
From: Michael Bowen @.>
Sent: Friday, February 9, 2024 7:03 PM
To: dotnet/Open-XML-SDK @.>
Cc: Hansie van Straaten @.>; Mention @.>
Subject: Re: [dotnet/Open-XML-SDK] Excel in-cell dropdown (Issue #1665)
Hi @hansie-the-quorumhttps://github.com/hansie-the-quorum, Can you give some more detail about your issue? Does the code you posted not work or is the issue something else?
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/Open-XML-SDK/issues/1665#issuecomment-1936278064, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBGFJ55QLB7FTF6GMIBY7NTYSZJDNAVCNFSM6AAAAABDBIVBI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGI3TQMBWGQ.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @hansie-the-quorum, There appears to be an issue with ShowDropDown = true. As a workaround, remove that line and do not set the ShowDropDown value and it will work. This is not the expected behavior and requires further investigation, but this will resolve the issue.
if (data.ApplyLookup(x, rowIndex))
{
	string columnName = GetExcelColumnName(x + 1);

	DataValidation dataValidation = new DataValidation
	{
		Type = DataValidationValues.List,
		// ShowDropDown = true, // Do not set this property.
		AllowBlank = true,
		SequenceOfReferences = new ListValue<StringValue> { InnerText = $"{columnName}{rowIndex}" }
	};

	string lookupString = $"\"{string.Join(",", data.LookupValues[x].Select(kv => kv.Value))}\"";
	dataValidation.Formula1 = new Formula1(lookupString);

	dataValidations.Append(dataValidation);
}

Hi Michael,
Almost forgot, thank you for the work around, it works just fine now.
And thank you for your kind and speedy response.
Have the best day ever.
Kind regards
Hansie
From: Michael Bowen @.>
Sent: Tuesday, February 13, 2024 12:05 AM
To: dotnet/Open-XML-SDK @.>
Cc: Hansie van Straaten @.>; Mention @.>
Subject: Re: [dotnet/Open-XML-SDK] Excel in-cell dropdown (Issue #1665)
Hi @hansie-the-quorumhttps://github.com/hansie-the-quorum, There appears to be an issue with ShowDropDown = true. As a workaround, remove that line and do not set the ShowDropDown value and it will work. This is not the expected behavior and requires further investigation, but this will resolve the issue.
if (data.ApplyLookup(x, rowIndex))
{
    string columnName = GetExcelColumnName(x + 1);

    DataValidation dataValidation = new DataValidation

    {

           Type = DataValidationValues.List,

           // ShowDropDown = true, // Do not set this property.

           AllowBlank = true,

           SequenceOfReferences = new ListValue<StringValue> { InnerText = $"{columnName}{rowIndex}" }

    };

    string lookupString = $"\"{string.Join(",", data.LookupValues[x].Select(kv => kv.Value))}\"";

    dataValidation.Formula1 = new Formula1(lookupString);

    dataValidations.Append(dataValidation);

}
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/Open-XML-SDK/issues/1665#issuecomment-1939671079, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBGFJ57NDF53VNLJQKIQ35DYTKGYXAVCNFSM6AAAAABDBIVBI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGY3TCMBXHE.
You are receiving this because you were mentioned.Message ID: @.***>


[FEAT] Support non-Android models

Is your feature request related to a problem? Please describe.
The tool does not support non-Android Philips TVs.
Describe the solution you'd like
It seems that non-Android Philips TVs use a slightly different API:

Pairing does not need a PIN - confirmed
Endpoints and requests work somewhat differently - testing in progress
API version seems to be 6.1 as opposed to 6.2 (Android) (?) - unconfirmed, requires further investigation

I don't own such a TV so I rely on other people to help me with mapping this version of the API. Once the traffic is captured and analyzed, the tool needs to be updated to support non-Android Philips TVs.
If you have a non-Android Philips TV (2016+) please reply to this issue to help me with testing it!

Here is an example of API 6.1 with "pairing_type": "digest_auth_pairing", so it seems that a minor API version does not indicate Android presence as I initially thought...


MBART ckpt loading error

I was going to do some translation inference with MBART according to the instructions in the following page: https://github.com/facebookresearch/fairseq/blob/main/examples/mbart/README.md.
Everything went well until this command:
model_dir=MBART_finetuned_enro # fix if you moved the checkpoint

fairseq-generate path_2_data \
  --path $model_dir/model.pt \
  --task translation_from_pretrained_bart \
  --gen-subset test \
  -t ro_RO -s en_XX \
  --bpe 'sentencepiece' --sentencepiece-model $model_dir/sentence.bpe.model \
  --sacrebleu --remove-bpe 'sentencepiece' \
  --batch-size 32 --langs $langs > en_ro

The error is like:

RuntimeError: Error(s) in loading state_dict for BARTModel:
size mismatch for encoder.embed_tokens.weight: copying a param with shape torch.Size([250027, 1024]) from checkpoint, the shape in current model is torch.Size([250004, 1024]).
size mismatch for decoder.embed_tokens.weight: copying a param with shape torch.Size([250027, 1024]) from checkpoint, the shape in current model is torch.Size([250004, 1024]).
size mismatch for decoder.output_projection.weight: copying a param with shape torch.Size([250027, 1024]) from checkpoint, the shape in current model is torch.Size([250004, 1024]).

It seems that the ckpt provided cannot match the size of the BARTModel.
How to solve this problem?

I have the same error with you. Did you solve it?


Contentlayer stuck with following stacktrace.

Catching following stacktrace since adding the following to my script.
const experienceFields = {
  position: { type: "string", required: true },
  url: { type: "string", required: true },
  startDate: { type: "date", required: true },
  endDate: { type: "date", required: false },
  summary: { type: "string", required: true },
  hightlights: { type: "list", of: { type: "string" }, required: false },
}

const WorkExperience = defineNestedType(() => ({
  name: "WorkExperience",
  fields: {
    company: { type: "string", required: true },
    ...experienceFields,
  },
}));

const VolunteerExperience = defineNestedType(() => ({
  name: "VolunteerExperience",
  fields: {
    organization: { type: "string", required: true },
    ...experienceFields,
  },
}));

Even after reverting the destructure approach to normal contentlayer continues to be in this error state.  Please consider opening a GitHub issue with the stack trace below here:
https://github.com/contentlayerdev/contentlayer/issues

╥
╠══╦══╗
║  ║  ║
║  ║  ╠─An interrupt was produced by #1.
║  ║  ║
║  ║  ▼
║  ║
║  ╠─An unchecked error was produced.
║  ║
║  ║ Error: A case was not handled for value: false
║  ║     at Module.casesHandled (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/utils/src/index.ts:62:9)
║  ║     at traverseField (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:290:15)
║  ║     at Array.forEach (<anonymous>)
║  ║     at traverseNestedDef (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:249:41)
║  ║     at traverseListFieldItem (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:301:16)
║  ║     at traverseField (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:274:16)
║  ║     at Array.forEach (<anonymous>)
║  ║     at collectNestedDefs (file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:305:60)
║  ║     at file:///Users/marco/code/priv/nextjs-blog/node_modules/@contentlayer/source-files/src/schema/provideSchema.ts:74:24
║  ║     at Generator.next (<anonymous>)
║  ║
║  ║ Fiber: #9 (started at: 2021-12-28T16:05:04.461Z) was supposed to continue to:
║  ║
║  ║   a future continuation at packages/@contentlayer/source-files/src/index.ts:54:17
║  ║
║  ║ Fiber: #9 (started at: 2021-12-28T16:05:04.461Z) Execution trace:
║  ║
║  ║   packages/@contentlayer/source-files/src/schema/provideSchema.ts:17:8
║  ║
║  ║ Fiber: #9 (started at: 2021-12-28T16:05:04.461Z) was spawned by:
║  ║
║  ║ Fiber: #1 (started at: 2021-12-28T16:05:03.709Z) was supposed to continue to:
║  ║
║  ║   a future continuation at packages/@contentlayer/core/src/generation/generate-dotpkg.ts:78:13
║  ║
║  ║ Fiber: #1 (started at: 2021-12-28T16:05:03.709Z) Execution trace:
║  ║
║  ║   packages/@contentlayer/core/src/generation/generate-dotpkg.ts:74:16
║  ║   packages/@contentlayer/cli/src/commands/BuildCommand.ts:24:12
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:36:18
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:35:10
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:43:15
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:35:26
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:33:12
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:113:12
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:71:36
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:163:13
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:154:26
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:153:30
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:143:26
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:142:31
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:131:26
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:130:15
║  ║   packages/@contentlayer/core/src/getConfig/index.ts:116:10
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:114:12
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:117:14
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:66:15
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:65:10
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:64:10
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:47:22
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:72:10
║  ║   packages/@contentlayer/core/src/getConfig/esbuild.ts:71:12
║  ║
║  ║ Fiber: #1 (started at: 2021-12-28T16:05:03.709Z) was spawned by: <empty trace>
║  ▼
▼

OS: darwin 21.1.0 (arch: x64)
Process<EMAIL_ADDRESS>/Users/marco/code/priv/nextjs-blog/node_modules/.bin/contentlayer build --clearCache --verbose
Node version: v16.13.1
Contentlayer version: 0.0.33

Eventually found the issue by reapplying all definitions one by one.
Reason for the Stacktrace was in the education definition.
    url: {type:"string"}, required: false},

which should have been
    url: { type:"string", required: false },

Somehow my IDEA was not highlighting this error. 🤕


Intial setup after installation

terrascan version:0.1.0
Python version:2.7
Operating System:ubuntu

Description
After installing terrascan couldn't execute the command or anyhting related to terrascan .
What I Did
Ran the command on the term .
$ terrascan -h
terrascan: command not found

Do I need to clone the repo or something , can't make out what I am missing here  ?

Read the docs doesn't make sense to me , since it doesn't get me anywhere neither does it guide how to use terrascan .

Also is there a guide for writing & what should be be directory structure for these tests  ?

It should work on any directory containing tf files. Try installing again via pip and checking if the location of terrascan is in your PATH after installing.

Closing for inactivity. The installation process changed a little bit as of v1.0.0 and docs are available here: https://docs.accurics.com/projects/accurics-terrascan/en/latest/getting-started/


V1.6.0-beta Fails to install on Windows 7

See the install log:
Perhaps https://blogs.msdn.microsoft.com/bclteam/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton/ can be of some help in solving the problem.
I should say, I'm installing here from AtomSetup.exe

2015-10-07 15:47:52> Program: Starting Squirrel Updater: --install .
2015-10-07 15:47:52> Program: Starting install, writing to C:\Users\Brian.sidebotham\AppData\Local\SquirrelTemp
2015-10-07 15:47:52> Program: About to install to: C:\Users\Brian.sidebotham\AppData\Local\atom
2015-10-07 15:47:53> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Brian.sidebotham\AppData\Local\atom\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__3c.MoveNext()
2015-10-07 15:47:53> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Brian.sidebotham\AppData\Local\SquirrelTemp
2015-10-07 15:47:53> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2015-10-07 15:47:53> ApplyReleasesImpl: Writing files to app directory: C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\content_resources_200_percent.pak to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\content_resources_200_percent.pak
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\content_shell.pak to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\content_shell.pak
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\atom.exe to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\atom.exe
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\d3dcompiler_47.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\d3dcompiler_47.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\ffmpegsumo.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\ffmpegsumo.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\icudtl.dat to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\icudtl.dat
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\libEGL.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\libEGL.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\libGLESv2.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\libGLESv2.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\LICENSE to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\LICENSE
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\node.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\node.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\msvcr120.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\msvcr120.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\msvcp120.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\msvcp120.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\pdf.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\pdf.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\natives_blob.bin to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\natives_blob.bin
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\squirrel.exe to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\squirrel.exe
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\vccorlib120.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\vccorlib120.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\snapshot_blob.bin to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\snapshot_blob.bin
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\xinput1_3.dll to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\xinput1_3.dll
2015-10-07 15:48:12> ApplyReleasesImpl: Moving file C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\lib\net45\ui_resources_200_percent.pak to C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\ui_resources_200_percent.pak
2015-10-07 15:48:13> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.0.19\atom.exe]
2015-10-07 15:48:17> ApplyReleasesImpl: Starting fixPinnedExecutables
2015-10-07 15:48:17> ApplyReleasesImpl: fixPinnedExecutables: oldAppDirectories is empty, this is pointless
2015-10-07 15:48:17> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.19
2015-10-07 15:48:17> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-1.0.19
2015-10-07 15:48:26> InstallHelperImpl: Couldn't write uninstall icon, don't care: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.InstallHelperImpl.d__11b.MoveNext()
2016-02-10 12:24:05> Program: Starting Squirrel Updater: --install .
2016-02-10 12:24:05> Program: Starting install, writing to C:\Users\Brian.sidebotham\AppData\Local\SquirrelTemp
2016-02-10 12:24:05> Program: About to install to: C:\Users\Brian.sidebotham\AppData\Local\atom
2016-02-10 12:24:05> Program: Install path C:\Users\Brian.sidebotham\AppData\Local\atom already exists, burning it to the ground
2016-02-10 12:24:05> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Brian.sidebotham\AppData\Local\atom\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__3d.MoveNext()
2016-02-10 12:24:05> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Brian.sidebotham\AppData\Local\SquirrelTemp
2016-02-10 12:24:05> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2016-02-10 12:24:05> ApplyReleasesImpl: Writing files to app directory: C:\Users\Brian.sidebotham\AppData\Local\atom\app-1.6.0-beta0
2016-02-10 12:24:23> IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractEntry(ZipEntry entry)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<b__a8>d__b8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__541.MoveNext() 2016-02-10 12:24:24> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.    at System.IO.PathHelper.GetFullPathName()    at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)    at System.IO.Path.GetFullPathInternal(String path)    at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractEntry(ZipEntry entry)    at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)    at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<<installPackageToAppDir>b__a8>d__b8.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Squirrel.Utility.<LogIfThrows>d__541.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__78.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__37.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractEntry(ZipEntry entry)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<b__a8>d__b8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__54`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__78.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__37.MoveNext()<---

Hi @BrianSidebotham, thanks for reporting!  This looks like a duplicate of #5109 though, so please subscribe there for updates.


Nialexsan/remove cadence

removed cadence docs and set up redirects to https://cadence-lang.org/docs/0.42/

Blocked on #439

blocked by https://github.com/onflow/cadence-lang.org/pull/17

@turbolent, fixed the redirect and links


Querying Wording on Service Tags and Firewall Rules required

Is it possible to get more clarity on the wording below please - Is my interpretation correct?
Query 1:
"...To cover all the exceptions in this article, use the service tags ActionGroup, ApplicationInsightsAvailability, and AzureMonitor...."
Is this for outbound rules i.e. all 3 tags should be used when configuring outbound AzFW rules?
Query 2:
"...All Application Insights traffic represents outbound traffic with the exception of availability monitoring and webhooks"
so is it the case for Inbound rules the tags 'ActionGroup' & 'ApplicationInsightsAvailability' to ensure Global webhooks access  and AppService Availability (https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability)

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

ID: 3942b937-b212-3ceb-d356-450b7f598f68
Version Independent ID: 8b015b42-cf02-3942-3cc3-6e0f977d191a
Content: IP addresses used by Azure Monitor - Azure Monitor
Content Source: articles/azure-monitor/app/ip-addresses.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @AaronMaxwell
Microsoft Alias: aaronmax

Thanks for bringing this to our attention. We will investigate it further and update you shortly.

Q) Is this for outbound rules i.e. all 3 tags should be used when configuring outbound AzFW rules?
A) Yes.
Q) so is it the case for Inbound rules the tags 'ActionGroup' & 'ApplicationInsightsAvailability' to ensure Global webhooks access and AppService Availability
A) Yes.
Also raised a PR to reflect the changes in the Note section.
Thanks again for bringing this to our attention. We have updated the Doc and it will be live once its merged.  We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


NIFI-1583 Added ConvertJSONtoCSV processor

New functionality to convert complicated multi nested JSON format into
tabular 2 dimensional CSV format

Removing the Atomic reference makes sense.
As far as removing the fields goes, yes, both would be removed. Code could be updated where siblings.name needs to be explicitly defined in order to remove the nested name field. Currently the desire was to remove fields at every level to make the functionality itself simpler.

I am not sure we can use org.json:json dependency.  Its license as found in the readme of https://github.com/stleary/JSON-java/blob/master/README says  "The license includes this restriction: "The software shall be used for good,
not evil." If your conscience cannot live with that, then choose a different
package.""
I'm not sure this is acceptable in that it doesn't claim to be public domain or be part of any approved ASF friendly license.

I think the ASF is ok with the JSON license: http://www.apache.org/legal/resolved.html#json
@joewitt do you agree?

@acesir Mind rebasing against the latest master? Please and thanks!

@acesir wondering if you had time to rebase the PR so we can complete review and possibly merge it?

I plan to close out this PR in a stale PR sweep soon.


Implement servers vs. local libraries so the client makes a network call

Take an array of servers (and local libraries too for that matter) and:

Get all of the polymath results from each one
Sort the results based on the bits similarity
Return the max context that will safely fit in the completion query

Fixed in #1c59920


Feature request: Add ServiceMonitor

In many cases prom configuration is managed by prometheus-operator, which uses ServiceMonitor custom resources to setup prom scraping targets.
Please add ability to deploy ServiceMonitor as part of helm chart.
Important thing to keep in mind. When ServiceMonitor is enabled, Service must not have prometheus scraping annotations set. As this may cause double scrape in some configurations.

That sounds great! Thanks!
Do you have interest in coding it? Or would I write the code and invite you to make a review? Which one do you prefer?

Yeah, I can submit a PR for this.

Yeah, I can submit a PR for this.

That's great! Thanks a lot! ❤ 🚀


Problem with placing test structures on chip?

This may be user error, but I'm not sure what I could be doing wrong. I'm just calling and placing alignment and resolution test structures with mostly default parameters, most code taken directly from the ReadTheDocs. When I try to use the alignment_cell or the resolution_test_cell in a Design, I get incorrect results even though the documentation generated on my computer looks right.
I found that for resolution_test_cell, I get the correct results if it is placed at coordinate (0,3):

but not at coordiante (0, 1):

It's very odd because I didn't change anything else with my code except the line gds.place_on_chip(res_test, (0,3)) vs gds.place_on_chip(res_test, (0,1)).
I can't get the alignment_cell to produce results no matter what coordinates I use:

Really not sure what is happening in these cases.
Minimum code that shows this issue on my computer:
import qnngds.design as qd
import qnngds.cells as qc

import numpy as np

def main():
    gds_name = 'fluctuations'
    chip_name = 'SPGxxx'

    layers = {'annotation':0, 'mgb2_fine':1, 'mgb2_coarse':10, 'pad':20}
    outline_coarse = 10
    outline_fine = 1
    ebeam_overlap = 10

    gds = qd.Design(
        name="fluctuations",
        chip_w=10e3,
        chip_margin=100,
        N_dies=6,
        pad_size=(150,250),
        device_outline=outline_fine,
        die_outline=outline_coarse,
        ebeam_overlap=ebeam_overlap,
        annotation_layer=layers['annotation'],
        device_layer=layers['mgb2_fine'],
        die_layer=layers['mgb2_coarse'],
        pad_layer=layers['pad']
    )
    CHIP = gds.create_chip()

    ALIGN_CELL_LEFT = gds.alignment_cell(
    layers_to_align = [layers['mgb2_coarse'], layers['pad']], text = 'LEFT'
    )
    gds.place_on_chip(ALIGN_CELL_LEFT, (4, 4))
    res_test = gds.resolution_test_cell(layer_to_resolve=layers['mgb2_fine'])
    gds.place_on_chip(res_test, (0,1))

    gds.write_gds(gds_name)

if __name__ == '__main__':
    main()

Also, if I used PHIDL.quickplot to plot gds.CHIP immediately before writing the GDS file, the alignment test and resolution tests both look okay. However, the GDS file written does not display correctly in KLayout.

Resolved -- something strange about my KLayout; restarted computer


fix: fix simulation for the claim module #292 #304

References

https://github.com/cosmosquad-labs/squad/pull/292
https://github.com/cosmosquad-labs/squad/pull/304

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Appropriate labels applied
[ ] Targeted PR against correct branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

Even if we re-run the failed job (Pull Request Labeler), is it going to be still failing?

Even if we re-run the failed job (Pull Request Labeler), is it going to be still failing?

@queencre Yes, after https://github.com/crescent-network/crescent/pull/28/commits/eb0e65938276bb686f60c141742d80dd4340642c merge in this PR, it is expected to succeed in the next other PRs


Drag and Drop - How do I add it?

Please provide some guidance about how I'd add drag and drop. Thanks.

Hello @Imaginativeone.
I'm not sure of what you mean by a guide for drag & drop, but if u want a way to add drag & drop to any part of your ui components, i recommend to check dnd-kit here, it will suited for all cases, performant and lightweight.

@BelkacemYerfa For now, I might be relegated to this: https://github.com/brimdata/react-arborist In time, I'd like to make something like it by using your technique(s).

Hi again @Imaginativeone.
I have looked at react-arborist that you have mentioned, The approach they use is more abstract that what we use, but if you want to build something similar but having more control over the component, you can check the source code of out Tree View component, it should provide a solid starting point for you, and also dnd-kit has an example on their repo on how u can build tree like that one using there library, you can check the example code here, the live example deployed on storybook. Those should provide a solid starting point for you.
We can help you a beat with some implementation details, this is an invite for our discord account if you want to chat with other contributors about those stuff, and also you can reach us : https://discord.gg/H7AjYkXn.


Updated Use an existing WSUS infra

Trying to clarify why not use WSUS installation as standalone tool and SUP integration on the same machine.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@dougeby Please review this when you return on 9 Mar.

@dougeby LMK if this is good to merge // fyi @Brenduns


Update README.md

Modified the text for compliance in the README file.

@sparticlesteve The URL is fixed in 7cf95be6253ad51b5d9b96b78f8757067e50331b


Use Builder entity to get the run image during build

Signed-off-by: Danny Joyce<EMAIL_ADDRESS>

Merged to master in commit 67cebcd48899b1e773de5527391fb78cd3f1b662


Logging into cli without browser does not work

To authenticate with the graphcool cli without a browser, using the following command, does not work:
graphcool login --token $MY_TOKEN

Expected behavior: Should sign me in.
Actual behavior: Still opens the browser for authenticating the CLI. Crashes on remote machine via SSH.

In your home directory exist file name .graphcoolrc with you authentication info, if you need browserless authentication, you can use this file for authentication withou browser login. Just copy .graphcoolrc to the home directory cp .graphcoolrc ~/.graphcoolrc


dockerSsh option fails to mount non-RSA keys into container

As per the README, "The dockerSsh option will mount your $HOME/.ssh/id_rsa and $HOME/.ssh/known_hosts as a volume in the docker container".
However, also other paths and key formats are used for SSH keys (e.g. specific SSH keys for specific sites, ecdsa or ed25510, etc.).
If no RSA SSH key is present, I get the following error:
Serverless: Using download cache directory /home/jack/.cache/serverless-python-requirements/downloadCacheslspyc
Serverless: Running docker run --rm -v /home/jack/.cache/serverless-python-requirements/413378d9b4915169d34e398a2e96757e42a01b4a91c532d04d36d297c6041eb2_slspyc\:/var/task\:z -v /home/jack/.ssh/id_rsa\:/root/.ssh/id_rsa\:z -v /home/jack/.ssh/known_hosts\:/root/.ssh/known_hosts\:z -v /tmp/ssh-4OmyoDvmZaPi/agent.1416\:/tmp/ssh_sock\:z -e SSH_AUTH_SOCK\=/tmp/ssh_sock -v /home/jack/.cache/serverless-python-requirements/downloadCacheslspyc\:/var/useDownloadCache\:z lambci/lambda\:build-python3.6 /bin/sh -c 'chown -R 0\\:0 /var/useDownloadCache && python3.6 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 1000\\:1000 /var/task && chown -R 1000\\:1000 /var/useDownloadCache && find /var/task -name \\*.so -exec strip \\{\\} \\;'...

  Error --------------------------------------------------

  Error: STDOUT: Obtaining repo from ssh<EMAIL_ADDRESS>(from -r /var/task/requirements.txt (line 1))
    Cloning ssh@example.com:repo.git (to revision v0.0.3) to ./src/repo
    Running command git clone -q ssh@example.com:repo.git /var/task/src/repo
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0755 for '/root/.ssh/id_rsa' are too open.
    It is required that your private key files are NOT accessible by others.
    This private key will be ignored.
    Load key "/root/.ssh/id_rsa": bad permissions
    Permission denied (publickey).
    fatal: Could not read from remote repository.

Even if no RSA key is present, the plugin still tries to mount ~/.ssh/id_rsa into the container.
Docker then subsequently creates this path (as a directory), but with standard permissions (hence the above error message).
In the end, the SSH private key (which is in ~/.ssh/id_ed25519) is not present in the container, thus the "permission denied" error for the private repository occurs.

Here is a work around if you need to use a private repo:
pythonRequirements:
    dockerizePip: true
    dockerImage: mlupin/docker-lambda:python3.9-build
    dockerSsh: true
    dockerRunCmdExtraArgs:
      - '-e'
      - 'GIT_SSH_COMMAND="cp ~/.ssh/id_rsa ~/id_rsa && chmod 600 ~/id_rsa && ssh -i ~/id_rsa"'


Perform regression testing of the ibm.com Library v1.11.0 release - Prod QA testing

User Story

As a [user role below]:
DDS engineering lead and Offering Manager

I need to:
ensure the changes included in the v1.11.0  release do not adversely affect the existing code

so that I can:
ensure the quality of the ibm.com adopter experience is maintained

Additional information

Contents of the v1.11.0 release
The regression testing is currently scheduled from Sept 14 - 21.  At least 2 rounds of regression testing should be performed during these dates.
React (Storybook)
React (NextJS)
Vanilla (Storybook) - Limited testing of the Tier 1 browsers
Web Components Storybook

Acceptance criteria

[ ] All regression tests are executed
[ ] Defects are created and retested

Prod QA and Accessibility testing has started.  They are about 40 - 50% completed.

First cycle of regression testing will be finished by the QA meeting tomorrow morning US for review of the final findings.

First round of regression testing finished.  The rc1 will be cut later today.

50% finished with the regression testing.  No new bugs to report.  Should be finished with the regression testing tomorrow.

Regression is finished.  Not new bugs that have not been reported already.


Proc attr macro issues

Hi!
I had two things about attribute macros I noticed recently.
First, I wrote a kind of proof-of-concept macro which wraps the #[test] macro and runs some setup code. However, code actions don't seem to recognize my tests as tests anymore - I checked in VS Code and it does seem to recognize it there, however.
The second thing I noticed is when using the #[tracing::instrument] macro, no completion works inside of the given function. This doesn't work well in VS Code either, so perhaps not in your area.
Happen to know if there's a fix for either of these?
I know proc macros are relatively new in rust-analyzer, so these may well both be upstream issues, but I thought I'd ask here first.
thank you!

yeah sounds like upstream issues


Pairs should be .first and .second instead of left and right.

Title is self-explaintory.

Added on the v0.4.1 roadmap


Allow for instance disk customization

The node disk type should be an option in the cluster/gce/config-*.sh files.
The nodes get created here: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/gce/util.sh#L299

And also the disk size.

How to do this for aws ? I am stuck at 10GB minion

It doesn't appear to be an option yet. A pull requests adding it would be very welcome!

@a-robinson please check this thread #11459

Hello there, can I do something to make this available in the gcloud container clusters create command ?


Better username handling

Currently the identifyUsername method gets called before every incoming request inside a webhook. That's really not needed.
We need a way to save the username via caching or maybe even let the  user pass the username in BotBuilder.
Caching has the downside that there is inevitably a time interval in which the bot does not recognize commands with the /command@username syntax, when the username gets changed via BotFather and the cache is not yet invalidated.
There needs to be at least a cache clear command to trigger that invalidation manually. (This needs to be done for the discovered handlers as well.)

I just realized, that it‘s not even possible to change the Bot Username without deleting it and creating a new one. Only the display name can be changed.
I think it‘s okay, to fetch the username once on startup, like it is already done with polling… But on webhooks it should be cached, I guess… At least when there is a CacheInterface set.


[SR-15750] [Swift-DocC] docc archive transform-for-static-hosting should add support for experimental custom header/footer feature

Previous ID
SR-15750

Radar
rdar://problem/87740373

Original Reporter
@ethan-kusters

Type
Improvement

Additional Detail from JIRA

Votes
0

Component/s
Swift-DocC

Labels
Improvement

Assignee
None

Priority
Medium

md5: 717260373b6916638ec4326a5b4138a8

cloned from:

SR-15576 [Swift-DocC] Transform-for-static-hosting does not DocC's experimental custom header/footer feature

relates to:

SR-15576 [Swift-DocC] Transform-for-static-hosting does not DocC's experimental custom header/footer feature

Issue Description:
Currently the `docc archive transform-for-static-hosting` action does not respect the experimental header/footer that can be provided in a DocC Catalog.
Note that this bug is specifically tracking support for transforming a pre-built archive that made use of the experimental header/footer feature. Support for picking up an experiemental header/footer as part of the initial conversion is tracked with SR-15576.
The implementation of this would add a new --experimental-enable-custom-templates flag to docc archive transform-for-static-hosting.

Could this throw at least error in the meantime?

An identical issue seems to be closed: https://github.com/apple/swift-docc/issues/196


Error Using with Firebase Cloud Functions

I get an error that begins with Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%p" when attemping to run pdf2pic on a firebase cloud function.
I installed graphicsmagick using npm install gm and also installed imagemagick and then installed pdf2pic.
Versions:
"imagemagick": "^0.1.3",
"gm": "^1.23.1",
"pdf2pic": "^1.2.6",
Code:
I import the package
const PDF2Pic = require('pdf2pic').default;
and I'm doing a bulk conversion
let converter = new PDF2Pic({
            density: 150,           // output pixels per inch
            savename: savename,   // output file name
            savedir: outputDirectory,    // output file location
            format: 'jpg',          // output file format
            size: 3000,               // output size in pixels
        })

 var reply = converter.convertBulk(pdfPath, [13,14,15])
            .then( () => {
                console.log('image converted successfully');
        });

Have you made sure that the graphicsmagick library is pre-installed in your firebase cloud function?


insert fix

I added a last test in the insert.cpp which handles this case ✌🏽:
If we insert and the number of elements that must be inserted are less than (end() - position) .
Of course we can only fit in this case if there is enough space in the vector.
The problem with this case is that, you may encounter overlapping if you don't do a backward copy or any technique to avoid this behaviour.

Hi,
First of all, thank you for your pull request ! :)
And sorry for the late response, I wasn't available this week a lot :sweat_smile:
I will check this on Monday !


Added Peru localization

en_US, es (default), uk.

Coverage: 100.0%. Remained the same when pulling 18fd800fcadea9c4d117c775c393df317f022d45 on KJhellico:upd-peru-loc into bf04c519e96cfa3e2df00b8e9e129f7ae60c8e85 on dr-prodigy:beta.


Add hip-lang cmake module

Replaces #2183

Hi @zackgalbreath
Could you change 2020 to 2021 in the following ?
Copyright (c) 2020 - Present Kitware, Inc, and Contributors.
Because the patch is submitted today.

Could you change 2020 to 2021 in the following ?
Copyright (c) 2020 - Present Kitware, Inc, and Contributors.
Because the patch is submitted today.

Sure thing. The header is updated per your request.

Hi @zackgalbreath
Is there any way to install that special cmake?
And can you install samples into hip/hip-lang/samples ?
Thanks!

Hi @zackgalbreath
Is there any way to install that special cmake?

Certainly!
Our branch that adds HIP language support to CMake currently lives here:
https://gitlab.kitware.com/zackgalbreath/cmake/-/tree/add_hip_language
Documentation on how to build CMake from source can be found here:
https://cmake.org/install/
Our plan is to merge the add_hip_language branch to CMake proper after this HIP PR is merged.

And can you install samples(with readme) into hip/hip-lang/samples ?
After the patch enters our code base, our QA need test it

Sorry, but it's not clear to me what kind of samples you're looking for. Samples of what?

@zackgalbreath
It's very nice to know where to get that cmake patch !
Robert gave those samples to me for test .
If you have no these sample, please tell me how to send them back to you for submission.
If you have another set of samples, please submit them as well , if possible.    I think QA need them.

Hi @zackgalbreath
Could you change copyright header
Copyright (c) 2020 - Present Kitware, Inc, and Contributors.
into
Copyright (C) 2021 Kitware, Inc. All Rights Reserved.
Thanks!

Hi @zackgalbreath
Could you change copyright header
Copyright (c) 2021 - Present Kitware, Inc, and Contributors.
into
Copyright (C) 2021 Kitware, Inc. All Rights Reserved.
Thanks!

Sure, I can explicitly add "All Rights Reserved" to the copyright header.
Are you also asking me to remove the "and Contributors" part? This is normal for open source projects so we don't hvae to explicitly update the copyright each time somebody new touches the file.

I created a Docker image to demonstrate our CMake/HIP integration. Here's how to run it.

docker pull zackgalbreath/hip:ubuntu-rocm4.0_repro
docker run --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video zackgalbreath/hip:ubuntu-rocm4.0_repro

Here's a link to the Dockerfile for this image:
https://gitlab.kitware.com/zackgalbreath/rocm_cmake/-/blob/master/docker/ubuntu/rocm4.0_repro/Dockerfile
And here's the shell script that actually builds it:
https://gitlab.kitware.com/zackgalbreath/rocm_cmake/-/blob/master/docker/build_repro.sh

What is the relation between  hip-lang-config.cmake.in and the changes found in the add_hip_language branch of CMake? (I'm just trying to understand how the language support will come together. I'm just closely related to maintaining the CMake scripts of a handful of ROCm libraries and would like to know.)

What is the relation between  hip-lang-config.cmake.in and the changes found in the add_hip_language branch of CMake? (I'm just trying to understand how the language support will come together. I'm just closely related to maintaining the CMake scripts of a handful of ROCm libraries and would like to know.)

Good question!
We haven't merged the CMake side of this integration yet, but you can get a sneak peek of it here:
https://gitlab.kitware.com/zackgalbreath/cmake/-/tree/add_hip_language

You can bet I checked that branch and all the unit tests too. 😉 I can't wait to put it to use. I was just curious what the parts external to CMake are doing. Is this script relaying legacy find_package(hip) usage to the new internal machinery?

Any updates on this? Nearly two months of no activity. Have discussions migrated to a different issue/PR? There's only so much the target audience can take without bumping a thread. :)

Closing all existing pull requests that do not target the develop branch. In case this pull request is still valid, please rebase your changes against develop branch and resubmit.


Sequence update not as expected when table column with an ON UPDATE CURRENT_TIMESTAMP clause

updateTime datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
The "updateTime" column can not automatically updated to the current timestamp when I use sequence update.
But everything went well with db.update(Table)

could you share the problematic code snippet? I haven't reproduced the issue


Bundler 1.13.7 cannot resolve right relative paths (Test example attached)

Hello @segiddins ! Some time ago you helped with the same problem and this bug was fixed. But it happens again. Could you please take a look at it?
My first issue about this problem: https://github.com/bundler/bundler/issues/4966
The steps to reproduce
git clone git@github.com:the-forks/bundler_test_case.git
cd bundler_test_case/

bundler -v
Bundler version 1.13.7

bundle

Fetching gem metadata from https://rubygems.org/.
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using gem1 0.1.0 from source at `./../gems/gem1`
Using gem2 0.1.0 from source at `./../gems/gem2`
Using bundler 1.13.7

and bundle again
bundle

The path `/Users/the-teacher/gems/gem1` does not exist.

It must be /Users/the-teacher/bundler_test_case/gems/gem1
The problem is absolutely the same - in Gemfile.lock bundler builds path
PATH
  remote: ./../gems/gem2

instead of
PATH
  remote: ./gems/gem2

Thank you for help!

@segiddins tbh, I'm not sure it was fixed. I didn't check it right after release and the project where I need it was without activity for a couple of months. And now when I'm back to it I have problems again. =(

Can you please share the entire output of bundle env

@colby-swandale
$ bundle env
Environment

    Bundler   1.13.7
    Rubygems  2.5.1
    Ruby      2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
    GEM_HOME  /Users/the-teacher/.rvm/gems/ruby-2.3.0
    GEM_PATH  /Users/the-teacher/.rvm/gems/ruby-2.3.0:/Users/the-teacher/.rvm/gems/ruby-2.3.0@global
    RVM       1.27.0 (latest)
    Git       2.6.3

Bundler settings

    gem.coc
      Set for the current user (/Users/the-teacher/.bundle/config): "false"
    gem.mit
      Set for the current user (/Users/the-teacher/.bundle/config): "true"
    gem.test
      Set for the current user (/Users/the-teacher/.bundle/config): "false"

Gemfile

    source 'https://rubygems.org'

    # In this case Bundler does it wrong
    # It cannot find correct path to gems
    #
    # It works right in version 1.11.2, and it does it wrong in >= 1.12.0
    eval_gemfile "./Gemfiles/specific_1.rb"

    # WORKAROUND:
    #
    # If I put all my specific files in `root` folder than Bundler does it right
    # Looks like, in this case Bundler can build right paths
    #
    # eval_gemfile "./specific_3.rb"

Gemfile.lock

    PATH
      remote: ./../gems/gem1
      specs:
        gem1 (0.1.0)

    PATH
      remote: ./../gems/gem2
      specs:
        gem2 (0.1.0)

    GEM
      remote: https://rubygems.org/
      specs:

    PLATFORMS
      ruby

    DEPENDENCIES
      gem1!
      gem2!

    BUNDLED WITH
       1.13.7

Structure of the project
$ tree -L 2
.
├── Gemfile
├── Gemfile.lock
├── Gemfiles
│   ├── specific_1.rb
│   └── specific_2.rb
├── README.md
├── gems
│   ├── gem1
│   ├── gem2
│   └── gem3
├── specific_3.rb
└── specific_4.rb

@the-teacher Can you share specific_1.rb

@colby-swandale the test case in repo  https://github.com/the-forks/bundler_test_case
Please, just follow the steps described above on in the issue https://github.com/bundler/bundler/issues/4966 and you will reproduce the problem.

Thanks. I can replicate your issue in the latest release:
› bundle -v
Bundler version 1.13.7
› bundle
Fetching gem metadata from https://rubygems.org/.
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using gem1 0.1.0 from source at `./../gems/gem1`
Using gem2 0.1.0 from source at `./../gems/gem2`
Using bundler 1.13.7
Bundle complete! 2 Gemfile dependencies, 3 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
› bundle
The path `/Users/colby/Desktop/Projects/gems/gem1` does not exist.

However this does work as expected on 1.14.0.pre1:
› bundle -v
Bundler version 1.14.0.pre.1
› bundle
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using gem1 0.1.0 from source at `./../gems/gem1`
Using gem2 0.1.0 from source at `./../gems/gem2`
Using bundler 1.14.0.pre.1
Bundle complete! 2 Gemfile dependencies, 3 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
› bundle
Resolving dependencies...
Using gem1 0.1.0 from source at `./../gems/gem1`
Using gem2 0.1.0 from source at `./../gems/gem2`
Using bundler 1.14.0.pre.1
Bundle complete! 2 Gemfile dependencies, 3 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

@segiddins do you want to close this?

checked Bundler version 1.14.0.pre.1 👍
it works. Thanks! I'll wait for a new release


[5.0.0-RC4] Error creating bastion

When calling the oke module as such (I only included relevant bits for sake of brevity and to maie it easier to read):
module "oke" {
  source  = "oracle-terraform-modules/oke/oci"
  version = "5.0.0-RC4"
  allow_bastion_cluster_access = true
  create_bastion         = true
}

an error is returned on the following plan:
  # module.oke.module.bastion[0].oci_core_instance.bastion will be created
  + resource "oci_core_instance" "bastion" {
      + availability_domain                 = "JnWK:PHX-AD-1"
      + boot_volume_id                      = (known after apply)
      + capacity_reservation_id             = (known after apply)
      + compartment_id                      = "ocid1.compartment.oc1..xxx"
      + compute_cluster_id                  = (known after apply)
      + dedicated_vm_host_id                = (known after apply)
      + defined_tags                        = (known after apply)
      + display_name                        = "bastion-xxx"
      + extended_metadata                   = (known after apply)
      + fault_domain                        = (known after apply)
      + freeform_tags                       = {
          + "role"     = "bastion"
          + "state_id" = "xxx"
        }
      + hostname_label                      = (known after apply)
      + id                                  = (known after apply)
      + image                               = (known after apply)
      + instance_configuration_id           = (known after apply)
      + ipxe_script                         = (known after apply)
      + is_cross_numa_node                  = (known after apply)
      + is_pv_encryption_in_transit_enabled = (known after apply)
      + launch_mode                         = (known after apply)
      + metadata                            = {
          + "user_data" = "xxxREDACXTEDxxx"
        }
      + private_ip                          = (known after apply)
      + public_ip                           = (known after apply)
      + region                              = (known after apply)
      + shape                               = "VM.Standard.E4.Flex"
      + state                               = (known after apply)
      + subnet_id                           = (known after apply)
      + system_tags                         = (known after apply)
      + time_created                        = (known after apply)
      + time_maintenance_reboot_due         = (known after apply)

      + agent_config {
          + are_all_plugins_disabled = false
          + is_management_disabled   = false
          + is_monitoring_disabled   = false

          + plugins_config {
              + desired_state = "DISABLED"
              + name          = "Bastion"
            }
        }

      + create_vnic_details {
          + assign_ipv6ip          = (known after apply)
          + assign_public_ip       = "true"
          + defined_tags           = (known after apply)
          + display_name           = "bastion-xxx"
          + freeform_tags          = (known after apply)
          + hostname_label         = "b-xxx"
          + nsg_ids                = [
              + "ocid1.networksecuritygroup.oc1.phx.xxx",
            ]
          + private_ip             = (known after apply)
          + skip_source_dest_check = (known after apply)
          + subnet_id              = (known after apply)
          + vlan_id                = (known after apply)
        }

      + shape_config {
          + baseline_ocpu_utilization     = (known after apply)
          + gpu_description               = (known after apply)
          + gpus                          = (known after apply)
          + local_disk_description        = (known after apply)
          + local_disks                   = (known after apply)
          + local_disks_total_size_in_gbs = (known after apply)
          + max_vnic_attachments          = (known after apply)
          + memory_in_gbs                 = 4
          + networking_bandwidth_in_gbps  = (known after apply)
          + nvmes                         = (known after apply)
          + ocpus                         = 1
          + processor_description         = (known after apply)
          + vcpus                         = (known after apply)
        }

      + source_details {
          + boot_volume_size_in_gbs = "50"
          + boot_volume_vpus_per_gb = (known after apply)
          + source_id               = "ocid1.image.oc1.phx.xxx"
          + source_type             = "image"
        }

      + timeouts {
          + create = "60m"
        }
    }

With error being like:
│ Error: 400-InvalidParameter, Invalid instanceConfigurationId: null
│ Suggestion: Please update the parameter(s) in the Terraform config as per error message Invalid instanceConfigurationId: null
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_instance
│ API Reference: https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance
│ Request Target: POST https://iaas.us-phoenix-1.oraclecloud.com/xxx/instances
│ Provider version: 5.11.0, released on 2023-08-30.
│ Service: Core Instance
│ Operation Name: LaunchInstance
│ OPC request ID: xxx
│
│
│   with module.oke.module.bastion[0].oci_core_instance.bastion,
│   on .terraform/modules/oke/modules/bastion/compute.tf line 19, in resource "oci_core_instance" "bastion":
│   19: resource "oci_core_instance" "bastion" {

can you please try with RC-5?

Hi, we are getting close to release. Please can you confirm if this is still a problem with RC-5?


bug: ion-segment does not work correctly together with ion-toolbar

Bug Report
Ionic version:
[x] 5.x
Current behavior:
A page contains an ion-segment and is rendered into a router-outlet inside ion-content.
An ion-toolbar is changing the page to be rendered and the first time it renders the mentioned page, it correctly displays the checked ion-segment. However, as soon as navigating over the toolbar, when the page is opened again, it does not show the previous selected segment. This is because, the angular 'value' variables are not set on the ion-segment and its children, when the component is instantiated again.
Expected behavior:
The ion-segment should be working as expected and correctly style the previous selected segment.
Steps to reproduce:

Go To Tab1
Change selected segment
Go to Tab2
Go to Tab1 -> The ion-segment does not mark the, in step 2, selected segment.

Related code:
https://stackblitz.com/edit/ionic-v4-angular-tabs-ypoyb4

Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. The type of tabService.activeSegment is being set to a string, whereas you are asking Angular to interpret  the values in the segment buttons as integers using [value]="1". This will cause strict equality checks to fail because "2" (the string) does not equal 2 (the integer) when using ===.
To get around this, either cast tabService.activeSegment to an integer or remove the square brackets around value.

I have updated the stackblitz example to use a string instead of an integer. However, the problem is the same: When you change to tab two and return back to the initial tab, the active tab is no longer selected.

Sorry, what I meant was change the value on ion-segment-button to not use square brackets. It looks like you updated ion-segment to use square brackets.

 I've updated the example again to better depict our problem:
The values of the ion-segment-buttons are defined as an enum which we also use at several different places in our code. We would very much like to keep it like this. Also with Ionic 4 it worked perfectly fine.

In that case, you should do this.tabService.activeSegment = parseInt(event.detail.value) to change the active tab from a string to an integer.

The problem occurs always when Angular data-binding is used, it does not matter what data type we use. Here is an example with integers: https://stackblitz.com/edit/ionic-v4-angular-tabs-9ghx2b
We've already found a workaround, we just wanted to report this to help improve the code.

It looks like the underlying issue is that you are not switching tabs properly. Tabbed navigation should be using ion-tabs along with ion-tab-bar, but your application does not use that. Switching to use that format seems to resolve the issue for me (I was able to reproduce the behavior using the old format though).

Here is an example of our HTML using Angular routing
<ion-header>
	<ion-toolbar class="tab-bar">
		<ion-buttons>
			<ion-button class="tab-button" routerLink="tab1" queryParamsHandling="preserve">
				<ion-label>Tab One</ion-label>
			</ion-button>
			<ion-button class="tab-button" routerLink="tab2" queryParamsHandling="preserve">
				<ion-label>Tab Two</ion-label>
			</ion-button>
		</ion-buttons>
	</ion-toolbar>
</ion-header>
<ion-content>
        <router-outlet></router-outlet>
</ion-content>

in comparison to a solution with ion-tabs
<ion-tabs>
    <ion-tab-bar>
        <ion-tab-button tab="tab1">
            <ion-label>Tab One</ion-label>
        </ion-tab-button>
        <ion-tab-button tab="tab2">
            <ion-label>Tab Two</ion-label>
        </ion-tab-button>
    </ion-tab-bar>
</ion-tabs>

We know that the problem does not occur if we would use ion-tabs. However we don't want to use them for the following reasons:
1. Angular places the content of the router-outlet on the same level as the router-outlet where as Ionic places it within ion-router-outlet. We would like to follow Angular standards.
Angular
<router-outlet></router-outlet>
<our-component></our-component>

ion-tabs
<ion-router-outlet>
	<our-component></our-component>
</ion-router-outlet>

2. Ionic does not destroy components of inactive tabs. For our application lifecycle we depend on Angular's ngOnDestroy.

Open first tab:
Angular

<router-outlet></router-outlet>
<our-component-tab1></our-component-tab1>

ion-tabs
<ion-router-outlet>
	<our-component-tab1></our-component-tab1>
</ion-router-outlet>

Open second tab:
Angular

<router-outlet></router-outlet>
<our-component-tab2></our-component-tab2>

ion-tabs
<ion-router-outlet>
	<our-component-tab1 class="ion-page-hidden"></our-component-tab1>
	<our-component-tab2></our-component-tab2>
</ion-router-outlet>

Open first tab again:
Angular

<router-outlet></router-outlet>
<our-component-tab1></our-component-tab1>

ion-tabs
<ion-router-outlet>
	<our-component-tab1></our-component-tab1>
	<our-component-tab2 class="ion-page-hidden"></our-component-tab2>
</ion-router-outlet>

3. Changing tabs with ion-tabs does not preserve query params

Open first tab:
Angular
url: …/tab1?world=aworld&center=2600000,1200000&scale=2835
ion-tabs
url: …/tab1?world=aworld&center=2600000,1200000&scale=2835

Open second tab:
Angular
url: …/tab2?world=aworld&center=2600000,1200000&scale=2835
ion-tabs
url: …/tab2

Open first tab again:
Angular
url: …/tab1?world=aworld&center=2600000,1200000&scale=2835
ion-tabs
url: …/tab1?world=aworld&center=2600000,1200000&scale=2835

As far as we could observe, the problem with ion-segments always occurs when we use Angular's router-outlet instead of ion-router-outlet (we also use it when navigating over ion-menu).
Can you maybe explain why ion-router-outlet was implemented this way?