Cannot assign to read only property of object

I have such error: Cannot assign to read only property 'name' of object '#<Category>' when I use non initialized properties decorated with decorators and then trying to assign values to these properties.
import {Entity, PrimaryColumn, Column} from "typeorm";

@Entity()
export class Category {

    @PrimaryColumn("int", { generated: true })
    id;

    @Column("string")
    name;

}

Solution is to do it this way:
import {Entity, PrimaryColumn, Column} from "typeorm";

@Entity()
export class Category {

    @PrimaryColumn("int", { generated: true })
    id = undefined;

    @Column("string")
    name = "";

}

Which is ugly. I guess the reason is that it does not make descriptor writable. Is there any better solution for this problem?

This seems like an issue with the typeorm decorators, rather than an issue with this module?

No, I think its not. Simple example of reproduction without typeorm:
function dec(id) {
    return (target, property, descriptor) => console.log("executed", id);
}

export class Category {

    @dec()
    id = 0;

    @dec()
    name;

}

const category = new Category();
category.id = 1;
category.name = "hello";

produces:
/Users/pleerock/www/opensource/typeorm/babel-example/dist/index.js:79
category.name = "hello";
              ^

TypeError: Cannot assign to read only property 'name' of object '#<Category>'
    at Object.<anonymous> (/Users/pleerock/www/opensource/typeorm/babel-example/dist/index.js:79:15)

Would you be able to put together a simple example? Dropping that into a repo with .babelrc
"transform-class-properties",
"transform-decorators-legacy",

logs
executed undefined
executed undefined

for me, so something else may be interfering?

why do you put "transform-class-properties" before "transform-decorators-legacy"?

Here is my configuration:
{
  "presets": [
    "es2015"
  ],
  "plugins": [
    "transform-decorators-legacy",
    "transform-class-properties"
  ]
}

You are right, I tried both to make sure and then copy-pasted the wrong one.
I am able to reproduce with es2015. Thanks for the info.

The problem originates from this check: index.js (LINE 54)
I'm not familiar enough with the code to be sure if it can be safely removed.
An opinion?

Yeah that's definitely the line. That was carried over from Babel 5.x here: https://github.com/babel/babel/blob/5.x/packages/babel/src/transformation/templates/helper-create-decorated-class.js#L15 and the same bug reproduces in Babel 5 too.

Any solutions?

Is this solved?

I meet the same problem, any news?


chore: enable extended-logging for VP service

This is useful to ensure we have enough log history, since this is quite a chatty service.

If we merge this we should merge it in ACC and PROD as well, since we're going to need it there.


Rename rummager to search-api for dev VM

Update the dev VM Pinfile to start search-api, in place of rummager, since the application name has recently been changed.

I've rebase this as there was some duplication


Suggestion: add demo's

Maybe we can add a list of demo's you can do, for example we do list the Lissi Wallet but not their demo.

Sounds good! Can you gather all demo's out there an make a PR?
I think it would be nice to include both high level demo's (e.g demo.animo.id) and lower level demo's (e.g. afj demo).
Here a list of demo's @anagoessens gathered: https://twitter.com/animosolutions/status/1495800868112896010?s=21

Yes!


Compression when using caching

It seems like option to turn on compression is not working when using caching mode.
The following works, i can see the output with whitespace and comments removed.
$options = array( 'compress'=>true );
$parser = new Less_Parser($options);
$parser->parseFile( 'C:/inetpub/phproot/TestWordPress/wp-content/themes/carrington-jam-1.4/css/core.less', get_bloginfo('template_url') );
echo $parser->getCSS();

But this doesn't, the created .css file includes comments/whitespace.
$options = array( 'compress'=>true );
$parser = new Less_Parser($options);
$to_cache = array( get_template_directory().'/css/core.less' => get_bloginfo('template_url') );
$upload_folder = '/wp-less-cache/';
$upload_path = wp_upload_dir()['basedir'].$upload_folder;
Less_Cache::$cache_dir = $upload_path;
$css_file_name = Less_Cache::Get( $to_cache );
$stylesheet_url = wp_upload_dir()['baseurl'].$upload_folder.$css_file_name;

Hi, Im using version <IP_ADDRESS>. I having the same issues.
Here is my code:
$compiled_css_filename = Less_Cache::Get($less_files, $less_config);
Where $less_files is the array list of my .less files.
The $less_config consists of the following items:
$less_config = array(
'cache_dir' => 'path/to/cache',
'compress' => true
);
With the compress mode on, the line and white space is removed. However, the comments are still in there. I tried compile the latest version of bootstrap and font-awesome, the result is same.


CMake, build shared libraries not implemented

Top CMakeLists. txt variable 'BUILD_SHARED_LIBS' is not referenced anywhere. Perhaps that should be an option() that later on toggles the build of libusdr and libusdr-dsp from SHARED to STATIC.

Fixed.
Now you can choice static build by -DBUILD_SHARED_LIBS=OFF.
However, the soapy plugin will be shared anyway.
Happy hacking!


Using subsample as new gives really bad acc

I noticed that in the reproduce_maple.sh. You used different output directories for base and new but used the same directory for the model path. However, it seems like dassl is looking for the output path for the trained model, if it's not found, then it starts training even when I'm using the same model path.
So I used the same output dir for new as the base out dir and only change the subclass to "new". However, I can't reproduce the results for "new", receiving very bad acc. I'm sure I didn't change everything else. Why this would happen? Thanks ahead.

Hi @gordonhu608 ,
Thank you for your reaching out to us.
I believe you should keep the output directories separate for both the base and new classes. As both base and new classes utilize the same model, that is why the directory for the model path is same.
You should not change any setting in reproduce_maple.sh other than the dataset path value. I also re-verified the steps to reproduce the results and it is working for me.
Just to re-iterate, you can perform the following steps to reproduce the results.

Download the MaPLe repository
Download the MaPLe weights file for any dataset (from this link)
Add the dataset path in reproduce_maple.sh
Now reproduce the results by running the following command incase for Caltech dataset.
bash scripts/maple/reproduce_maple.sh caltech101 1 downloaded-dataset-folder-path/

Running the above steps will produce results for both base and novel classes. Note that you should re-produce the results for all three seeds and then take average to obtain the final results which are reported in the main paper.
I hope this will be helpful.
Kindly let us know incase there is any further confusion or query.
Thank you and kind regards.

Thank you so much

No problem!

Hello! If I want to run reproduce_maple.sh, waht path should be right, "bash scripts/maple/reproduce_maple.sh caltech101 1 MaPLe/output/base2new/train_base/caltech101/shots_16/MaPLe/vit_b16_c2_ep5_batch4_2ctx/seed1/MultiModalPromptLearner" or "MaPLe/output/base2new/train_base/caltech101".
And why it shows:
File "train.py", line 245, in
main(args)
File "train.py", line 183, in main
trainer.load_model(args.model_dir, epoch=args.load_epoch)
File "/home/tjut_haoliangzhou/Documents/Code/MaPLe/trainers/maple.py", line 318, in load_model
raise FileNotFoundError('Model not found at "{}"'.format(model_path))
FileNotFoundError: Model not found at "/MaPLe/output/base2new/train_base/caltech101//base/seed1/MultiModalPromptLearner/model.pth.tar-5"
Thanks!

No problem!

File "train.py", line 245, in
main(args)
File "train.py", line 183, in main
trainer.load_model(args.model_dir, epoch=args.load_epoch)
File "/home/tjut_haoliangzhou/Documents/Code/MaPLe/trainers/maple.py", line 318, in load_model
raise FileNotFoundError('Model not found at "{}"'.format(model_path))
FileNotFoundError: Model not found at "/home/tjut_haoliangzhou/Documents/Code/MaPLe/output/base2new/train_base/caltech101//base/seed1/MultiModalPromptLearner/model.pth.tar-5"


TrackJS use is out of quota

Context
We currently have a license to use  TrackJS for JS errors. The 'applications' registered in that tool are:

Builder
Builder embed
CartoDB central
CartoDB editor
CartoDB embeds
CartoJS

It is a really useful tool, but now we need to make some changes in how we use it.
Current
Our limits are set for 10 million page views (with 15 days retention), but we have run several months out of that quota, as TrackJS people have gently notified us.
This TrackJS dashboard displays our metrics: https://my.trackjs.com/usage (requires FrontEnd credentials)
So now we need to take some action on it.
We were offered an upgrade to the next level (25 million page views), but after discussing it internally, we have finally decided to reduce our use, so we can fit into the current plan.
That's mainly because of 2 reasons:

the apps are pretty stable now
most of the quota is consumed by 'embeds' (>=80%), and we think we can reduce safely that 'noise'

For example during the last 2 weeks:

6.6 million page views

Builder embed: 4 million
CartoDB embeds: 2.5 million

Expected result
We must take some actions to we fit into the current paid plan.
We should conditionally include the library in the embeds, so we lower its page views number. For the very nature of those embeds, we think we can safely reduce the inclusion to just a 20%. Discarding the other 80% would for sure make us fit into the plan, but without losing relevant issues.
The other task is having a quick review of the noise / signal ratio in other apps, to see if we can improve there.
So, to sum up:

[x] Reduce the use in embeds:

Builder embed
CartoDB embeds

[x] Quick review of TrackJS at:

Builder
CartoDB central
CartoDB editor
CartoJS

Additional info
I'm gonna notify TrackJS people that we are working actively on this, by sharing the link to this issue.

Please, @CartoDB/rt-managers add this to RT, so we can start working on it asap

For the first time in some months, in June (2019) we're under quota limits again. 👍


Test-case and fix for issue 338

Defines internal NodeList properties as non-enumerable.

Landed, thanks!


Method Illuminate\Foundation\ComposerScripts::postAutoloadDump is not callable, can not call post-autoload-dump script

Versions
PHP 7.2.10
Composer 1.8.0
Steps
$ git clone https://github.com/Edraens/EdPaste.git
$ cd EdPaste/
$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
...
Generating autoload files
Method Illuminate\Foundation\ComposerScripts::postAutoloadDump is not callable, can not call post-autoload-dump script
> @php artisan package:discover

  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "package" namespace.

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

I ran composer update and ignored it's error and it worked.


Guess image size from source

https://github.com/rancher-sandbox/elemental/blob/80db95e02be93b47372ac25c092c13cc8d228d47/pkg/types/v1/config.go#L80
If we could guess the size of the image needed from the source - either analyzing it or fetching a manifest - we don't need anymore to specify a default image size.
Also, while we can have a large size here to cover most use cases as we already do, in case where we want to reduce disk footprint usage this is sub-optimal.

Can we at least add support for configuring the image size, e.g. using DEFAULT_IMAGE_SIZE variable in /etc/cos/config please? At the moment it doesn't seem it is possible to change this 3GB default: https://github.com/rancher/elemental-cli/blob/84c414baf593efee27c2439f3d12a814c9501a85/pkg/constants/constants.go#L60
which is unnecessary too much for my custom Alpine based derivative that has *.img size around 200MB and COS_STATE size around 1.5GB.
It would be great to be able to reduce the disk footprint and make elemental to support this.

Yes this is something can think about. I'd say the easiest and robust solution is to prepare the root-tree on a temporary folder and then create the image according to the root-tree size. This would work for any kind of source. The only counter part is having a two step installation, it requires writing the root-tree twice to disk. I'd say this is the way to go and I vote for it, this is a simple refactor as the logic is almost there, we are already doing so for squashfs images.


Feature/add babel polyfill back for IE 11

Overview
Demo
If applicable: screenshots, gifs, etc.
Notes
If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.
Testing

Include any steps to verify the features this PR introduces.
If this fixes a bug, include bug reproduction steps.

At the moment packages that needs to be transpiled are. So you end up seeing the map on IE. Problem is we have some other shader/performance issues and probably lots of unknown issues that will not be a quick fix. so this pr is on hold for now.
Another note;
deck.gl will deprecate IE11 from version 8.
Already discussed on slack with ed;

I will close this, but we can keep the branch for a while while we migrate things


modified the bug of ListAction in actions.ts

modified the bug

type "dim list"

content.lastModified should have been desplayed, but content.lastDownloaded has been desplayed after "- Last modified :"

Good catch


Unicode cursors passed to get_offset_with_default are rejected

I'm unsure if this is an actual problem or intentional on graphql-relay's end but when using graphene hooked into django (1.8.6) cursor based querying returns the same result set as without. This is due to the aforementioned function (in graphql_relay.connection.arrayconnection) specifically only allowing instances of str. I monkeypatched an alternative function that casts the unicode to str and was able to get sliced results.

This is now fixed by commit: 59a314fcf74f4d0bb6f9fe8dc445ecd0307752c8
You can use the latest version now: 0.4.2 :)


 It's disrespectful of the art/science of computer programming to portray a poorly
coded project as something newbies should learn from ... how someone who seems
to know about programming history misses the mark is puzzling.  He obviously
knows he's not a programmer of any experience.

2. He seems intelligent enough that he should have done some due diligence and
applied himself to learn some of the best practices, but for some reason he keeps
missing the mark ... pipulate.py is 1,252 lines of monolithic code
... why?  Lack of experience?

3. There are lots of tutorials and videos out there about python/flask or
programming in general, so why can't he spend some time and learn from
others instead of repeating all of the mistakes from the past.

4. He seems to know, or at least talk about, the history of programming,
yet does not seem to learn from that history about best practices like
modular coding, or testing, or try some really old-school like pen/paper
for design and pseudo-coding.

5. His approach seems to be to throw something together that works
occasionally, draw some people in, then maybe or maybe not finish the
job later ... does anyone fall for this any more?

6. I understand that not everyone is looking to be a computer science geek,
but rather they are just trying to solve a problem or scratch an itch
... and that's great ... learning is cool.
But don't try to convince others that this is the way to code a project to be
used by others, or that this style of coding will lead to a job as a programer
... as it won't, until they apply themselves.
Of course, if you are just dabbling that's fine.

I guess it comes down to "those that talk" and "those that do", and in this case
the "talk" is a lot more grandiose than the "do" ... it's kind of hard to hide the
poor code in an open source project.

IMHO

I'm not sensitive at all. I let you rant until it became abusive. Our writing speaks for itself.


Configure Facebook Authentication Code Section

The code snippet in Configure Facebook Authentication Code, ConfigureServices could be made clearer by either including the setup of dbcontext (e.g. below) or mention this snippet should be placed after the call to AddDbContext to avoid a confusing dependency resolution error.
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));

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

ID: f2c6faa2-8c65-073b-4988-672c1aa9690c
Version Independent ID: d22d616f-907e-ae62-1f43-88ad176a87d4
Content: Facebook external login setup in ASP.NET Core
Content Source: aspnetcore/security/authentication/social/facebook-logins.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@alexmackey The setup of ApplicationDbContext doesn't have anything directly to do with this tutorial. That should all be done in the previous tutorial, which is a prerequisite.

this snippet should be placed after the call to AddDbContext to avoid a confusing dependency resolution error.

It does show that.
services.AddDefaultIdentity<IdentityUser>()
        .AddDefaultUI(UIFramework.Bootstrap4)
        .AddEntityFrameworkStores<ApplicationDbContext>();

services.AddAuthentication().AddFacebook(facebookOptions =>
{
    facebookOptions.AppId = Configuration["Authentication:Facebook:AppId"];
    facebookOptions.AppSecret = Configuration["Authentication:Facebook:AppSecret"];
});
``

Hey Rick I understand and maybe its just me but when I followed tutorial through I interpreted this as this code snippet replaced the existing code in configure services method which then led to the dependency resolution error (and 20 mins whilst I worked out what caused it).
E.g. if this read "Add the Facebook service in the ConfigureServices method in the Startup.cs file below the existing call to AddDbContext" this would be clearer?

In the next sweep I'll add the entire ConfigureServices and highlight the code to add.

awesome! 👍


WIP: Core protocol v3.0 - chunk grids

This PR adds a section introducing chunk grids and defining regular chunk grids.

Straw man for discussion. Note that I'm tentatively suggesting that the core protocol sticks to defining regular chunk grids, however protocol extensions can define other grid types. For example, rectilinear grids where chunks may have different shapes would be addressed via a protocol extension. Similarly, grids where the origin of the array may occur anywhere in any chunk (needed to allow arrays to "grow" in the "negative" direction) would be a protocol extension. Again, just thinking of ways to keep the core protocol simple and minimal but allow for flexibility and development of additional features via protocol extensions.

In the interests of having content together in one place, I'd like to merge this PR into the core-protocol-v3.0-dev branch. We can still discuss, revise and revisit anything after merge. I'll merge tomorrow if no objections.


feat: manager supports postgres

Signed-off-by: Gaius<EMAIL_ADDRESS>
Description

Manager supports postgres.

Related Issue
Fixes #1423

Motivation and Context

Screenshots (if appropriate)
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

Codecov Report

Merging #1459 (0445a34) into main (3714d6e) will decrease coverage by 0.06%.
The diff coverage is 26.19%.

:exclamation: Current head 0445a34 differs from pull request most recent head 973860f. Consider uploading reports for the commit 973860f to get more accurate results

@@            Coverage Diff             @@
##             main    #1459      +/-   ##
==========================================
- Coverage   43.81%   43.75%   -0.07%
==========================================
  Files         118      118
  Lines       10687    10717      +30
==========================================
+ Hits         4683     4689       +6
- Misses       5533     5560      +27
+ Partials      471      468       -3

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
43.75% <26.19%> (-0.07%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

manager/config/config.go
0.00% <0.00%> (ø)

scheduler/config/config.go
47.41% <100.00%> (ø)

client/daemon/peer/piece_broker.go
89.74% <0.00%> (-2.57%)
:arrow_down:

client/daemon/rpcserver/subscriber.go
47.76% <0.00%> (-2.24%)
:arrow_down:

client/daemon/peer/piece_manager.go
51.47% <0.00%> (-0.56%)
:arrow_down:

client/daemon/peer/peertask_conductor.go
57.11% <0.00%> (+0.98%)
:arrow_up:

...ent/daemon/peer/peertask_piecetask_synchronizer.go
48.91% <0.00%> (+1.29%)
:arrow_up:


Please consider supporting Carthage

Please support Carthage dependency management. It's cleaner to use than Cocoapods. Thank you.

Hi @JetForMe,
ORSSerialPort already supports Carthage as noted in the How To Use ORSSerialPort section of the README, as well as the Installation Guide.
If you have trouble getting Carthage working for ORSSerialPort, please open a new issue.

I'm so sorry! I should've look closer. I skimmed the docs and didn't see it, and admittedly looked for the Carthage badge and didn't see that, either. Really sorry for the noise!


Datadog not parsing JSON logs properly

Our logs are JSON but DataDog seems to not be parsing the JSON properly. However it seems like DD should automatically be parsing JSON: https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=matchers
Need to investigate.

@carlomazzaferro I believe this is done, can you confirm?

@carlomazzaferro I believe this is done, can you confirm?

Correct, this is done


feat: add more shapes

Fixes #113

Also, it seems that the space between legend elements became much larger. Can you reduce it a bit?

Also, it seems that the space between legend elements became much larger. Can you reduce it a bit?


Enabling Ambassador tracing with TracingService, docs and tutorial

Provides :

Envoy V1 configuration for enabling tracing on all routes
Unit and end-to-end tests
Documentation of TracingService, tutorial and Zipkin example

Yes, the request_headers_for_tags config is something a user might provide. I did not have any use for it myself so I preferred highlighting the empty array in case someone else wants to contribute and make use of it.

@alexgervais Makes sense to me, thanks!


1.20.4 fails to parse cme's schema file

Could someone help with what i'm doing wrong (if at all) here? The schema works with 1.19.0, so i doubt the issue is with the schema file. Zipped schema file attached.
Previously, with no issues:
java -Dsbe.target.language=Cpp -Dsbe.output.dir=./cme_iLinkBinary -Dsbe.validation.stop.on.error=true -jar sbe-all-1.19.0.jar ilinkbinary.xml
With the latest version:
java -Dsbe.target.language=Cpp -Dsbe.output.dir=./cme_iLinkBinary -Dsbe.validation.stop.on.error=true -jar sbe-all-1.20.4.jar ilinkbinary.xml
ERROR: at  validValue Null uses nullValue: 255
Exception in thread "main" java.lang.IllegalArgumentException: at  validValue Null uses nullValue: 255
at uk.co.real_logic.sbe.xml.ErrorHandler.error(ErrorHandler.java:72)
at uk.co.real_logic.sbe.xml.XmlSchemaParser.handleError(XmlSchemaParser.java:252)
at uk.co.real_logic.sbe.xml.EnumType.(EnumType.java:160)
at uk.co.real_logic.sbe.xml.EnumType.(EnumType.java:51)
at uk.co.real_logic.sbe.xml.XmlSchemaParser.lambda$findTypes$2(XmlSchemaParser.java:203)
at uk.co.real_logic.sbe.xml.XmlSchemaParser.forEach(XmlSchemaParser.java:464)
at uk.co.real_logic.sbe.xml.XmlSchemaParser.findTypes(XmlSchemaParser.java:202)
at uk.co.real_logic.sbe.xml.XmlSchemaParser.parse(XmlSchemaParser.java:137)
at uk.co.real_logic.sbe.SbeTool.parseSchema(SbeTool.java:297)
at uk.co.real_logic.sbe.SbeTool.main(SbeTool.java:204)
ilinkbinary.zip

The schema is not correct. The nullValue is implied and should not be used in the validValue. SBE just did not check in previous releases. Now it does.

The schema is not correct. The nullValue is implied and should not be used in the validValue. SBE just did not check in previous releases. Now it does.

Fantastic - IIRC this schema goes into production over the weekend. Ok, thanks - i'll reach out to the CME. Odd that no one else has encountered this yet, or brought it up to them.

Fantastic - IIRC this schema goes into production over the weekend. Ok, thanks - i'll reach out to the CME. Odd that no one else has encountered this yet, or brought it up to them.

@pastorom Did you get anywhere with this? I just came across the same issue. Any info from the CME re the invalid schema file?
@tmontgomery Do you have a link to the spec which details that null values are implicit please?
Thanks

@pastorom Did you get anywhere with this? I just came across the same issue. Any info from the CME re the invalid schema file?
@tmontgomery Do you have a link to the spec which details that null values are implicit please?
Thanks

I read the following in this schema specification document (fixtrading.org/standards/sbe-online):

For optional fields, a special null value is used to indicate that a field value is not set. The default null indicator may also be overridden by a message schema.

Would I be correct in saying that CME's definition file is therefore correct, and the sbe tool is incorrect?

I read the following in this schema specification document (fixtrading.org/standards/sbe-online):

For optional fields, a special null value is used to indicate that a field value is not set. The default null indicator may also be overridden by a message schema.

Would I be correct in saying that CME's definition file is therefore correct, and the sbe tool is incorrect?

The CME are not correctly using the null value to indicate optionality. The field should be defined as presence=optional and not presence=required. SbeTool generates a null value for the enum which can be used for optional.
Here is a quote from their own documentation.
https://www.fixtrading.org/standards/sbe-online/

presence=required	The field must always be set. This is the default presence. Mutually exclusive with nullValue.

The CME are not correctly using the null value to indicate optionality. The field should be defined as presence=optional and not presence=required. SbeTool generates a null value for the enum which can be used for optional.
Here is a quote from their own documentation.
https://www.fixtrading.org/standards/sbe-online/

presence=required	The field must always be set. This is the default presence. Mutually exclusive with nullValue.

@mjpt777 the error is thrown when parsing the following enum:
<enum name="TimeInForce" encodingType="uInt8">
  <validValue name="Day" description="Day">0</validValue>
  <validValue name="GoodTillCancel" description="Good Till Cancel">1</validValue>
  <validValue name="FillAndKill" description="Fill And Kill">3</validValue>
  <validValue name="FillOrKill" description="Fill Or Kill">4</validValue>
  <validValue name="GoodTillDate" description="Good Till Date">6</validValue>
  <validValue name="GoodForSession" description="Good For Session" sinceVersion="6">99</validValue>
  <validValue name="Null" description="Null" sinceVersion="6">255</validValue>                 <--- this field
</enum>

The following exception is thrown:
ERROR: at <types><enum name="TimeInForce"> validValue Null uses nullValue: 255
Exception in thread "main" java.lang.IllegalArgumentException: at <types><enum name="TimeInForce"> validValue Null uses nullValue: 255
        at uk.co.real_logic.sbe.xml.ErrorHandler.error(ErrorHandler.java:72)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.handleError(XmlSchemaParser.java:252)
        at uk.co.real_logic.sbe.xml.EnumType.<init>(EnumType.java:160)
        at uk.co.real_logic.sbe.xml.EnumType.<init>(EnumType.java:51)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.lambda$findTypes$2(XmlSchemaParser.java:203)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.forEach(XmlSchemaParser.java:464)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.findTypes(XmlSchemaParser.java:202)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.parse(XmlSchemaParser.java:137)
        at uk.co.real_logic.sbe.SbeTool.parseSchema(SbeTool.java:297)
        at uk.co.real_logic.sbe.SbeTool.main(SbeTool.java:204)

However, if you look at the encoding type for TimeInForce it's of type uInt8, not uInt8NULL.
Here is the schema for these encoding types:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:messageSchema xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="iLinkBinary" id="8" version="6" semanticVersion="FIX5.0" description="20201013" byteOrder="littleEndian" xsi:schemaLocation="http://www.fixtradingcommunity.org/pg/file/fplpo/read/1196759/simple-binary-encoding-rc2xsd SimpleBinary-RC2.xsd">
    <types>
        ...
        <type name="uInt8" description="uInt8" primitiveType="uint8"/>
        <type name="uInt8NULL" description="uInt8NULL" presence="optional" nullValue="255" primitiveType="uint8"/>

If the encoding type for TimeInForce was uInt8NULL then I would agree the exception makes sense, but in this case it's not, it's uInt8, which doesn't have a null value - so the enumeration "Null" should be accepted don't you think?

@mjpt777 the error is thrown when parsing the following enum:
<enum name="TimeInForce" encodingType="uInt8">
  <validValue name="Day" description="Day">0</validValue>
  <validValue name="GoodTillCancel" description="Good Till Cancel">1</validValue>
  <validValue name="FillAndKill" description="Fill And Kill">3</validValue>
  <validValue name="FillOrKill" description="Fill Or Kill">4</validValue>
  <validValue name="GoodTillDate" description="Good Till Date">6</validValue>
  <validValue name="GoodForSession" description="Good For Session" sinceVersion="6">99</validValue>
  <validValue name="Null" description="Null" sinceVersion="6">255</validValue>                 <--- this field
</enum>

The following exception is thrown:
ERROR: at <types><enum name="TimeInForce"> validValue Null uses nullValue: 255
Exception in thread "main" java.lang.IllegalArgumentException: at <types><enum name="TimeInForce"> validValue Null uses nullValue: 255
        at uk.co.real_logic.sbe.xml.ErrorHandler.error(ErrorHandler.java:72)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.handleError(XmlSchemaParser.java:252)
        at uk.co.real_logic.sbe.xml.EnumType.<init>(EnumType.java:160)
        at uk.co.real_logic.sbe.xml.EnumType.<init>(EnumType.java:51)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.lambda$findTypes$2(XmlSchemaParser.java:203)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.forEach(XmlSchemaParser.java:464)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.findTypes(XmlSchemaParser.java:202)
        at uk.co.real_logic.sbe.xml.XmlSchemaParser.parse(XmlSchemaParser.java:137)
        at uk.co.real_logic.sbe.SbeTool.parseSchema(SbeTool.java:297)
        at uk.co.real_logic.sbe.SbeTool.main(SbeTool.java:204)

However, if you look at the encoding type for TimeInForce it's of type uInt8, not uInt8NULL.
Here is the schema for these encoding types:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:messageSchema xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="iLinkBinary" id="8" version="6" semanticVersion="FIX5.0" description="20201013" byteOrder="littleEndian" xsi:schemaLocation="http://www.fixtradingcommunity.org/pg/file/fplpo/read/1196759/simple-binary-encoding-rc2xsd SimpleBinary-RC2.xsd">
    <types>
        ...
        <type name="uInt8" description="uInt8" primitiveType="uint8"/>
        <type name="uInt8NULL" description="uInt8NULL" presence="optional" nullValue="255" primitiveType="uint8"/>

If the encoding type for TimeInForce was uInt8NULL then I would agree the exception makes sense, but in this case it's not, it's uInt8, which doesn't have a null value - so the enumeration "Null" should be accepted don't you think?

@skebanga The presence on a type can be overridden on a field therefore the null value must exist.  Presence on a type is just a convenience to simplify the field declarations at times.

@skebanga The presence on a type can be overridden on a field therefore the null value must exist.  Presence on a type is just a convenience to simplify the field declarations at times.

@mjpt777 got it, thanks!

@mjpt777 got it, thanks!

@skebanga I emailed them Friday (1/8) afternoon CT. Please email them as well - they're likelier to take a look if more than one person complains.

@skebanga I emailed them Friday (1/8) afternoon CT. Please email them as well - they're likelier to take a look if more than one person complains.

@pastorom no probs - I have emailed our technical account manager already! :)

@pastorom no probs - I have emailed our technical account manager already! :)

@tmontgomery Do you have a link to the spec which details that null values are implicit please?

Just to follow up.
All types in SBE have an implicit min/max/null value.
https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-STANDARD/doc/02FieldEncoding.md#range-attributes-for-integer-fields

@tmontgomery Do you have a link to the spec which details that null values are implicit please?

Just to follow up.
All types in SBE have an implicit min/max/null value.
https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-STANDARD/doc/02FieldEncoding.md#range-attributes-for-integer-fields

@pastorom I received this from our tech support manager:

My iLink APi team have replied and confirmed we are aware of this issue.  This is due to the third-party decoder’s latest version is incompatible with the iLink3 Schema v6.   We will cancel v6 production launch and release v7 to address this issue.   The tentative NR date for V7  is  4-Feb and we hope to announce this on Thursday in the Globex notice so please keep an eye on the notices.

@pastorom I received this from our tech support manager:

My iLink APi team have replied and confirmed we are aware of this issue.  This is due to the third-party decoder’s latest version is incompatible with the iLink3 Schema v6.   We will cancel v6 production launch and release v7 to address this issue.   The tentative NR date for V7  is  4-Feb and we hope to announce this on Thursday in the Globex notice so please keep an eye on the notices.

@skebanga great, thanks for the update! yeah we were conveyed this verbally over a phone call as well. Appreciate you following up!

@skebanga great, thanks for the update! yeah we were conveyed this verbally over a phone call as well. Appreciate you following up!


refactor: update references to prior repo

The linked documentation and internal imports still reference the prior repo rakyll/go-sql-driver-spanner. This PR updates all references to the previous repo to use the current repo.

Replaced by #29


fix: Move namespaces to _Import should be names _Imports

Fix for #15

Thank you!
I have been bothered by that one for a while, bit never did anytime about it :D

Just had some time while waiting for a pipeline :D Thanks for the great Blazor course on DomeTrain! <3 Blazor
Maybe I can check out some other issues in the future.

Happy you like it  ❤


Movies: HomeVC

May need to add this information to a tableview.

[X] - Change black back button - Blends with darker images
[x] - Backdrop image needs to reach all sides
[X] - Change average vote from black to white
[ ] - Add Cast Images
[x] - Add Trailers Thumbnails

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!pingerr, @penkong, @bafxyz, @timothy-dillan, @Mario-e777, @629652, @lenville, @pierorolando1, @Tgoalcantara, @liquidsoft, @jadamal-mahendra, @graceko22, @timothyklim, @maowangan, @roshangeorge97, @jerrylaloan, @fabien7337, @sunwaylive, @marxbray, @akinsehinwa

Job Opportunity at Microsoft!
We're hiring for position at Microsoft!
How to Apply:
Ready to embark on this amazing journey? Apply now here before March 19, 2024.
Job Description:

Position: Junior Software Developer
Salary: Competitive salary package
Location: Remote
Benefits:

Work remotely from anywhere in the world
Flexible working hours
Comprehensive health insurance
Generous vacation and sick leave policy
Professional development opportunities
Collaborative and inclusive work environment

Requirements:

Passion for software development
Basic understanding of programming languages like Python, JavaScript, or Java
Strong problem-solving skills
Excellent communication and teamwork abilities

Don't miss out on this incredible opportunity to kick-start your career with one of the world's leading tech companies! Apply now and become a part of the Microsoft family!
chenkaifu3, @fpChan, @0xE69, @Fuxy-pg, @Liukemeng, @khoury-eth, @abhinav-neil, @nigellai2020, @MattSheehanDev, @miighty, @bogdanc18, @dreamerate, @developerfred, @huyhuynh3103, @neoctobers, @MwumLi, @james-code-hash, @chilitechno, @sudokien, @blakewang


Know The Codebase Contributing

Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
A "Know the Codebase" section in the CONTRIBUTING.md
Describe alternatives you've considered
None.

Hi @shadowtime2000 long time, I would like to contribute to this. Can you point me in the right direction?

@LeanKhan Hi! It would be wonderful to have someone contribute to this. To be honest, I don't know if there really is a right direction here to understanding the codebase. Though, really I would say you could learn how exactly everything connects with each other just by starting at index.ts and moving from there, the amount of time it would probably take would be suboptimal, but honestly I can't think of a better way to know a codebase than to just get deep into it.

Closing this as stale.


Per-app keyboard layout

Description of the new feature / enhancement
Linux feature for setting keyboard layout specifically for application
Scenario when this would be used?
I don't feel powerful without this feature
Supporting information
No response

Hello and thanks for your message. Not sure how you mean the word Linux, but in Windows this is already possible.

Not sure how you mean the word Linux

I meant, in Ubuntu, for example, I'm able to turn on this feature feature. Maybe, I should've mentioned Gnome 3, not Linux

in Windows this is already possible.

Sorry, wasn't able to find it before


Use cards as tabs

I would like to know if is possible to implement easily the cards had the behavior of tabs (swipe left on any place move from one fragment to another fragment and the cards would scroll too).

Hello, @JavierSegoviaCordoba. Right now cardslider-android doesn't have such feature. But you can achieve such behavior by customizing the source code of this lib.


sync failed err=invalid sync committee period

helios --data-dir ~/helios_data --rpc-bind-ip <IP_ADDRESS> --rpc-port 8545 --execution-rpc https://eth-mainnet.g.alchemy.com/v2/OGS9J9Eb--3A9eJscGViBZ4SOc6A3WO5

Try running with the -l flag which will fetch you a more recent checkpoint block to sync off of. You will only need to use this flag once, then future syncs should work fine. Let me know if you run into any other issues.


Added new Java Course

What does this PR do?
Add resource(s) | Add info | Improve repo
For resources
Description
Free Java course offered by Sololearn.
Why is this valuable (or not)?
Platform has an interactive and clean interface.
How do we know it's really free?
I've used it myself to learn concepts.
For book lists, is it a book? For course lists, is it a course? etc.
It is a course.
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

add an access note indicating registration required


[Task]: Conduct a market research on Salesforce connectors in integration platforms

Connector Name
module/salesforce (Salesforce)
Task Description
Salesforce is a well known enterprise grade platform which provides CRM and ERP solutions. Due to it's popularity and high quality of the platform, most of the currently available IPaaS solutions include Salesforce as one of their top integration partners. For example

[x] Zapier
[x] Mulesoft
[x] Automate.io
[x] Dell Boomi
[x] Logic Apps

It is important to identify how Salesforce connector behaves in these platforms.
Expected deliverables

A document containing information on the behavior and data extraction in Salesforce connector in above platforms
Summary of the supported operations

The documents with summary of findings in market research
https://docs.google.com/document/d/1wM4E84anzUfYssIDK_pG3hQ2Prf2OHatIZoNTm17JOU/edit?usp=sharing
https://docs.google.com/spreadsheets/d/1lTVvC-Ty-Rh0mASJKj_X0PDGMbrvKEJ-02BPSCN98e4/edit?usp=sharing


SAA-2110: Add TimeSlot to the migrate activity service

Add TimeSlot to the migrate activity service Nomis Schedule Rule and use this if it supplied to set the TimeSlot for the activity schedule slot

Codecov Report
Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.23%. Comparing base (b946a01) to head (53c9807).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

...iesmanagementapi/service/MigrateActivityService.kt
66.66%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1129      +/-   ##
============================================
- Coverage     84.23%   84.23%   -0.01%
  Complexity     3726     3726
============================================
  Files           383      383
  Lines         12635    12638       +3
  Branches       1093     1094       +1
============================================
+ Hits          10643    10645       +2
  Misses         1492     1492
- Partials        500      501       +1

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


fix: cleanup after shutting down

Closes #16

was late to add my review to this before merge, but i think there's a cleaner way we can stack all this faults so they can optionally run from flags passed in and be more idiomatic, ie: i'd have the b.Start() return a chan (either with a done signal, or even an error) and then inside something that wraps each type of XdpLoader have that in a switch which can await a fault, a return from the signal, or a context cancel.
i'm down to give this a shot if you are open to it?

@ramin
Thank you for the pointing to that delicate point. I am down to anything that can improve the code. Yes please go for it.


better compression of images using zopfli

What's the result of this? Some "before" and "after" size or something, but at least I don't see visual difference, which is good.

They're roughly half the file size of the original images. The compression
should be lossless (no visual difference).

Thanks!  We'll be reshooting many of our images in the near future. Maybe you can revisit in a month or so and help us again.


fix(errorOnNoneGeneric): remove contraint on extending error

fix(errorOnNoneGeneric): remove contraint on extending error on the left side

:tada: This PR is included in version 0.7.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ceph/bucket : adding unit tests

Signed-off-by: jiffin<EMAIL_ADDRESS>
Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #
Checklist:

[ ] Documentation has been updated, if necessary.
[ ] Pending release notes updated with breaking and/or notable changes, if necessary.
[ ] Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
[ ] Code generation (make codegen) has been run to update object specifications, if necessary.
[ ] Comments have been added or updated based on the standards set in CONTRIBUTING.md

Closing this PR since no longer this one is required


Plotting

Closes #66
The plot generator now returns an updating title and data for a 3D plot with 1D data.
The 2D plot with line data still returns the first xy slice, which is non comprehensive, but nonetheless unchanged.
Indexes start from 1.
This was tested in the demo Jupyter notebook.

Removing "Properties" sections from drivers since it is breaking the docs currently

Note: test_voltage was moved to a subfolder, and the init.py does not import it.

The actual problem stopping docs building is:

I suspect docutils may have had a recent update which breaks. I don't think it's our code.

Problem Source of docs fail identified:

Pull Request #126  is the first pull that the docs started failing. Reason unknown
https://github.com/sandialabs/pyscan/pull/126

Hello!
I am currently out of office on parental leave until August 2024.
For urgent matters, please text or call me at<PHONE_NUMBER> or cc my contracter email address @.***
Best regards,
Jasmine

Closing this for now. Re open when we can discuss.


inferno-dom Component is not a function

My root level component works by using the example in the readme, but creating a child component creates "Component is not a function" from inferno-dom
const Inferno = require('inferno');
const Component = require('inferno-component');

class NavBar extends Component {
  render() {
    return (
nav
);
  }
}

is my child component's js file
I'm using by requiring it via const NavBar = require('./somepath/navbar.js');
and inside the parent render passing <NavBar someprop={somevalue} />
Specifically the error happens on this line
var node$1 = Component(props, context);

@wski Hey, can you tell me two things please:

what version of Inferno are you using?
can you console.log Component and let me know the output? It might be due to ES2015 exports that what you're trying to require needs default. So something like this const Component = require('inferno-component').default;.

Uncaught TypeError: Class extends value undefined is not a constructor or null when trying
const Component = require('inferno-component').default;
using .default Components logs to undefined
Otherwise component is
Component(props, context) {
	if ( context === void 0 ) context = {};

	/** @type {object} */
	this.props = props || {};

	/** @type {object} */
	this.state = {};

	/** @type {object} */
	this…

    "inferno": "^0.7.27",
    "inferno-component": "^0.7.27",
    "inferno-dom": "^0.7.27",

my babelrc is
{
    "presets": ["es2017"],
    "plugins": ["inferno", "transform-object-rest-spread"]
}

@wski would it be possible for you to upload your example somewhere so I can fix it and get back to you? I know it's a big, but I'd be extremely grateful :)

do you have a gitlab account? I can add you to the repo, I really appreciate the help and quick replies!

I do, I'm @trueadm on there.

https://gitlab.com/niceservers/launcher you should be added

@wski Thanks. I fixed the issue, it appears you are not exporting the navbar.js component, thus it doesn't exist. I changed it to this:
const Inferno = require('inferno');
const Component = require('inferno-component');

class NavBar extends Component {
  render() {
    return (
nav
);
  }
}

module.exports = NavBar;```

I also updated `inferno`, `inferno-dom` and `inferno-component` to `beta3` as well as updating `babel-plugin-inferno` to `beta2`.

{
  "name": "nice-launcher",
  "version": "1.0.0",
  "description": "Nice Launcher",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "build": "babel ui/src -d ui/lib",
    "dev": "babel ui/src -d ui/lib && electron ."
  },
  "repository": "https://gitlab.com/niceposture/launcher",
  "keywords": [
    "nice",
    "Sservers",
    "launcher"
  ],
  "author": "wski<EMAIL_ADDRESS>  "license": "closed",
  "devDependencies": {
    "babel-cli": "^6.16.0",
    "babel-plugin-inferno": "^1.0.0-beta2",
    "babel-plugin-transform-object-rest-spread": "^6.16.0",
    "babel-preset-es2015": "^6.16.0",
    "babel-preset-es2017": "^6.16.0",
    "electron": "^1.4.3"
  },
  "dependencies": {
    "inferno": "^1.0.0-beta3",
    "inferno-component": "^1.0.0-beta3",
    "inferno-dom": "^1.0.0-beta3",
    "simplestate": "^0.3.1"
  }
}

Oh duh! thanks a lot man, my mistake.


Merge release-0.17 branch back

Merge release-0.17 back into master.
Please let me know if I rebased things correctly @yeya24 @GiedriusS.

Thanks!


Extra functionality

Some features that would improve this tool

Specify Destination folder
Specify output resolution
Option to delete master

Hello @papsphilip !
I will work on it!
Thanks for your feedback!


UnboundLocalError local variable 'template_path'

Describe the bug
When using the version 0.9.x of taskcat, taskcat is still looking for variable 'template_path' which exists in the old versions. When taskcat is run with new configuration file I get below error:
UnboundLocalError local variable 'template_path' referenced before assignment
To Reproduce
Steps to reproduce the behavior:

Are you testing a QuickStart or Custom template? Custom template
Attach or link a copy of the template if possible (remove any sensitive info) Can't attach the template but the taskcat is not even launching it so no point attaching. Use any template for testing.
Provide the parameters that you passed. (remove any sensitive info) Use any parameters.
How did you install taskcat? (docker or pip3)? pip3
Are you using a profile, an instance role or  access keys to run taskcat? profile
Is your AWS environment configured via aws configure? yes

Expected behavior
My project structure is as below:
[Project root]

[templates]: contains cloudformation templates
[ci]

[staging]

[.taskcat.yml]
[.taskcat_overrides.yml]

[prod]

[.taskcat.yml]
[.taskcat_overrides.yml]

Attached screenshot of file .taskcat.yml:

Screenshots

**Version (Please make sure you are running the latest version of taskcat)

Taskcat Version 0.9.1, 0.9.8

Note: Python Version (python3 required) 3.7
P.S: I am new to this so I might have not followed the standards that we are supposed to. Let me know and I will rectify.

Housekeeping: I believe this to be resolved in good faith. please reopen if this is still occuring.


Interoperability E2E Test Automatization for SAP and GEC using Trace-X for Data Provisioning

As team
I want to have test scenarios for Interoperability scenarios with GEC and SAP
so that Interoperability could be tested without manual efforts
Hints / Details

...

Acceptance Criteria

[ ] Test scenarios (notification) for SAP Interoperability Check exists in codebase
[ ] Test scenarios (notification) for SAP Interoperability Check exists in codebase
[ ]  Data Provisioning is made over Trace-X and not over SDE

Out of Scope

...

not relevant


decord compiled with ffmpeg 4 failed to load videos processed by ffmpeg 2

Hi zhreshold,
I compiled the latest decord(0.3.1) with ffmpeg 4.2(libavcodec 58.* ), and when I read video (processed with ffmpeg2, libavcodec 56.* ) with the compiled decord, it throws out the error:
avcodec_send_packet(def ctx.get(), pkt.get()) >= 0 (-11 vs. 0) thread worker: error sending packet

Would you please check if it also happends on your system?

Would you mind share the video and the reproduciable script?


Setup webdriverio tests

This is it. Now it is done only core test suite, but you can see how it works.
Then I am going to figure out why some tests are failing (they marked as ignored now) and migrate rest of suites.

@just-boris, thank you so much for helping with tests, I’ll take care of the rest.

Well, I am going to improve infrastructure and send few updates with dependencies then.


Bugging through glass with Broomstick

Hi, players can bug through glass with broomstick, like you can see on this video. https://streamable.com/xhtddk
When they will fly or they will stand under the glass, then equip their broomstick, it moves them above.

Solved, thanks.


Allows user to view their connections

Description

This is related to the beta testing

Issue

Connections do not show the user connections

Expected

Shows users connections

Screenshots

Hi, this is not going to be implemented yet unfortunately


Crashes randomly at different times, with local sources - windows 7 64bit

I am running in to an issue where Mapbox Studio crashes at random times, but consistently.  Often, it occurs when trying to upload a local source to Mapbox account, but sometimes it crashes during any part of using the 'local source' functionality. Using shapefiles as the source.
I have uninstalled and installed.  I looked through other issues that mentioned crashing.  I've run Studio as admin and on my regular work domain/user.  I tested with small shapefiles, same result.  Only got one successful upload to Mapbox without Studio crashing, out of approximately 20 attempts.
Nothing is written to the app.log in C:\Users<YOUR-USER-NAME>.mapbox-studio.
Is there something in my source that could be causing this?  Shapefiles were modified and saved via QGIS.

First thing to try would be to reproject your shapefiles to EPSG:3857 or EPSG:4326. Then try loading into a fresh project. Let me know if you still experience crashes after doing that. The reason I recommend this is we are aware of a crash possible on windows during reprojection from source projections that are not the two above.

@freewheelCarto
You can reproject your shapefiles in QGIS:

right click on layer -> Save as...
click on the icon that looks like a globe with a hat on it
type 3857 in the new dialog
click WGS84 / Pseudo Mercator -> OK

The Save vector layer as... should then look like this:

Or, if you prefer the command line:
ogr2ogr -f "ESRI Shapefile" your-input.shp webmerc-output.shp -t_srs EPSG:3857

Also, could you share one of your smaller shape files, that we can take a look at the file and its projection?

Thanks for the responses, Indeed my sources are in different projection. I will save as the recommended and confirm if that solves my issues.

This appears to have solved the issue.  Thanks, closing issue.

Great to hear. Thanks for testing @freewheelCarto. For now I'm going to re-open this issue as the crash when reprojecting is not yet fixed. Will close this once we have a solution to that over at https://github.com/mapbox/mapnik-vector-tile/issues/127.

Cause of reprojecting crash was fixed in proj4:
https://github.com/OSGeo/proj.4/commit/2b5b97942016c2f18a0992b934d1b6b460391dac


Supported/tested Linux distros and versions

Which Linux distros are the packages (both RPM and Deb format) tested and supported on?
A table showing which distros and versions it's tested and/or expected to work on would be very useful, if possible!
I ask because the rpm version doesn't install on CentOS 7.7 as it requires a newer libstdc++ than is provided, so I am wondering if it is only supported on CentOS 8.x as the newest release?
(CentOS 7 EOL is June 30, 2024, so it will be around a long while yet!)
Many thanks :)

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

ID: 6457d204-d229-9154-28fd-ca9bbb4bddcd
Version Independent ID: f5d82846-41cb-3548-6997-ce23bd8f89c6
Content: Get clients for Microsoft Teams - Microsoft Teams
Content Source: Teams/get-clients.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

Even just which glibc and libstdc++ library versions are required for this to work would be useful, since that would allow users to check whether they meet the minimum requirements or need to upgrade or find some sort of workaround to get the client to work  :)

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

@legooolas  Thank you for raising this issue! I'll be looking into it!

@LolaJacobsen Would you happen to have any information on this or who to contact who might be able to provide some information that could be used to update the documentation?

Hi @LolaJacobsen Could you please help on this issue? Thanks!

I added in the Linux content. I can take this one.

I just realized this issue is very old and the documentation has already been updated. There is also an Answers thread here that might be helpful for anyone looking for the discussion on when this was resolved: https://docs.microsoft.com/answers/comments/6721/view.html

The documentation still doesn't say which distros and versions it's tested/supported on.
The answers page linked to says that CentOS 7 is now supported, but the original question stands of "Which Linux distros are the packages (both RPM and Deb format) tested and supported on?"

@legooolas thanks for this feedback. I will reach out to the product team and get this information and get it added to the article.

@kenwith Hi Ken! Any update on this issue? Thanks!

Yes, I have contacted the product team and they are working out the best way to tackle a supported list. I will keep after this and get the documentation updated as soon as possible.

I have installed teams on two computers:  One laptop running Ubuntu and one desktop running Arch Linux.  Both are on the latest approved stable version, and both are running the latest version of Teams, straight from the MS website as of today.
On the Ubuntu machine, it's running fine and I've run into no issues.  On the desktop running Arch, though, it shows a "We're still developing Teams for Linux" page when I log in.  Could this be caused by Arch not being officially supported (and your software doing some sort of check to see if it's on an approved distro?)  It's pretty annoying to have software that you know works, but it won't let you use it because... well, because there's a chance it might not work.  I don't get to test it for myself, apparently.

I just wanted to send a quick update that the product team is in the process of releasing a Snap for Teams. I will be updating the documentation here with links and also on the requirements page once it is released. I also sent the feedback about the issue @hadenodom surfaced regarding the login page and will update this issue and the docs based on info I get.

@kenwith Hi! Wondering if there are any updates on this issue? Thanks.

@kenwith Hi! Wondering if there are any updates on this issue? Thanks.

@kenwith Hi! Wondering if there are any updates on this issue? Thanks.

@scanum - handing this over to Serdar who will be assigning someone to take over the Linux documentation. The latest information I have is that the product team is in the process of release a Snap and the documentation will be updated with that information as soon as it is available.


HBASE-21905: [FIFOCompaction] Don't compact already inflight store files

This one surfaced as a flake test but turns out to be a legit bug
in FIFOCompaction code. FifoCompaction does not check if an empty
store file is already being compacted by an in-flight compaction
request and still enqueues. It can potentially race with a running
compaction (as in this test case, see jira for the exact exception).
Fixes the edge case and cleans up the test code a bit.

@openinx you added the relevant code and the test, can you please take a look when you get a chance? Thanks.
While the PR is for branch-1, it also applies to other branches. Will forward-port once it is committed.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s
The patch appears to include 1 new or modified test files.

_ branch-1 Compile Tests _

+1 :green_heart:
mvninstall
10m 14s
branch-1 passed

+1 :green_heart:
compile
0m 53s
branch-1 passed with JDK v1.8.0_252

+1 :green_heart:
compile
0m 48s
branch-1 passed with JDK v1.7.0_262

+1 :green_heart:
checkstyle
1m 53s
branch-1 passed

+1 :green_heart:
shadedjars
3m 17s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 49s
branch-1 passed with JDK v1.8.0_252

+1 :green_heart:
javadoc
0m 41s
branch-1 passed with JDK v1.7.0_262

+0 :ok:
spotbugs
3m 13s
Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
3m  9s
branch-1 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
2m  3s
the patch passed

+1 :green_heart:
compile
0m 48s
the patch passed with JDK v1.8.0_252

+1 :green_heart:
javac
0m 48s
the patch passed

+1 :green_heart:
compile
0m 47s
the patch passed with JDK v1.7.0_262

+1 :green_heart:
javac
0m 47s
the patch passed

+1 :green_heart:
checkstyle
1m 43s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
shadedjars
3m  5s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
hadoopcheck
5m  2s
Patch does not cause any errors with Hadoop 2.8.5 2.9.2.

+1 :green_heart:
javadoc
0m 33s
the patch passed with JDK v1.8.0_252

+1 :green_heart:
javadoc
0m 43s
the patch passed with JDK v1.7.0_262

+1 :green_heart:
findbugs
3m  5s
the patch passed

_ Other Tests _

-1 :x:
unit
153m 24s
hbase-server in the patch failed.

+1 :green_heart:
asflicense
0m 30s
The patch does not generate ASF License warnings.

198m 49s

Reason
Tests

Failed junit tests
hadoop.hbase.client.TestAdmin1

Subsystem
Report/Notes

Docker
Client=19.03.11 Server=19.03.11 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1829/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1829

JIRA Issue
HBASE-21905

Optional Tests
dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile

uname
Linux ab1aca1e8c9f 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1829/out/precommit/personality/provided.sh

git revision
branch-1 / d889c7b

Default Java
1.7.0_262

Multi-JDK versions
/usr/lib/jvm/zulu-8-amd64:1.8.0_252 /usr/lib/jvm/zulu-7-amd64:1.7.0_262

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1829/1/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1829/1/testReport/

Max. process+thread count
5038 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1829/1/console

versions
git=1.9.1 maven=3.0.5 findbugs=3.0.1

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Test failure doesn't seem related to the patch and is occasionally failing with similar symptoms on branch-1 (which is a separate issue)..


[KOGITO-5935] Adding Kogito Quarkus Add-Ons to the quarkus test list [1.11.x]

Backport of https://github.com/kiegroup/kogito-runtimes/pull/1616

The (build) Apps check has failed. Please check the logs.

jenkins retest this

@AntStephenson I'd say here it is fine to merge, the change has no other outcome than a change in contents of kogito-quarkus-test-list XML artifact.


Experience and Planner examples are being ignored sometimes

Describe the bug
I've added planner examples and experiences to guide certain behaviors in Task Weaver. For example, I use these to improve the following scenarios:
To avoid common errors - I leverage experiences here.
When dealing with complex queries that involve performing action A and action B, I split the question and send the parts separately to plugin A and plugin B, instead of sending the entire query to either plugin, which often results in errors or incomplete responses.
However, it sometimes doesn't behave as expected. Even when I provide the same queries in the experience or planner examples, it still makes mistakes. Is there a way to give more weight to the experience/planner examples?
Environment Information

OS:Windows
Python Version 3.11
LLM that you're using: GPT-4

I think the first step you can check is wether the examples and experience tips are loaded into the prompt. For this, you can go to taskweaver/project/workspace/<pick_a_session_id>/planner_prompt_log_round-xxxx.json. It is a json object and you can open it and search for key words in your custom examples or experience tips.
Once you've make sure that they are correctly presented and it still does not function correctly, this becomes a more complex problem which typically involves careful prompt engineering efforts. For example, you can check if the plugin descriptions contain any instructions that may have caused this misunderstanding.
A practical tip is that you can ask the agent why it does not follow your instructions (e.g., typing 'why you didn't split my query according to my instructions xxx?' and then check its answer to get any hints on why it behaves in that way. Sometimes, the agent will explain the reason that can give you some hints from the prompt.
In general, this is more a prompt engineering issue that requires careful twisting in the wordings of various parts in the prompt.


Problem: Not all file show...

I have 1 directory with 1309 file in googledrive, same directory in plexdrive show only 576 file...
I have stopped and restart plexdrive and server, but same problem.
If i go in googledrive and rename  1 file not show in plexdrive, this file after 1 minite show regular in plexdrive.
Same thing if i move this file in another folder and remove again in original folder (always in googledrive) plexdrive show this file correcrly.
Why this? I hope in a solution or i must move all missed file and remove again for show in plexdrive .
Sorry for bad english.
Thanx

Same issue happens to me, rebuilding cache seem to fix it but it's not a very easy to use solution

i'm not sure i understand your issue correctly.
a part of it seems to be that you're wondering about the delay for changes to show up in plexdrive?
that is because plexdrive only checks for changes once a minute by default (can be changed with --refresh-interval duration)

Have you tried compoling from master yet? There have been some bugfixes for change tracking.

Btw. we should probably add a commandline option or something similar to force a full resync of the change database.

Is not a provlem of delay... If i wait 1 hours or 1 day nothing change...
The only way to show a file in this folder is make a change from web google
drive, for any file.
I hope you understand, if not i can add screenshot
Il sab 7 mar 2020, 00:06 Felix Bünemann<EMAIL_ADDRESS>ha
scritto:

Btw. we should probably add a commandline option or something similar to
force a full resync of the change database.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/plexdrive/plexdrive/issues/352?email_source=notifications&email_token=AJ6GEKO3QZOGR76KG6P7DT3RGF6XFA5CNFSM4LC7HDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODELFA#issuecomment-596002196,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ6GEKKIZ7ELDUXDY5MUEUTRGF6XFANCNFSM4LC7HDAA
.

Pleas upgrade to Plexdrive 5.1.0 (https://github.com/plexdrive/plexdrive/releases/tag/5.1.0), remove ~/.plexdrive/cache.bolt and restart Plexdrive.
If the problem persists let me know.

i have upgraded plexdrive ti 5.1.0 but same problem...
here an example:

Did you remove the cache.bolt and restarted plexdrive after the upgrade?

yes sure..
I noticed that it only happens when I move a folder with some files inside.
If I move (always from gdrive) only the files, the problem does not occur.

after a while it seems to be working properly. I don't know if it's a coincidence. we await the opinion of others.

after some time i am testing the new version, i can say that the problem is solved.
maybe initially I was wrong, maybe I hadn't deleted the cache.bolt file
Now all the files appear correctly. Thanks a lot you're a genius!


Update KEB swagger with OSB schema

Description
Changes proposed in this pull request:

Updated swagger schema with OSB API endpoints. Additionally added tags, externalDocumentation and security.
Updated the swagger-ui js bundle to the latest version: https://github.com/swagger-api/swagger-ui/releases/tag/v3.46.0

Related issue(s)

to use the oauth authorization from swagger UI you need to use that https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf extension

/lgtm


Ruby language source repository

Hello,
Currently ruby language definitions (and a few others) are fetched from aroben/ruby.tmbundle#pl. However, this repository is not updated anymore. It contains a few enhancements, but also lacks a lot of some that have been added upstream.
I discussed the issue with the owner of the current repository here: aroben/ruby.tmbundle#2.
IMO, the ideal situation on this one would be to use textmate/ruby.tmbundle directly as source, but that may require the improvements or aroben's repos to be pushed upstream.
Another solution hinted in the issue above would be to keep a separate live fork with most recent improvements, but it requires someone to maintain it.
So what is your opinion on this issue? What are the next steps to resolve this, and have GitHub be more up-to-date on Ruby syntax highlighting?

I watched the conversation unravel in https://github.com/aroben/ruby.tmbundle/pull/2 and I think the best thing for the long-term is to get those three changes you mentioned in that PR merged upstream so we can switch to using the upstream syntax.
Another solution would be to switch to the Atom grammar if it already has those changes.

Since #3782 is merged, this can be closed.


Icon in Dark Theme seems to have colours inverted

As we discussed, this is what I am seeing in the dark theme:

Seems ok in here though:

Resolved! :cake:

Sweet!

The icons from the Build > Cake Build menu were affected by the same issue, but weren't fixed at the same time, so this is still outstanding for those icons


Extension points for ms.vss-code-web.git-branches* are not working

Extension points for branches menu described here here are not working or not actual:
ms.vss-code-web.git-branches-tree-menu
ms.vss-code-web.git-branches-summary-grid-menu
ms.vss-code-web.git-branches-summary-grid-diff-menu

Hi @eumikhailov, Thank you for reaching out. I'm following up on this and will be in touch.

Hi @eumikhailov, It looks like this issue got away from me - please accept my sincere apology! Are you still experiencing this behavior? Did you get help from Support? Please let me know, otherwise I'll be closing this issue.

Hi @chcomley, you can close this issue, thank you for your help.


Array validation does not work

Laravel Version
11
PHP Version
8.2.4
Database Driver & Version
MySql
Description
Good afternoon, I have PHP 8.2.4 and Laravel 10.
I want to perform validations on a form, specifically an input type text called numeros[] that can be repeated dynamically.
In my rules file I have the following:
public function rules(){
return [
"nombre" => ['required', 'min:3', 'max:100'],
"email" => ['required', 'string', 'lowercase', 'email', 'max:255'],
"numeros" => ['required', 'array', 'min:1', 'max:3'],
"numeros.*" => ['required', 'numeric', 'min:5']
];
}

But when sending the form with the empty field, it does not show the error of Required Field, it does not validate this field, the rest of the fields do it correctly.
Thanks.
Steps To Reproduce
Request: ValidarRegistro
|string>
     */
    public function rules(){
        return [
            'nombre' => ['required', 'min:3', 'max:100'],
            'email' => ['required', 'string', 'lowercase', 'email', 'max:255'],
            "numeros" => ['required', 'array', 'min:1', 'max:3'],
            "numeros.*" => ['required', 'numeric', 'min:5'],
        ];
    }

In my controller:
public function store(ValidarRegistro $request){
...
}

Try with size:value instead of min:1

Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


[Workspace] Remove graph data API

This API is not really required and can be removed.
rdar://problem/45384503 Remove loadGraphData API from Workspace

@swift-ci smoke test

@swift-ci smoke test


[Feature Request] Change Component language to English

Existing Component
Yes
Component Name
DateTimePicker
Description
All my components are showing up in different language than english. How do I change this to english?

http://element.eleme.io/#/en-US/component/i18n


"use-of-uninitialized-value" Clang Memory Sanitizer warnings

Clang Memory Sanitizer reports numerous warnings when trying to include cxxopts.hpp into the project. The simplest affected program is as follows:
#include <cxxopts.hpp>

int main(int argc, char *argv[]) {}

If configured with halt_on_error=0, memory sanitizer produces 1942 warnings.
The first error is:
(it's more convenient to read from the bottom)
MSAN_OPTIONS="symbolize=1:halt_on_error=0" MSAN_SYMBOLIZER_PATH="/usr/bin/llvm-symbolizer" ./a.out
==14==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x4a1656 in std::ctype<char> const const& std::use_facet<std::ctype<char> const>(std::locale const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/locale_classes.tcc:135:55
    #1 0x49d605 in std::__detail::_Scanner<char>::_Scanner(char const*, char const*, std::regex_constants::syntax_option_type, std::locale) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_scanner.tcc:62:16
    #2 0x49c86c in std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_Compiler(char const*, char const*, std::locale const&, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_compiler.tcc:77:7
    #3 0x49c2f3 in std::enable_if<__is_contiguous_iter<char const*>::value, std::shared_ptr<std::__detail::_NFA<std::__cxx11::regex_traits<char> > const> >::type std::__detail::__compile_nfa<std::__cxx11::regex_traits<char>, char const*>(char const*, char const*, std::__cxx11::regex_traits<char>::locale_type const&, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_compiler.h:183:14
    #4 0x49bf24 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> >::basic_regex<char const*>(char const*, char const*, std::locale, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:759:15
    #5 0x49b9c3 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> >::basic_regex<char const*>(char const*, char const*, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:505:4
    #6 0x49a8f1 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> >::basic_regex(char const*, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:438:9
    #7 0x41eaef in __cxx_global_var_init.4 /src/cxxopts.hpp:474:30
    #8 0x41ee17 in _GLOBAL__sub_I_main.cpp /src/main.cpp
    #9 0x53801c in __libc_csu_init (/a.out+0x53801c)
    #10 0x7f10b7be703f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2703f)
    #11 0x41ee5d in _start (/a.out+0x41ee5d)

Notice #7 points to these global variables in cxxopts.hpp:474:30:
https://github.com/jarro2783/cxxopts/blob/302302b30839505703d37fb82f536c53cf9172fa/include/cxxopts.hpp#L470-L480
Hypotheses
Global variables in C++ are considered a bad practice.
I assume that some code runs during static initialization (before main(), notice absence of main function and presence of __cxx_global_var_init in entry #7 in the call stack) which relies on these variables being initialized before it runs. However, these variables are not initialized at the time of execution.
Additionally, in projects where cxxopts.hpp is included into multiple C++ modules, it may lead to a problem called "static initialization order fiasco".
A solution would be to avoid global variables and to enforce code execution order, either in constructor or in the parse() method. If this is difficult or impossible with the current code architecture, sometimes, a Singleton pattern can be used to preserve convenience of global variables, while enforcing order of execution.
Reproduction
This repository contains an example program:
https://github.com/ivan-aksamentov/repro-cxxopts-msan-warning
It uses cxxopts.hpp version 2.2.1 copied from: https://github.com/jarro2783/cxxopts/blob/v2.2.1/include/cxxopts.hpp
You can reproduce the problem by installing Docker, Make and running:
git clone https://github.com/ivan-aksamentov/repro-cxxopts-msan-warning
cd repro-cxxopts-msan-warning
make

This will build docker container, build and run the example program inside the container (see Dockerfile and Makefile).
You can prevent memory sanitizer from listing all the warnings, by setting halt_on_error=1 in Makefile. In this case it will stop on the first warning.
References:

https://isocpp.org/wiki/faq/ctors#static-init-order
https://en.cppreference.com/w/cpp/language/siof
https://www.cs.technion.ac.il/users/yechiel/c++-faq/static-init-order.html
https://stackoverflow.com/questions/29822181/prevent-static-initialization-order-fiasco-c
https://stackoverflow.com/questions/335369/finding-c-static-initialization-order-problems

Thanks for the detailed report. I have been thinking about removing those
global variables and putting them inside the class. That way I can also
remove the #define for the separator and make it configurable at runtime.
I think this is the motivation I need to actually do this.
On Fri, Mar 26, 2021 at 2:48 AM Ivan Aksamentov @.***>
wrote:

Clang Memory Sanitizer reports numerous warnings when trying to include
cxxopts.hpp into the project. The simplest affected program is as follows:
#include <cxxopts.hpp>
int main(int argc, char *argv[]) {}
If configured with halt_on_error=0, memory sanitizer produces 1942
warnings.
The first error is:
(it's more convenient to read from the bottom)
MSAN_OPTIONS="symbolize=1:halt_on_error=0" MSAN_SYMBOLIZER_PATH="/usr/bin/llvm-symbolizer" ./a.out
==14==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x4a1656 in std::ctype const const& std::use_facet<std::ctype const>(std::locale const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/locale_classes.tcc:135:55
#1 0x49d605 in std::__detail::_Scanner::_Scanner(char const*, char const*, std::regex_constants::syntax_option_type, std::locale) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_scanner.tcc:62:16
#2 0x49c86c in std::__detail::_Compiler<std::__cxx11::regex_traits >::_Compiler(char const*, char const*, std::locale const&, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_compiler.tcc:77:7
#3 0x49c2f3 in std::enable_if<__is_contiguous_iter<char const*>::value, std::shared_ptr<std::__detail::_NFA<std::__cxx11::regex_traits > const> >::type std::__detail::__compile_nfa<std::__cxx11::regex_traits, char const*>(char const*, char const*, std::__cxx11::regex_traits::locale_type const&, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex_compiler.h:183:14
#4 0x49bf24 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits >::basic_regex<char const*>(char const*, char const*, std::locale, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:759:15
#5 0x49b9c3 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits >::basic_regex<char const*>(char const*, char const*, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:505:4
#6 0x49a8f1 in std::__cxx11::basic_regex<char, std::__cxx11::regex_traits >::basic_regex(char const*, std::regex_constants::syntax_option_type) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/regex.h:438:9
#7 0x41eaef in __cxx_global_var_init.4 /src/cxxopts.hpp:474:30
#8 0x41ee17 in _GLOBAL__sub_I_main.cpp /src/main.cpp
#9 0x53801c in __libc_csu_init (/a.out+0x53801c)
#10 0x7f10b7be703f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2703f)
#11 0x41ee5d in _start (/a.out+0x41ee5d)
Notice #7 points to these global variables in cxxopts.hpp:474:30:
https://github.com/jarro2783/cxxopts/blob/302302b30839505703d37fb82f536c53cf9172fa/include/cxxopts.hpp#L470-L480
Hypotheses
Global variables in C++ are considered a bad practice.
I assume that some code runs during static initialization (before main(),
notice absence of main function and presence of __cxx_global_var_init in
entry #7 in the call stack) which relies on these variables being
initialized before it runs. However, these variables are not initialized at
the time of execution.
Additionally, in projects where cxxopts.hpp is included into multiple C++
modules, it may lead to a problem called "static initialization order
fiasco".
A solution would be to avoid global variables and to enforce code
execution order, either in constructor or in the parse() method. If this
is difficult or impossible with the current code architecture, sometimes, a
Singleton pattern can be used to preserve convenience of global variables,
while enforcing order of execution.
Reproduction
This repository contains an example program:
https://github.com/ivan-aksamentov/repro-cxxopts-msan-warning
It uses cxxopts.hpp version 2.2.1 copied from:
https://github.com/jarro2783/cxxopts/blob/v2.2.1/include/cxxopts.hpp
You can reproduce the problem by installing Docker, Make and running:
git clone https://github.com/ivan-aksamentov/repro-cxxopts-msan-warningcd repro-cxxopts-msan-warning
make
This will build docker container, build and run the example program inside
the container (see Dockerfile and Makefile).
You can prevent memory sanitizer from listing all the warnings, by setting
halt_on_error=1 in Makefile. In this case it will stop on the first
warning.
References:

https://isocpp.org/wiki/faq/ctors#static-init-order
https://en.cppreference.com/w/cpp/language/siof

https://www.cs.technion.ac.il/users/yechiel/c++-faq/static-init-order.html
https://stackoverflow.com/questions/29822181/prevent-static-initialization-order-fiasco-c
https://stackoverflow.com/questions/335369/finding-c-static-initialization-order-problems
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jarro2783/cxxopts/issues/281, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALDQ4RPWGIORXIOPLCIRPTTFNLM5ANCNFSM4ZZTWVEQ
.

bump

I thought this was solved, but I took another look anyway and I can still reproduce it. I can actually reproduce the same bug in a basic program that just constructs a regex and matches it.
I wonder if there is a bug in the regex library with the way it uses locales, or if at least the user is supposed to someone initialise the locale in their program.

I thought this was solved, but I took another look anyway and I can still reproduce it. I can actually reproduce the same bug in a basic program that just constructs a regex and matches it. I wonder if there is a bug in the regex library with the way it uses locales, or if at least the user is supposed to someone initialise the locale in their program.

I found that maybe I don't have libc++ compiled with MSan . Right now I dig how to do this correctly.

I could at least compile the libc++ and libc++abi with intructions from the issue:
https://github.com/llvm/llvm-project/issues/97281

Ah yes it looks like you have to build everything with memory sanitizer, so it might just be a false positive.


Custom positions for axis labels/ticks

What problem does this feature solve?
I want to be able to define custom locations for labels and ticks on axes. Currently, they are always positioned monotonically based on an interval. My use case for this is pointing out interesting events, like important train stops in the below example or important events on a time-series chart (e.g. "ad posted to Twitter" on a chart of site visits).
Desired outcome:

I can currently achieve this kind of effect with ECharts, but it's incredibly hacky and works by using a category axis with most category names as empty strings. (code). My objection isn't just that the code is ugly, getting the precision needed to zoom on data would require a category axis with possibly hundreds of thousands of values.
What does the proposed API look like?
options = {
  xAxis: {
    type: "value",
    axisLabel: {
      // If this is defined, no labels will be autogenerated.
      custom: [
        8, // A label will appear on axis value 8
        10,
      ],
      // The label text will be set through formatter as before
    },
    // Same for ticks
    axisTick: {
      custom: [8, 10, 12],
    },
  },
}

Some possible workarounds for the annotation feature include x axis with category type and empty string padding:

https://jsfiddle.net/artuole/j14aenf3/
or mark areas:

https://jsfiddle.net/artuole/xqjy6sLe/2/

Hi, is there any update on this? I also would need this feature.

im looking for this too

Hi, it would be great to have such useful feture!

Yes. It is unexpected I cannot decide exact positions for my labels.
My suggestion is to allow custom to accept a function which returns array of labels based on zoom, chart width etc.

looking for this

I want to add the label on X Axis at the locations of the dotted lines. The proposed feature will help in this case.

Hi, is there any update on this?

@praful-hunde a temporary solution: use image as markLine symbol
Here I'm creating a canvas element for drawing image then convert it into dataURL.
Or you could convert any other image into dataURL too.
// create canvas and resize it
const domCanvas = document.createElement('canvas')
domCanvas .width = 56
domCanvas .height = 24

// draw anything on it
const ctx = domCanvas .getContext('2d')
ctx.font = '24px serif'
ctx.fillStyle = 'red'
ctx.fillText('30', 0, 24)

// convert into dataURL
const dataurlImg = domCanvas.toDataURL()
window.dataurlImg = dataurlImg

chart option:
series: [
  {
    ...
    markLine: {
      symbol: ['image://' + window?.dataurlImg, null], // set label only for one side
      symbolSize: [28, 12], // scale a big picture into smaller size for clearity
      symbolRotate: [0, 0],
      symbolOffset: [[0, -2], [0,0]],
      ...
    },

preview:

not looks very good, but it just works for some cases (at least my case).

It would be really good to have something like this. For now, when an axis is typed as 'value' with for example min: 0 max: 120, in the axisLabel's formatter callback function I just got 0,20,40,...,120 for the values.
If I could get all the integer values, I could write my own logic to show specific labels. Supporting the 'interval' property would be beneficial too.
So I could have something like this:

I was able to do this by hiding the x-axis labels and adding vertical marklines.

markLine: {
      data: stages.map(stage => ({
        xAxis: stage,
      })),
      symbol: "none",
      label: {
        position: "start",
        formatter: params => (params.value === +stages.at(-1) ? "Close" : params.value),
      },
},


Add change log for @angular-devkit/build-optimizer

From @emilio-martinez on December 18, 2017 8:49

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [X] feature request

Area
- [X] devkit
- [ ] schematics

Desired functionality
Given that @angular-devkit/build-optimizer can be used as a standalone, I believe it should have a changelog. There's no indication of what has changed, nor are releases tagged to at lease see the commits that are included in a version diff.
Copied from original issue: angular/devkit#341

From @filipesilva on December 18, 2017 9:0
I think this is a problem with overall packages in the devkit.
@hansl it seems we had a changelog once (https://github.com/angular/devkit/releases) but only that one. We should add detailed changelogs on releases.

From @emilio-martinez on March 25, 2018 2:53
@filipesilva @hansl pinging on this item again. This would be immensely helpful.
I understand that when used with Angular CLI this is more seamless, but when used with a non-Angular CLI Webpack setup using these packages somewhat feels like flying blind.

Obsolete as changelog has been added in this repo.