Gitlab CI not starting without any errors

Hey,
I followed your setup tutorial for the third time now (after deleting the user each time) and I got the start script running without an error for the first time.
Puma 2.0.0.b7 starting...
* Min threads: 0, max threads: 16
* Environment: production
* Listening on unix:///home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket
Gitlab CI service started

In Nginx error log I see the following output:
2013/05/21 19:13:30 [error] 4087#0: *1 connect() to unix:///home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: www.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://unix:///home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket:/", host: "mydomain.com"

And in browser I just get a Nginx: 502 bad gateway.

Thanks for the issue report but we only support issues for the latest stable version of GitLab. I'm closing this issue but if you still experience this problem in the latest stable version, please open a new issue (but also reference the old issue(s)). Make sure to also include the necessary debugging information conforming to the issue tracker guidelines found in our contributing guidelines.


add event day

Are you a current Fivetran customer?

Internal
What change(s) does this PR introduce?

Add event day (date trunc event time to day) as additional field for further downstream use. We are trying this as a fix for a bug that PR #9 in the transforms is responding to
Did you update the CHANGELOG?

[] Yes
Not yet
Does this PR introduce a breaking change?

[ ] Yes (please provide breaking change details below.)
[x] No  (please provide an explanation as to how the change is non-breaking below.)
New field that will not impact existing models
Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

[] Yes
Not yet, just testing right now in integration testing before confirming this needs to be added to the package.
Is this PR in response to a previously created Bug or Feature Request

[x] Yes, Issue/Feature https://github.com/fivetran/dbt_amplitude/issues/8
[ ] No

How did you test the PR changes?

[x] Buildkite
[ ] Local (please provide additional testing details below)

Select which warehouse(s) were used to test the PR

[x] BigQuery
[x] Redshift
[x] Snowflake
[x] Postgres
[x] Databricks
[ ] Other (provide details below)

Provide an emoji that best describes your current mood

:dancer:
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.

@fivetran-reneeli is this PR still needed?

Closing this PR as it has been integrated within PR #8


Updating and restarting Cardano infrastructure on SanchoNet

As a system administrator of SanchoNet,
I want to update the Cardano infrastructure elements to the New Node 8.10.0-pre version and the New DB-Sync tag,
so that the network can be restarted and resynchronized properly.
Summary:
SanchoNet, running on the Cardano network, requires an update of its infrastructure elements. Following the update, the network needs to be restarted and resynchronized. The update includes transitioning to the new Node 8.10.0-pre version and adopting the new DB-Sync tag. These actions are crucial to ensure that the network maintains its optimal performance and reliability.
Acceptance Criteria:

[x] Install the new Node 8.10.0-pre version from https://github.com/IntersectMBO/cardano-node/releases/tag/8.10.0-pre,
[x] Install the new DB-Sync,
[x] Restart the Cardano stack on SanchoNet on dev to apply and verify the updates,
[x] Resynchronize the Cardano network on SanchoNet on dev to apply and verify the updates.

No problems related to this item


Incorrect version of swig detected after cmake command

Hello,
I'm trying to compile mraa to use with nodejs but I can't because (I guess) the cmakeroutine found a incorrect version of swig installed in my system.
I'm 100% sure I'm using swig 3.0.8 in my Ubuntu image, for some reason the version found is 3.0.2 and the required is 3.0.5.
Below the full output:
$ cmake -DBUILDSWIGNODE=ON ..
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
INFO - libmraa Version v0.6.1-50-g3184965
INFO - Target arch is x86_64
INFO - Adding x86 platforms
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.2")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.10", minimum required is "2.7")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.10", minimum required is "2.7")
WARN - SWIG is 3.0.2. Please upgrade to 3.0.5+ to build nodejs addon
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jancassio/Works/labs/node/mraa/src/mraa/build

Also, I tried to do the same step using branch tocompile without success.
Thanks,

So, /usr/bin/swig3.0 has a version 3.0.2.
May you execute "/usr/bin/swig3.0 -version" and post an output here?
And where is swig 3.0.8 installed?
BR,
xbolshe

I installed swig from the source, the location is:
/usr/local/bin/swig
At /usr/bin I found swig2.0 and swig3.0 (shame of me).
Can I change the swig path at make process? Or is better to move my latest swig to /usr/bin ?

You may use any as you wish: setup SWIG_EXECUTABLE or move a file to /use/bin, change a prefix to /usr/bin during swig compilation.
BR,
xbolshe

I'll keep the latest one and remove others, seems fair enough.
Thank you!


Unable to install via npm?

🐛 Bug Report
Unable to install using npm and install from zip / folder creates unexpected errors
To Reproduce

Have node.js v15 or higher
Try "npm install i18next-vue"

Expected behavior
For the module to be installed
Actual behavior
NPM throws a 404 error message
Your Environment

runtime version: node v16.15.0
i18next version: i.e. 21.8.0
os: Mac

The package is now available via npm. So npm install i18next-vue should get you the (beta) package now.
Feel free to re-open if you still encounter problems 😃


Predicting model for CM and MDH dataset

Hi, thank you for the beautiful work.
Porgen has been applied to generate proteins for CM and MDH families. In the Method section, the details are described as:

We computed the AUC in receiver operating characteristic (ROC) curves for predicting binary function labels from model scores. We computed model scores for each sequence in both CM and MDH by using the per-token model log-likelihood in Eq. 2.

Does this mean: (1) for each sequence the log-likelihood is calculated for each token and (2) then a classifier model is employed to predict whether the whole sequence is reactive or not (the label is from experimental data). The features are the calculated log-likelihood score for each token. Could you please also release data/codes/models for this part?
Best regards

Could you please release the corresponding data for this generation of CM/MDH?
Best,
Liguo

I can not understand what is GB1 (top100avg) ? how to calculate?


Callback when login is cancel by user (question)

How is possible to add callback function when auth popup authentication is closed by user?
$Spotify.login().then(function (data) {
  if (data) {
  } else {

  }
})

// maybe like this:
.error(function () {
  console.log("User has canceled auth popup!");
});

Regards.

At the moment it doesn't reject that Promise. Do you need it for a specific task?

Yes, In fact I solved yesterday this to adding Promise.reject()
and some minor updates in your NgSpotify.login() function.
I have renamed issue title (enhancement)
So I will send a pull request about this soon.
Regard.

#24 :+1:


Copy creates doubled full paths under octopress home folder

I have my octopress working folder under /export/storage/dev/blog. I've defined octopress-genesis in my _config.yml using:
gems:

octopress-genesis

When I run 'octopress ink copy theme' the theme is copied, but the path it's copied to is /export/storage/dev/blog/export/storage/dev/blog/_plugins (the octopress home path is doubled).

The issue appears to be manifested here, specifically that Plugins.custom_dir already includes Dir.pwd.
Digging more...


Filter for minors is not correctly implemented

A filter for minors was implemented in https://github.com/minutis-redcall/redcall/issues/197 but it is not fully working. It appears the Redcall database extracts the birth year from Pegass, but not the full date. So volunteers in the year of their 18th birthday are not filtered out, even if they are still minors.
A volunteer whose birth date in Pegass is 10/12/2005, has birth date of 01/01/2005 in Redcall. He is triggered by default, despite being still minor.

Hi FX,
Thank you for the notice.
Indeed, since a GDPR audit that happened last December, we do not have access to full birthdays anymore, but we have access to a "minor" flag instead.
The implementation is still wrongly using the birthday field.
Will provide a fix tomorrow.
Cheers

211f5ca9942d32ec88cbe931b0dfb97a6baca464 should fix the issue.
It will take up to 2 hours to have data correctly updated on the database, in the meantime I've put a message at the top of the app.
Cheers


add extent reducers

Plot.plot({
  marks: [
    Plot.rectY(athletes, Plot.binX({fill: "x1", y: "count"}, {x: "weight"}))
  ]
})

Thanks for the test, @Fil!


Gem release

Could you release a new gem version please?
Seems like there are a lot of fixes and new features since the last release in November 2015.

Agreed, there's a lot of good stuff that seems to be just waiting for a release.


fix: #1005 fixed, by updating type-definations to getItem method.

Changes
Updated the getItem function to check if the fallback parameter is provided. If it is, the function will return a non-null type.

Maybe add a type test into the storage tests for that

Using https://vitest.dev/guide/testing-types in https://github.com/wxt-dev/wxt/blob/main/packages/wxt/src/tests/storage.test.ts
I think @aaronklinker-st needs to add the --typecheck flag to the test commands but you can use vitest --typecheck in the packages/wxt package

Using https://vitest.dev/guide/testing-types in https://github.com/wxt-dev/wxt/blob/main/packages/wxt/src/tests/storage.test.ts
I think @aklinker1 needs to add the --typecheck flag to the test commands but you can use vitest --typecheck in the packages/wxt package

@Timeraa Hi, according to your guidance I rank the typecheck command and all the tests in storage.test.ts are passing and I am sure it's safe to merge.

@aklinker1 or @Timeraa, please merge the pull request asap, I am unable to concentrate on my tomorrows' board examination or if you are not planning to merge please provide appropriate feedback.
Thanks in advance.

Also, here is the flow of types.

When we haven't provided a type hint, or fallback parameter the return type in unknown.

Now, I have given a type hint.

And when I have given fallback, then the following behaviour is expected.

Moreover, it has type-safety built in, if I hint the function that type is number then I cannot pass anything else than number to fallback parameter.

@aklinker1 Hi, I have allowed edits by maintainers.

@aklinker1 Hi, I think there is some problem with your code.

No, the test code is correct, your change doesn't work when the first type parameter is passed in.

@aklinker1, Yes, you are write, when we pass the type hint and fallback. It defaults to typehint and null condition. Will fix an update. Thanks

@aklinker1 Why is it should changes required, I have made the changes please review them. Your reviewing part is left. Thanks.

Thanks, for approving the changes. As this is my first time contribution to open source, I am not aware of the steps involved. Are there more steps to this, as the pull request doesn't seem as it has been merged (please correct if wrong) even after you have approved.

Just had to wait for checks to pass, just getting back to this now!


DataMatrix: use charset for encoding

So UTF8 and binary contents are encoded correctly.

Thanks. That was less invasive than I expected.

That's what I thought! 😉


Script doesn't run

I cloned this repo and initialized all sub-modules. When running the example command for BERT, I got the following error.
id@dev:~/onnxruntime-training-examples/huggingface/script$ python hf-ort.py --hf_model bert-large --run_config ort --process_count 4 --local_run
Failure while loading azureml_run_type_providers. Failed to load entrypoint azureml.scriptrun = azureml.core.script_run:ScriptRun._from_run_dto with exception (pyOpenSSL 21.0.0 (python3.7/site-packages), Requirement.parse('pyopenssl<21.0.0')).
SDK version: 1.29.0
The arguments are: ['hf-ort.py', '--hf_model', 'bert-large', '--run_config', 'ort', '--process_count', '4', '--local_run']
Running model: bert-large, config: ort locally
Traceback (most recent call last):
File "hf-ort.py", line 157, in
shutil.copy(model_run_script_path, '.')
File "lib/python3.7/shutil.py", line 248, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '../../huggingface-transformers/examples/pytorch/language-modeling/run_mlm.py'
After change
TRAINER_DIR = '../../huggingface-transformers/examples/pytorch'

to
TRAINER_DIR = '../../huggingface-transformers/examples/'

script starts running.

Closing as stale issue, please open new PR if issue re-arises


Attempt to fix or reduce the probability of issue 213

Verified that @priyajeet has signed the CLA. Thanks for the pull request!


Error loading pkl file

Traceback (most recent call last):
File "E:\PythonFile\FKD-main\train_FKD.py", line 528, in
main()
File "E:\PythonFile\FKD-main\train_FKD.py", line 138, in main
main_worker(args.gpu, ngpus_per_node, args)
File "E:\PythonFile\FKD-main\train_FKD.py", line 328, in main_worker
train(train_loader, model, criterion_sce, optimizer, epoch, args)
File "E:\PythonFile\FKD-main\train_FKD.py", line 363, in train
for i, (images, target, soft_label) in enumerate(train_loader):
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next
data = self._next_data()
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 1203, in _next_data
return self._process_data(data)
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 1229, in _process_data
data.reraise()
File "D:\Anconda\envs\pytorch\lib\site-packages\torch_utils.py", line 434, in reraise
raise exception
_pickle.UnpicklingError: Caught UnpicklingError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data_utils\worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\PythonFile\FKD-main\utils_FKD.py", line 98, in getitem
label = torch.load(label_path, map_location=torch.device('cpu'))
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "D:\Anconda\envs\pytorch\lib\site-packages\torch\serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\xff'.
Do not use the pre training file to directly train and report errors as above

Hi @VsionQing It will always load the soft label files. If you would like to train with the traditional one-hot label, you can replace "soft_label" with "target" at https://github.com/szq0214/FKD/blob/main/train_FKD.py#L383 and use "criterion_ce" instead of "criterion_sce".

Hi @VsionQing It will always load the soft label files. If you would like to train with the traditional one-hot label, you can replace "soft_label" with "target" at https://github.com/szq0214/FKD/blob/main/train_FKD.py#L383 and use "criterion_ce" instead of "criterion_sce".

My code is
python train_FKD.py -a resnet50 --lr 0.1 --num_crops 4 -b 1024 --cos --softlabel_path [soft label path] [imagenet-folder with train and val folders]   like official recommended.
If I want to use soft target training, do I have to use the pre training pkl file?

my code is
-a resnet50 --lr 0.1 --num_crops 4 -b 1024 --cos --softlabel_path "G:\OPEN\FKD_soft_label_500_crops_marginal_smoothing_k_5.tar_7\FKD_soft_label_500_crops_marginal_smoothing_k_5" "G:\OPEN\ILSVRC\Data\CLS-LOC"
And then utils_FKD.py #L94     label_path = os.path.join(self.softlabel_path, '/'.join(path.split('/')[-4:]).split('.')[0] + '.tar')
An example of one path is G:\OPEN\ILSVRC\Data\CLS-LOC\train\n01728572\n01728572_1912.JPEG
How to solve？

@VsionQing

Extract soft label files (assume you have done this properly):
tar -zxvf FKD_soft_label_500_crops_marginal_smoothing_k_5.tar.gz
Rename your ImageNet folder from "CLS-LOC" to "imagenet" (or you can rename the soft label folder "FKD_soft_label_500_crops_marginal_smoothing_k_5/imagenet" to "FKD_soft_label_500_crops_marginal_smoothing_k_5/CLS-LOC"). I will update the code to let it be flexible for arbitrary name of the ImageNet folder.
run using:
python train_FKD.py -a resnet50 --lr 0.1 --num_crops 4 -b 1024 --cos --softlabel_path G:\OPEN\FKD_soft_label_500_crops_marginal_smoothing_k_5.tar_7\FKD_soft_label_500_crops_marginal_smoothing_k_5 G:\OPEN\ILSVRC\Data\imagenet

It seems you are using the Windows system, not sure the current path structure is suitable for your system or not.

I have revised the three suggestions you put forward
The problem is that I understand the meaning of this code. The original meaning is to read the compressed package file of the soft target directory, but it reads the file of the imaget dataset.

@VsionQing Please make sure the two paths --softlabel_path and [imagenet-folder with train and val folders] are correct.

@VsionQing Please make sure the two paths --softlabel_path and [imagenet-folder with train and val folders] are correct.

This my code python train_FKD.py -a resnet50 --lr 0.1 --num_crops 4 -b 1024 --cos --softlabel_path G:\OPEN\FKD_soft_label_500_crops_marginal_smoothing_k_5.tar_7\FKD_soft_label_500_crops_marginal_smoothing_k_5 G:\OPEN\ILSVRC\Data\imagenet
And first is offical soft target ,the second is imagenet dataset.I think it is correct.
The lock address of the line of code I mentioned just now should be soft target, right?

@VsionQing Please make sure the two paths --softlabel_path and [imagenet-folder with train and val folders] are correct.
Another question is the package i have extracted  only 1gb , this is normal？

@VsionQing, I think the name of the file should be FKD_soft_label_500_crops_marginal_smoothing_k_5.tar.gz, instead of FKD_soft_label_500_crops_marginal_smoothing_k_5.tar_7.gz. Also, the size seems abnormal before uncompressing.


Feature/camera tracking drone

Camera tracking the drone while flying
Changes

Modified camera initialization to position it behind the drone instead of at its side
Updated camera tracking logic to maintain the "from behind" perspective while following the drone
Adjusted camera offset values for better viewing angle (4 units back, 2 units up)

Benefits

More intuitive drone control as forward/backward movements align with the camera view
Better visibility of the drone's heading direction

Details

Updated update_camera() function offsets to maintain consistent behind-view perspective
Camera now follows drone with defaults:

X offset: 0.0 (centered horizontally)
Y offset: -4.0 (4 units behind in Y axis)
Z offset: 2.0 (2 units above)

Controls
Same as before
Testing

Confirmed improved control intuitiveness with the new perspective
Tested smooth camera transitions during rapid direction changes

Here's how it looks while operating the drone:
https://github.com/user-attachments/assets/5e37ed2d-31df-4566-ba72-0ca775d08549

looks awesome


Max and Min Function

Implemented Max and Min Function. Hope it is mergeable. :)

@ahmfuad  Job well done.


⚠ Bofrost.de has degraded performance

In b8584e2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1521 ms

Resolved: Bofrost.de performance has improved in 04fa417 after 8 minutes.


Use IndexExpr to compute divisor for ReduceMean

Signed-off-by: Tung D. Le<EMAIL_ADDRESS>

@tungld I wonder if you would not want to use IndexExpr on this one. This is precisely why I wrote it, not to have lengthy special code for testing for constants.

Oh, right. We can use IndexExpr whenever we have index-related calculation. Will update this patch now.

@AlexandreEichenberger I changed the patch to use IndexExpr. Thanks for your comments!


Weird behaviour when working with not-incremental IDs

This issue happens when I have to set IDs manually, and I don't want to use them in the regular way with auto-incrementing trigger.
Model:
class BudgetCategory(Model):
    __autoincrementing__ = False
    __fillable__ = ['id', 'name']

Script with results:
custom_id = 33
category_name = 'Sample'

category = BudgetCategory(id=custom_id, name=category_name)
print(category.serialize())
# {'id': 33, 'name': 'Sample'}

category.save()
print(category.serialize())
# {'id': 6, 'updated_at': '2016-09-27T14:00:06.758576+00:00', 'created_at': '2016-09-27T14:00:06.758576+00:00', 'name': 'Sample'}

temp_category = BudgetCategory.find(custom_id)
print(temp_category.serialize())
# {'id': 33, 'updated_at': '2016-09-27T14:00:06.758576+00:00', 'created_at': '2016-09-27T14:00:06.758576+00:00', 'name': 'Sample'}

After saving, the 'id' property seems to follow the incrementing order, but only in the model object. In the database, the record is saved correctly.
btw: I'm using SQLite.
Thanks!

It seems that the __autoincrementing_ = False is not honored and insert_get_id() is called regardless.
I will look into it.

Oh! It's not __autoincrementing__ but __incrementing__ that's why it behaves like it does.

I just fixed the documentation.


D-Link 615D router clone TX-615D unable to upgrade

/usr/lib/lua/luci/dispatcher.lua:327: Access Violation
The page at 'admin/system/admin/' has no parent node so the access to this location has been denied.
This is a software bug, please report this message at https://github.com/openwrt/luci/issues
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:327: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute call dispatcher target for entry '/lime/flashops/sysupgrade'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:74: Failed to load template 'admin_system/applyreboot'.
Error while parsing template '/usr/lib/lua/luci/view/admin_system/applyreboot.htm':
No such file or directory
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

Issue fixed by downloading the latest firmware
lime-17.06-2fb1b0352558bbb-ramips-rt305x-dir-615-d-squashfs-factory
built online using Chef Imagebuilder
NOTE: LibreMesh without OPKG is what worked for this particular issue.


Can i create dynamic  token  inside flutter app?

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

it is not safe, you should generate the token on your server.

I know,but i can't find way for create dynamic key inside flutter app anyway for testing

you can refer to https://github.com/AgoraIO/Tools/tree/master/DynamicKey/AgoraDynamicKey and make it with dart.

I will close this issue, you can reopen it if it still exists.


CNV-36438: Prevent deletion of pod network on Instancetype VM

📝 Description
This PR fixes a bug wherein the pod network is deleted from an Instancetype VM when another network is added.
Jira: https://issues.redhat.com/browse/CNV-36438
🎥 Demo
https://github.com/kubevirt-ui/kubevirt-plugin/assets/8544299/c6fb9c74-ecf9-4ca6-8548-aef07658fd71

/lgtm

/cherry-pick release-4.16


[SCRIPTS] Packaging and testing updates

As discussed in #816, here's what I've worked on so far:

Merged module.js and rollup.js into one script. Minor performance increase (8.3s -> 7.8s).
Updated module.js to cut down the number of I/O operations. Reasonable performance increase (7.8s -> 5.1s).
Updated module.js to output a full (snippets + archive) _30s.js file in test. Negligible performance impact.
Made module.js skip bundles when running on non-CRON/API builds. Performance for the test package seems to be ~52ms on my machine, which should be pretty good for running tests on commits.
Updated tdd.js to follow the structure discussed above, updated all .test.js files, fixed a few failing tests, cleaned up orphaned tests etc. Overall performance is about the same, maybe we managed to earn ourselves a second or two.

PR Type

[ ] Snippets, Tests & Tags (new snippets, updated snippets, re-tagging of snippets, added/updated tests)
[x] Scripts & Website & Meta (anything related to files in the scripts folder, how the repository's automated procedures work and the website)
[ ] Glossary & Secondary Features (anything related to the glossary, such as new or updated terms or other secondary features)
[ ] General, Typos, Misc. & Meta (everything else, typos, general stuff and meta files in the repository - e.g. the issue template)

Guidelines

[x] I have read the guidelines in the CONTRIBUTING document.
[x] My PR doesn't include any testlog changes.

NOTE TO ALL CONTRIBUTORS
These changes, when merged, will cause issues with test suites submitted after the PR was initially submitted. If you do not know how to fix those before or right after the merge, please refrain from merging even if the PR has been unanimously approved.
Still missing the coverage report for Travis and some minor things to be a complete fix, I hope I can finish it all up in the next couple of days.


Bartender 300u jugs are treated like beakers

Description
You can get triple capacity beakers by yoinking jugs from bartender and using them for chemisty, this includes electrolyze, not just chemmasters and dispensers.

Screenshots

Interestingly, chem jugs cannot go into the booze dispenser or soda dispenser as I tried with a jug of meth just a day ago

I think this is because the booze/soda dispenser is intended to accept bottles.


Regexp specs are failing on trunk

There are failing Regexp specs on trunk.
You can run the spec suite and observe the failures by running:
$ bundle exec rake spec

Passed 1585, skipped 135, not implemented 14, failed 8 specs.

I think this regression was introduced in #936.
Originally posted by @lopopolo in https://github.com/artichoke/artichoke/issues/988#issuecomment-752739842

Needs a bisect. My guess is I dropped https://github.com/artichoke/mruby/commit/7dbd9b97dc107ab9f058096099ac93a8d9404051 or https://github.com/artichoke/mruby/commit/763341e0d05bc297a2c40d2208909d9376f275cf during an mruby revendoring.

Needs a bisect. My guess is I dropped artichoke/mruby@7dbd9b9 or artichoke/mruby@763341e during an mruby revendoring.

My hunch was correct, but the root cause was a bit different. Starting with<EMAIL_ADDRESS>introduced in #936, mruby had checked in the generated bison parser and Artichoke switched its build process to use the pre-generated C source. When generating the vendored tag, I did not regenerate the parser with bison once my Regexp literal patches were applied.
<EMAIL_ADDRESS>addresses this by inserting a commit that regenerates the parser with bison. See #990.

See also https://github.com/artichoke/artichoke/issues/101 which discusses running the spec-runner in CI.

See also https://github.com/artichoke/artichoke/issues/101 which discusses running the spec-runner in CI.


Tags with non-latin characters are not recognized

Tags with non-latin characters seem not to be recognized by Ghost.
While this works:
https://wojciechkozmic.herokuapp.com/tag/obwod-luganski/
this gives 404 Not Found:
https://wojciechkozmic.herokuapp.com/tag/charków/
ghost 0.7.0

Tags should not have non-latin characters in their slugs, the same as posts, these should be transliterated. Can you please update this bug report to contain the full steps of how you managed to get into this state? There is a bug report template in our contributing guidelines that will give you an idea what to include.

Surprisingly I am unable to reproduce this - it transliterates this correctly for me, and it's another user who made this. Closing for now.


Support Azure Managed Identities to authenticate to Azure SQL DB

Feature Request
Is your feature request related to a problem? Please describe
I'd like to use passwordless authentication to my AzureSQL database. So far I'm unable to do it. My question on StackOverflow remains unanswered so far.
Describe the solution you'd like
Indicate the name of the managed identity I want to use to connect in the driver settings. The driver, possibly with support of external libraries should attempt to authenticate with this managed identity. Both System- and User-assigned managed identities shall be supported.
Describe alternatives you've considered
So far, I fell back to using usernname/password authentication. An alternative would be to use the JDBC driver which supports this authentication style.
Teachability, Documentation, Adoption, Migration Strategy
I'd consider introducing a property to driver settings:
azureManagedIdentityClientId
Authentication should be performed if the given managed identity is assigned to the azure resource from which I'm attempting to authenticate (a Virtual Machine, Azure Container App, etc.)

Thanks a lot. We have quite some requests asking for additional authentication options. Our maintainer team is rather small without Microsoft being involved in the driver. We don't have the bandwidth nor infrastructure to test and develop additional auth mechanisms at the time being.
We happily accept contributions from the community though.

Related: https://github.com/r2dbc/r2dbc-mssql/issues/101


HookedRootModule.add_caching_hooks() doesn't use model device, fails if model on e.g. cuda:1 device

From line 233 of hook_points.py:
if device is None:
    device = "cuda" if torch.cuda.is_available() else "cpu"

It seems logical to place cached activations on the model's device from self.cfg.model if set, to avoid needing to constantly pass around cuda:1 to these calls in cases where multiple GPUs are present?
(I have the one-line fix in my fork and can make a PR unless anyone objects.)

Sounds very reasonable to me. I'll accept the PR. I have a vague goal of understanding how to test this stuff in the future but for extant bugs with simple fixes, I'd prefer to accept PRs.

This will be sorted out when we solve https://github.com/neelnanda-io/TransformerLens/issues/246.

solved by #250


Error: "Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead" during Flutter web hot reload.

Getting a bunch of the lines bellow on Flutter web during Hot reload:
6586/dart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 89:7                   JSBoxedDartObjectToObject.get$35toDart
http://localhost:56586/lib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 574:37  _checkAndCall
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 579:39  dcall
Error: Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead.
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3       throw_
http://localhost:56586/dart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 89:7                   JSBoxedDartObjectToObject.get$35toDart
http://localhost:56586/lib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 574:37  _checkAndCall
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 579:39  dcall
Error: Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead.
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3       throw_
http://localhost:56586/dart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 89:7                   JSBoxedDartObjectToObject.get$35toDart
http://localhost:56586/lib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 574:37  _checkAndCall
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 579:39  dcall
Error: Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead.
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3       throw_
http://localhost:56586/dart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 89:7                   JSBoxedDartObjectToObject.get$35toDart
http://localhost:56586/lib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 574:37  _checkAndCall
http://localhost:56586/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 579:39  dcall

Dart version and tooling diagnostic info (dart info)

Dart SDK version: 3.2.4 (stable) (Thu Dec 21 19:13:53 2023 +0000) on "macos_arm64"

Whether you are using Windows, macOS, or Linux (if applicable)

Mac

Whether you are using Chrome, Safari, Firefox, Edge (if applicable)

Chrome

@pedromassango any progress here? how did you resolve?

@pedromassango any progress here? how did you resolve?

No, still facing

Seeing the same error - constantly logging and eventually causes Chrome to die

I'm seeing similar errors on Dart-Code's integration tests on the current Flutter stable. For example the "stops at a breakpoint after each hot reload" test fails with:
Error: Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead.
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3       throw_
dart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 93:7                   JSBoxedDartObjectToObject.get$35toDart
lib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 550:37  _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39  dcall

The exception appears in the pause reason (we expect "breakpoint" as the pause reason but get this exception):
[3:52:27 PM] [General] [Info] [stdout] [   +4 ms] DevHandler: VmService proxy responded with an error:
[3:52:27 PM] [DAP] [Info] <== {"seq":1152,"type":"event","event":"dart.log","body":{"message":"<==            {jsonrpc: 2.0, id: 43, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 43, params: {streamId: Isolate, includePrivateMembers: false}}}}\r\n","severity":0,"category":9}}
[3:52:27 PM] [FlutterRun] [Info] [Dart & Flutter (flutter run debugger (launch on chrome) stops at a breakpoint after each reload (1))] <==            {jsonrpc: 2.0, id: 43, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 43, params: {streamId: Isolate, includePrivateMembers: false}}}}
[3:52:27 PM] [DAP] [Info] <== {"seq":1153,"type":"event","event":"output","body":{"category":"stdout","output":"           {jsonrpc: 2.0, id: 43, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 43, params: {streamId: Isolate, includePrivateMembers: false}}}}\n"}}
[3:52:27 PM] [General] [Info] [stdout]            {jsonrpc: 2.0, id: 43, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 43, params: {streamId: Isolate, includePrivateMembers: false}}}}
[3:52:27 PM] [DAP] [Info] <== {"seq":1154,"type":"event","event":"stopped","body":{"reason":"exception","threadId":1,"text":"\"Error: Expected a wrapped Dart object, but got a JS object or a wrapped Dart object from a separate runtime instead.\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3       throw_\ndart-sdk/lib/_internal/js_shared/lib/js_interop_patch.dart 93:7                   JSBoxedDartObjectToObject.get$35toDart\nlib/_engine/engine/canvaskit/native_memory.dart 24:46                             <fn>\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 550:37  _checkAndCall\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39  dcall\n\""}}

@elliette I was going to raise this in the webdev repo before I found this existing issue here. It's not clear to me where the problem lies though - could this be DWDS?
(I've not been able to reproduce it locally on Windows.. I'm seeing it on Ubuntu bots)

@srujzs and I did an investigation today and here are some notes:
The .toDart getter call here is throwing:
https://github.com/flutter/engine/blob/23467e04433d848ed5e074b0997a1be9296e4077/lib/web_ui/lib/src/engine/canvaskit/native_memory.dart#L25
The getter implementation is here:
https://github.com/dart-lang/sdk/blob/74baf5e75a754edff091785586214549124c0c18/sdk/lib/_internal/js_shared/lib/js_interop_patch.dart#L95-L102
The getter does some verification to ensure the value came from the current Dart app by comparing an attached symbol to a top level field in the Dart SDK. In normal app execution this should work as expected.
Our current theory is that It seems like the finalization gets triggered at some point after the restarts. This make sense because it would have to be after the value gets garbage collected which probably doesn't happen until the app is restarted. We think the getter throws because the app has been restarted and the top level symbol used to identify the app has been reinitialized so they no longer match. This hasn't been confirmed 100% because it is difficult (impossible?) to debug the code that runs in the finalizer callback using chrome devtools.
A workaround (not sure if this is a good idea or not) we could investigate would be to force the _jsBoxedDartObjectProperty not to be reinitialized during the hot restart. This would be different from all the other static fields in the program but it would mean from the view of the .toDart getter the value came from the current Dart application.

I'd also be curious to see if something triggered this to happen recently. Both the Flutter and relevant Dart code has existed in stable for several months now, so I'm surprised to see an issue pop up now instead of earlier.

Based on comments here and https://github.com/flutter/flutter/issues/140684 this doesn't seem likely to be DWDS-related, but let me know if I can do any investigation to help.

I'm also only running the tests on stable for all checkins, so if "several months" means it only went to stable in the recent release, that could also be a reason I hadn't seen it earlier.

This code went in for the 3.2 release, but I suppose that wasn't too long ago, and the flakes could explain the gap.

I can try to pinpoint which release it started failing with this consistently if that's useful, but since I can't repro locally it'd be by triggering the bots with the recent release numbers and reviewing the results.

A range could help too if it's too difficult to pinpoint - I'd mostly be curious to see if this existed 3.2 onwards or just started to materialize. Thanks!

For my integration tests, the Chrome debug adapter tests have always been a little flaky (it's the legacy ones failing and not the new SDK debug adapters)

FWIW I just saw this failure on the new SDK debug adapters too. I guess it's timing-dependant and the legacy adapters just happen to get the right (wrong) timing frequently and the new ones rarely (there probably many small differences between them, legacy one TypeScript and the new one is a Dart re-implementation).

what the heck . how to resolve this erorr ?


Question: Is it possible to get the raw information?

I am trying to only get the background and foreground color that pywal was grabbed from my wallpaper, to be used in a script that I am currently writing. I checked the usage (wal --help), but did not find any option which allowed me to do so.

wal -n -s
-n                    Skip setting the wallpaper.
-s                    Skip changing colors in terminals.


Several updates

Updated Dockerfile to use Alpine 3.16
Pinned package versions in Dockerfile
Dockerfile & init script overhaul

@SoftCreatR Thanks for the PR! 🤯 Please give us some time to review it.

@SoftCreatR you need to bear with me a little bit 😄 these changes are not that easy to review. But this will happend during October - promise 👍🏻

If you could label this already as hf accepted, the timer can already start 😄

THANK YOU! All changes merged 🥳
Please reach out to me on our Discord server if you would like to claim your Appwrite swags! As a way of saying thank you, we would also love to invite you to join the Appwrite organization on GitHub. Please share your GitHub username with us on Discord.
You can accept the invite by visiting https://github.com/orgs/appwrite/invitation. By joining our team, you will officially be an Appwrite maintainer on GitHub.
You can change your membership visibility settings, so your new Appwrite team membership badge will show up on your personal GitHub profile.
Please feel free to look for more PRs you might be interested in helping with on our long list of Hacktoberfest friendly issues and help make Appwrite better :)


Upgrade to SARIF v2.1.0 RTM.0

... and change version to 1.0.0.

It is good that this change didn't induce any code changes. It shows -- to the extent that JSchema exercised SARIF -- that v2.1.0 RTM 0 is consistent with the private version that was previously checked in.


Validate the body of create program endpoint

Is your feature request related to a problem? Please describe.
The request body isn’t validated.
ex: throws 500 when a not null field is not available in the body
Describe the solution you'd like
Ex:
If the landing page URL or image URL is not in the body, it adds a null value for them. It should return a bad request.
Describe alternatives you've considered
N/A
Additional context
N/A

Hi piumal, thanks for creating the issue.
This would be not a priority for our initial implementation. Let's move this task to a next phase.


Status

Is this Project dead?

No, I've just taken a break whilst working on some other stuff.
I was hoping to get some users to help me shape the future direction of the project. If it's something you're interested in, please get in contact!
I'm @adrianmouat on twitter and I'm happy to share my e-mail if you can't find it on here.
I'll close this issue for the moment!


Add support/instructions for running on a M1 laptop

Some of the commits are dependent on https://github.com/andrei-kuznetsov/android-studio-builder/pull/8

Wow. @rogerhu did you manage to build the studio sources on Mac M1?

Wow. @rogerhu did you manage to build the studio sources on Mac M1?

Yep. :)

@rogerhu, am I right, that you don't even need a docker, you build everything on the host?

Yes Docker on an M1 does not work because I was running into issues compiling the C++ libs.


Feature: S3 compatible api endpoint for Atomic Drive

Give the user the ability to generate S3-compatible credentials:
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and
the ability create AWS compatible AWS_ENDPOINT to the user can populate Atomic Drive using standard AWS S3 compatible tools like rclone (or numerous UI clients).

Does this mean letting usser access their atomic data as if atomic-server was an S3 bucket? Or something different?
And how does this relate to #543?

Yes, like if you want to put 100 images into atomic server you can use rclone (or cloud drive), or aws s3 cp command.  It's not related to #543 - in 543 atomic server acts as a client for S3 compatible store, in this scenario Atomic Server acts like a s3 server i.e. minio/seaweedfs.
That may not only allow users to upload their assets quickly, but presents an interesting backup/sync mechanism: if you want to backup your data from one atomic server to another, you can use existing S3 tooling  - plenty of tools.


Add release instructions

Added release instructions to the README and changed the CMakeLists version number to 0.0.0 to correspond to CHANGES.md. After this is merged we can do the first release, and then merge https://github.com/CesiumGS/cdb-to-3dtiles/pull/23.

Thanks @lilleyse this looks good to me. I will merge it now


Provide Scaling Options

Application construction should allow pixel-sharp and pixel-smooth scaling

Not relevant now that PixiJS is being used


"Axintele", "Bărbătescu"  and "Horia" villages are listed in the drop-down menu.

Description:
When user writes ” Axintele”, "Bărbătescu" and "Horia" the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Axintele".

Expected results
The location is listed in the drop-down menu as "Sat Axintele IALOMIȚA (Axintele)".

Step 2
Write in the search bar "Bărbătescu".

Expected results
The location is listed in the drop-down menu as "Sat Bărbătescu IALOMIȚA (Axintele)".

Step 3
Write in the search bar "Horia".

Expected results
The location is listed in the drop-down menu as "Sat Horia IALOMIȚA (Axintele)".


lazyjournal: 0.4.0 -> 0.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for lazyjournal is: TUI for journalctl, file system logs, as well as Docker and Podman containers
meta.homepage for lazyjournal is: https://github.com/Lifailon/lazyjournal
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.5.0 in filename of file in /nix/store/f17v7i4wh1vvjb3vfcvs9l5zm5qqg44d-lazyjournal-0.5.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

lazyjournal

Instructions to test this update (click to expand)

Either download from the cache:
nix-store -r /nix/store/f17v7i4wh1vvjb3vfcvs9l5zm5qqg44d-lazyjournal-0.5.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The nixpkgs-update cache is only trusted for this store-path realization.)
For the cached download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A lazyjournal https://github.com/r-ryantm/nixpkgs/archive/19ce742397713d4a7c5e9b0d1b0ec1349e996233.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/19ce742397713d4a7c5e9b0d1b0ec1349e996233#lazyjournal

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f17v7i4wh1vvjb3vfcvs9l5zm5qqg44d-lazyjournal-0.5.0
ls -la /nix/store/f17v7i4wh1vvjb3vfcvs9l5zm5qqg44d-lazyjournal-0.5.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

lazyjournal

Maintainer pings
cc @pluiedev for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Allow wildcard domain in Global DNS

What kind of request is this (question/bug/enhancement/feature request):
Feature request
Steps to reproduce (least amount of steps as possible):

Create new Global DNS entry
Enter FQDN with asterisk (*) to indicate a wildcard domain
Click Create to save the entry

Result:
The UI complains that the FQDN contains an invalid character:

No record is created.
Other details that may be helpful:
Wildcard domains are valid DNS entries, so those should be allowed in Global DNS. Also, it is not documented in https://rancher.com/docs/rancher/v2.x/en/catalog/globaldns/ that wildcard domains are not allowed.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.3.1
Installation option (single install/HA): HA

gz#9871
gz#13279
gz#15638

This appears to be supported by external-dns, so it would be great to understand why we don't have it supported via Rancher

The immediate problem is going to be that the schema for the field says it's of type hostname;   * is not a valid character in a DNS label (or any real DNS entry, wildcards are fake virtual records), so the UI is correctly validating it given what it's told.

Update: I was able to create a new GlobalDns resource by applying this resource directly, thus circumventing the hostname validation:
apiVersion: management.cattle.io/v3
kind: GlobalDns
metadata:
  name: wildcard-example-com
  namespace: cattle-global-data
spec:
  fqdn: '*.example.com'
  projectNames:
  - c-xxxxx:p-xxxxx
  providerName: cattle-global-data:example-com
  ttl: 300
status:
  clusterEndpoints:
    c-xxxxx: []

External DNS ate it up and created a wildcard record as expected.

@vincent99 instead of using wildcard.
Is there any option to define a list of FQDN's in case of using ingress with multiple hosts ?

Internal reference: SURE-3766
We should ensure our documentation mentions that * aren't accepted in DNS. Not sure if QA has to test that Global DNS workaround as something else to publish.

Attention to docs: https://github.com/rancher/rancher/issues/23779#issuecomment-658424832 has a possible workaround for folks who run into this but at the very least, per my most immediate comment, we should advise users not to put wildcards in DNS since the expected input is a FQDN. Not sure if a separate ticket is warranted but let me know if you need more details

@gaktive - we use wildcard DNS entries since a long time in many places - similar to wildcard SSL certificates. As the “workaround” shows how it can be done and it also seems to be based on RFC https://www.rfc-editor.org/rfc/rfc4592
Could it be that this is “just” a missing functionality in the UI? Disabling the host name validation / allowing a wildcard seems to be a valid change.

There is no such thing as a wildcard in the DNS protocol; A valid hostname/label/fqdn cannot contain a star.  But the configuration of a DNS server can contain whatever they want to allow.  Some of them take full-blown regex.
The thing that's wrong is (still) that the schema for this field says it's of type hostname, when that does not correctly describe the desired valid input.  The validation system in the UI is just doing what is told by the field type.  So the schema should be changed to say that it's a new type, like wildhostname.  Then validation code can be updated to support that.
(Or just punt and call it a generic string, that will get no validation)
(Or put in a terrible hack to special case this one situation for this one schema deep in otherwise generic model validation code.  Yuck.)
(👋)

Thanks @vincent99 (and hi!).


Make JSONDecodable initializer throwable instead of failable

@matthewcheok I've forked the library and made JSONDecodable initializer throwable. If you'll ever want to update the official, you can use this PR.

Because this is a breaking change, I'll accept this if we try our best to keep things as backward compatible as possible. I suggest the following:

We keep the failable initializer init? around by implementing this in the protocol extension. That way users implement init() throws and get init? for free (this calls init() throws internally.)

We make the change clear in the README and update the documentation, tests and sample code to reflect this change.

Thanks for your PR!

Ok, let me do some updates. We will not be able to have both
init?(JSONDictionary: JSONObject)
init(JSONDictionary: JSONObject) throws

because it causes conflict. If I rename the argument, it works.
init(JSONObject: JSONObject) throws

I like init(object: JSONObject) throws better myself, but if you think that the json prefix is important Matthew, I'd like to propose that we use init(jsonObject: JSONObject) throws instead of init(JSONObject: JSONObject) throw. As best I can tell, the Swift standard library breaks from the Obj-c convention of always capitalizing initialisms/acronyms, and instead the entire initialism takes the case that it's first letter would normally have. Some examples I could find in the stdlib:
init?(_ utf16: String.UTF16View)
init(utf16CodeUnits: UnsafePointer<unichar>, count: Int)
func writeToURL(url: NSURL, atomically useAuxiliaryFile: Bool, encoding enc: NSStringEncoding) throws

@srdanrasic The tests seem to failing even after accounting for the API change.


documentation is unclear about being able to use wt.exe

It would be helpful, to have wt.exe being mentioned in the Readme.md.
While creating an issue on not being able to find out how to run it from commandline, I found a closed issue already about it - others had the same issue finding info about it already.

Also, if you set
"startingDirectory": .
in settings, you can use "wt.exe" in File Explorer's path bar and start inside the directory File Explorer was in.

How does "use [...] in File Explorer's path bar" work? Typing the exe into it does not.

How does "use [...] in File Explorer's path bar" work? Typing the exe into it does not.

Please ensure you've set "StartingDir" to the value= . in your profiles.json and start a new shell.
Go to File Explorer, pick an accessible directory by clicking into it as normal, then:

Click into File Explorer's 'address bar and type "wt.exe" and press enter.
Give it a moment to start up, but when it does it should be in the same directory that File Explorer was :)

You know, it's been a few years now, and the docs have actually gotten pretty good now: https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows
(I believe when this was originally filed, we didn't have a docs repo yet 😋)
I'm gonna close this one out. Thanks!


Issues October 2023

Important issues:
A. (later) Email list: organize a list at the university of Vienna. Later: email with Richard to do this.
B. Implement backend python script and create dropbox folders for several seminars worldwide
- Test conference announcements using excel (does it look ok?)
- need script to to pushing
C. (see issue 9. below) problem with footer in "Blog"

Improve content and layout on index.html (and css):
a. make 1 line instead of 2 in the middle
b. delete "About"
c. right column will be pictures on the left and text on the right
d. add list of a few important upcoming events on the bottom left

Correct fee in formation (30 Euros) on "Become a member"

"Contact us": Post ests email.  Change address to Germany later

"Conferences": add ESTC 2024 in Münster

"Hausdorff medals": push Jensen-Steel photo to the left

"Literature": update with links to books, webpages, links lecture notes

"Videos": change color to white (somewhere in the css)

"Links": add links to research groups and blogs (Joel Hamkins)
"Affiliated to European Math Society" (somewhere on website)
Links to BLC, DVMLG (others?)

"Blog": problem with (problem in data, look at csv file)
change color

Other general issues:
10. space above (e.g. in mission and everywhere else) is too large, change the css

done

done

done

done

starting page:
top centre:

the European Set Theory Society aims to...
with light (blue/green) colored background?

left:

important upcoming events, some with small photo: next ystw, next estc

right:

colloquium series
important news
link to blog

Remains to do:
Important issues:
A. (later) Email list: organize a list at the university of Vienna. Later: email with Richard to do this.
B. Implement backend python script and create dropbox folders for several seminars worldwide

Test conference announcements using excel (does it look ok?)
need script to to pushing

NEW ISSUE: understand the  javascript.
Make "This entry was posted by" work?

(Philipp) Improve content and layout on index.html (and css):
a. make 1 line instead of 2 in the middle
b. delete "About"
c. right column will be pictures on the left and text on the right
d. add list of a few important upcoming events on the bottom left

6.+8. "Literature": update with links to books, webpages, links lecture notes
"Links": add links to research groups and blogs (Joel Hamkins)
"Affiliated to European Math Society" (somewhere on website)
Links to BLC, DVMLG (others?)

Links should be visible, by a different color. Change this in the css.

Need to add a webpage for ESTS colloquia.

Padding/gaps on main page below "The European Set Theory Society aims to..." is too large. Why is that?

Whiteboard photo (jpg) hasn't been pushed! but webp image of colloquium in the same folder ("photos") has been pushed. Why is this?

@Philipp: test if you can edit file online on dropbox (use two accounts)

put
.jpg
.JPG
back in gitignore
take pdf and other file types out of the gitignore

Change the python script: add a check if each seminar file exists before copying the information.


Text Input box with password masking

How can I mask passwords? Thank you for the library.

Considering v is a gocui.View:
v.Mask ^= '*'
This will mask this view's input with asterisks.


fix: use async_create_clientsession instead of async_get_clientsession to prevent cookie leakage

This bugfix replaces all occurrences of async_get_clientsession with async_create_clientsession and as such prevents any cookie leakage between entries. If auto_cleanup couldn't be used (connection test), it is detached inside a finally block.
Looking up aiohttp_client the session returned by the function "async_get_clientsession" seems to be at least bound to the whole component if not the whole thread. This was probably the reason for some of the custom cookie_jar code in there. The function "async_create_clientsession" in comparison is meant to be used inside the entry setup and gets destroyed when the entry is unloaded.
I tried not to refactor anything but fixing the issue at hand, but i would assume MySenecCookieJar could be added as parameter when creating the session instead of overwriting _cookie_jar and does not need so much code anymore (if any?).
Fixes #56

BTW:
More votes than I expected, at least I'm not the only lazy one out there:
https://community.home-assistant.io/t/multiple-energy-dashboards/384719

thanks for you PR - did not knew yet, that's possible to get a own session (none shared) - I would like to alter the code, that only for the WEB-API a dedicated session will be used... and indeed adjusting the CookieJar patching again...
I hopefully can finish that during the day - to make things a bit easier for me would be cool, if next time (if will be ever the case) to make a PR to the development branch ;-)


Allow variable substitution of plain value without line feed removal

The variable substitution documented at https://fluxcd.io/docs/components/kustomize/kustomization/#variable-substitution systematically perform line feed removal in values, see
https://github.com/fluxcd/kustomize-controller/blob/8d61ff76d327ec76381f5f7fe3e9f0b722d75cf7/controllers/kustomization_varsub.go#L48-L55
https://pkg.go.dev/strings#Replace

func Replace(s, old, new string, n int) string
Replace returns a copy of the string s with the first n non-overlapping instances of old replaced by new. If old is empty, it matches at the beginning of the string and after each UTF-8 sequence, yielding up to k+1 replacements for a k-rune string. If n < 0, there is no limit on the number of replacements.

and related rationale during PR at
https://github.com/fluxcd/kustomize-controller/pull/275/files#r576788053
As a result, this prevents using variable substitution to construct linefeed-sensitive string fields from files loaded with config generator.
See discussion for the related use-case at https://github.com/fluxcd/flux2/discussions/2211
An opt-in, in the form of a label/annotation on certain resources such as kustomize.toolkit.fluxcd.io/substitute-linefeed-removal: disabled could enable such use-case.

Thank you for this proposal! It's very well thought-out, and already addresses many of the implementation questions we had as we were reviewing the idea at the Flux Bug Scrub today.
In general what I tell people when they ask for variable substitution to be more versatile than it is now, is that there are no guard rails and variable substitution is working on your YAML document as a plain text stream of bytes. Which means that it's very easy to break the YAML formatting, and so we strongly discourage doing anything that makes using the substitution feature more likely to ruin the formatting of the YAML.
Have you been able to use this adjusted version in your environment, and if so how do you find it working out for you? Are you able to write reasonable multiline strings in YAML (and do they come out as you'd hopefully expect in the resulting applied resources?)

Thanks @kingdonb for considering this proposal

Have you been able to use this adjusted version in your environment, and if so how do you find it working out for you? Are you able to write reasonable multiline strings into YAML substitutions now (and do they come out as you'd hopefully expect in the resulting applied resources?)

Do you mean that the proposal has been implemented somewhere and that I way test it ? If so, can you please clarify which flux version is bringing it as I could not yet easily spot it in the https://github.com/fluxcd/kustomize-controller/blob/main/CHANGELOG.md and I don't see a related change on the master branch code at
https://github.com/fluxcd/kustomize-controller/blob/34e2da27fa97fbc12565302892b497f1824c44c4/controllers/kustomization_varsub.go#L44-L65

The alternative I usually recommend for users who look for this support is patching, as kustomize CLI accepts patches from either inline sources or separate files, you can write a patchesStrategicMerge that updates the field with a multiline string, and it can even be validated for correctness as YAML (independently of the resources that it patches), or marked up with colorization by your editor to show when your YAML formatting is correctly invoking the scalar block, or other options.

In my specific use-case, detailed in https://github.com/fluxcd/flux2/discussions/2211 this is a multiline string which needs to be constructed within a yaml structure, see extract below.
apiVersion: osb.servicefabrik.io/v1alpha1
kind: SFPlan
metadata:
  name: &id 39d7d4c8-6fe2-4c2a-a5ca-b826937d5a88
spec:
  templates:
  - action: status
    type: gotemplate
    content: |
      ${status-bind.gotemplate}
      ${status-unbind.gotemplate}
      ${status-provision.gotemplate}
      ${status-unprovision.gotemplate}

The Json patch specificiation however does not allow for manipulating a existing string other than its full replacement, as far as I can read from https://datatracker.ietf.org/doc/html/rfc6902 specificially the add operation only applies on arrays and objects

Do you mean that the proposal has been implemented somewhere and that I way test it ?

No, I'm afraid that's not what I meant... I saw that you had identified the source of the newlines in your research, and I wondered if you had already attempted this, because I was speculating internally about what else can go wrong if that line of code which strips newlines is simply blocked from stripping them.
My suspicion is that a one-line change will not provide satisfactory results even if you know to use the annotation, because the text that you add with your variable substitution will have newlines, but it will not be easy for it to know the indent level that it should be at without backtracking and reading the string that it is substituted into.
So your multiline data which is intended to be inserted into a key-value pair that is indented to (say) 8 spaces will have to remember to indent subsequent lines by an additional 10 spaces to conform with the expected spacing in the YAML target file, it's going to have to look something like this:
data:
  the_value_is_multiline: |-
    This string is a multi-line, which will be indented at the normal level by substituting
              and this is its second line,

Please allow me some time to review the new information you provided in the discussion, as it will help me to better understand exactly how you're trying to solve this use case, and if there is a better option that I can suggest to make the solution more apparent. I'm not sure I've really understood your use case after reading both threads.
In general the position of the Flux team has been that the variable substitution feature based on envsubst is reaching for the bottom of the barrel when it comes to ways to generate and manipulate manifests. There are a few "features of last resort" and "alternatives we'd suggest instead" – and environment substitution was never meant to work with multi-line strings. A structured patch will provide better guarantees that some errant spacing will not break the spell and cause Flux to seize up with a validation failure until someone corrects the error.
If you need to patch a multi-line scalar block value into another resource (whether it's for composition or to remain DRY, or any other reason) I would suggest using Kustomize and patchesStrategicMerge in the kustomization.yaml to make those substitutions, because Kustomize will not perform the patch as a simple string manipulation. It will line up matching fields between the target and the patch, and overwrite them with whatever structured data was in the patch.
The problem remains though, that a single scalar block value cannot be "composed" with any of these tools. envsubst with Flux will balk at multi-line strings, and patchesStrategicMerge cannot perform merges inside of a scalar block. So there must be a good solution for this, ...but perhaps not in any of the places where we are currently looking. If you need to put several multiline strings together in the space of a single scalar block, then I'm afraid patchesStrategicMerge will not be the tool to help solve this either.

To be clear I am trying to talk you out of this feature as I have understood your request! I have imagined a few substandard implementations that I would not like to see in Flux, this might simply be a problem that I may not have the imagination required to conceive of a good solution to this type of issue in general. Or maybe I did not understand the problem at all.
I looked at it for a while though, and I think it makes sense now. This is clear enough:
    content: |
      ${status-bind.gotemplate}
      ${status-unbind.gotemplate}
      ${status-provision.gotemplate}
      ${status-unprovision.gotemplate}

You'd like to be able to take the content from these four files, located in a configmap (placed there by configmapgenerator) and substitute them into the target YAML with a Flux Kustomization. That's a really straightforward request now, at least from an end-user perspective, if I finally have it right.

thanks a lot @kingdonb for your deep study of my request as associated use-case.
You're absolutely right that in addition to configuring line feed trimming, indentation within the included variables content (e.g. ${status-bind.gotemplate}) is touchy and would require care to be authored in a friendly manner without error-prone manual indentation.
This would indeed require testing the yaml features, this tool might help https://yaml-multiline.info/


[QUESTION] Datatables AJAX Jquery

How to use AJAX in datatables here?, i can't access attribute datatables get error message DataTables warning: table id={id} - Cannot reinitialise DataTable and when I try see in inspect elements there already script that select the attributes of the datatables

I added "destroy: true", property at my script datatables initiator so the datatable script that already created before by adminlte template get skipped

@thyk123 If you are talking about the Datatables Blade Component, then documentation is available there. For most basic configurations, you can use the config property of the component. And yes, initialization is already done by the component, because it adds some default configuration to the plugin, plus the dom configuration if you enable the buttons extension.
What I usually do in these cases, is to get data making an ajax request to the source first, then you can format and put that data in to the under data property of the config attribute, see the examples.


openDevTools seems not to be documented

I expected to see it in the Browser Window docs. :thought_balloon:

The openDevTools API has been moved to webContents from browserWindow. The BrowserWindow.openDevTools is a deprecated API we prefer developers to use win.webContents.openDevTools instead.


UI fixes for failing model serving tests

Some updates to the UI requires dashboard fixes for the following model serving tests:
ODS-2626
ODS-2054

thank you for reviewing @CFSNM & @jiridanek , can you merge please ? I don't have authorization at the moment

merged @ConorOM1


Does ConfuserEx cause any breaking changes to an application on specific versions of Windows 7 or above (32- or 64-bit), or are anti-virus false positives the only thing to worry about?

This is a followup to my my question "What's the strongest protection settings without triggering anti-virus false positives?" ( #64 )
Does anyone know of examples of certain protection settings that cause mkaring's ConfuserEx to create breaking changes to an application on a specific versions of Windows 7 or above (32- or 64-bit) or on a machine where the user configured Windows in a certain unusual way, or are anti-virus false positives the only thing to worry about regarding issues that may occur on some users' machines but not others?

It depends on how the application is used.
I haven't encountered Windows 7 specific problems, just general issues.
Mostly centered around debugging, and reflection use.
Where I work, we have an application that cannot handle "-anti tamper" at all. It just crashes due to what the application is.
In addition, for the same reason we can't use the irreversible "rename" feature either. I have to use instead "+rename(mode=decodable)"
Any public members that might be shared with other assemblies, you can't use rename on at all, for obvious reasons.

Thanks @Gwindalmir for your sharing your experiences and thoughts regarding this very important topic.
I am sorry that you can't use anti-tamper and irreversible renaming, although as I understand it "decodable" renaming is really only reversible by the person who has the symbols.map file so at least your renaming should protect your code greatly.
My biggest concern is that I am using some protection settings that make my app no longer a simple cross-platform (Windows only, but Win 7, 8, and 10, and both 32- and 64-bit) application that is purely 100% C# that PEVerifies like a simple .NET application usually does. I've been developing pure, simple .NET applications that PEVerify for a long time and really appreciate the feature of .NET applications that they generally work on any Windows machine that is new enough and has the necessary .NET Framework. Using mkaring's ConfuserEx with the max protections per his recommendations cause my application to no longer PEVerify, and I have no real experience with what kind of issues this creates on different editions and configurations of Windows. I will do my best to test on different versions of Windows and with different configurations of Windows, but still, it would be great to know up front if there are any known issues of this kind.
I'm going to leave this issue open for another week or so in the hopes that more people share their thoughts and experiences on this.
@mkaring, any thoughts on this?
Thanks again for your help,
glasgowrob

The application will work on different versions of windows without any issue. It uses some native functions of windows, but these functions are present in the Kernel of Windows at the very least since Windows XP, likely ealier when following the Windows NT line. I can't tell you if it works on Windows ME and 98. :wink:
The renaming with the decodable option offers basically the same security as the normal version, except you can see all the letters used for the names except random unicode stuff. But it still can't be reversed without the map-file.
The compatibility problem starts getting real once you are trying to obfuscate an application that should run on anything but Windows. So an assembly that should run on Linux using Mono or .NET Core severely limits what protections you can use.
So all in all: There won't be any differences between the different versions of "recent" Windows Versions (since XP) that are introduced by ConfuserEx into your application.

I don't use MSIL generation, so I have no experience with PEVerify.
However to @mkaring's comment, I do have a .NET standard assembly that is compatible with Linux (dotnet sdk), and it works fine in my testing with the obfuscation settings I use.
I've never used PEVerify, so I have no comment on whether my assembly passes or not.

Thank you very much, @mkaring, for the detailed answer. I now feel greatly relieved about the full compatibility of ConfuserEx across recent Windows versions. I have little experience with Windows programming other than pure .NET programming, but the way you described the kernel thing makes perfect sense and is great news for all .NET developers who want to use your version of ConfuserEx.
Thanks also to @Gwindalmir for sharing your experiences with ConfuserEx obfuscation in a cross platform environment. The fact that ConfuserEx works in any cross platform application is really impressive in itself.
I am closing this issue now. Thanks again, guys.

The application will work on different versions of windows without any issue. It uses some native functions of windows, but these functions are present in the Kernel of Windows at the very least since Windows XP, likely ealier when following the Windows NT line. I can't tell you if it works on Windows ME and 98.
The renaming with the decodable option offers basically the same security as the normal version, except you can see all the letters used for the names except random unicode stuff. But it still can't be reversed without the map-file.
The compatibility problem starts getting real once you are trying to obfuscate an application that should run on anything but Windows. So an assembly that should run on Linux using Mono or .NET Core severely limits what protections you can use.
So all in all: There won't be any differences between the different versions of "recent" Windows Versions (since XP) that are introduced by ConfuserEx into your application.

Have been hit with this compatibility issue in Linux.


GadgetBinding : Build fails on OSX

Hi,
The latest commits to master seem to cause the build on OSX to fail when they hit GafferUIBindings/GadgetBinding.cpp
I've not seen this before, and I've tried it on the clean current master branch.
The error I'm seeing is:
g++ -o src/GafferUIBindings/GadgetBinding.os -c -pipe -Wall -Werror -g -DNDEBUG -DBOOST_DISABLE_ASSERTS -D__USE_ISOC99 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/python2.7 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/OpenEXR -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/GL -DQT_NO_KEYWORDS -fPIC -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DBOOST_PYTHON_MAX_ARITY=20 -DGAFFER_MILESTONE_VERSION=0 -DGAFFER_MAJOR_VERSION=16 -DGAFFER_MINOR_VERSION=0 -DGAFFER_PATCH_VERSION=4 -Iinclude -Ibuild/gaffer-<IP_ADDRESS>-osx/lib/Python.framework/Versions/2.7/include/python2.7 -F/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/lib src/GafferUIBindings/GadgetBinding.cpp
src/GafferUIBindings/GadgetBinding.cpp:178:1: error: unused typedef 'assertion' [-Werror,-Wunused-local-typedef]
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( fullTransformOverloads, fullTransform, 0, 1 );
^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:375:5: note: expanded from macro
      'BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS'
    BOOST_PYTHON_GEN_MEM_FUNCTION_STUB(                                                     \
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:276:9: note: expanded from macro
      'BOOST_PYTHON_GEN_MEM_FUNCTION_STUB'
        BOOST_PYTHON_OVERLOAD_CONSTRUCTORS(fstubs_name, n_args + 1, n_dflts)            \
        ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:216:46: note: expanded from macro
      'BOOST_PYTHON_OVERLOAD_CONSTRUCTORS'
                N,n_args>::too_many_keywords assertion;                                     \
                                             ^
src/GafferUIBindings/GadgetBinding.cpp:178:1: error: unused typedef 'assertion' [-Werror,-Wunused-local-typedef]
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:375:5: note: expanded from macro
      'BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS'
    BOOST_PYTHON_GEN_MEM_FUNCTION_STUB(                                                     \
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:276:9: note: expanded from macro
      'BOOST_PYTHON_GEN_MEM_FUNCTION_STUB'
        BOOST_PYTHON_OVERLOAD_CONSTRUCTORS(fstubs_name, n_args + 1, n_dflts)            \
        ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/python/detail/defaults_gen.hpp:225:46: note: expanded from macro
      'BOOST_PYTHON_OVERLOAD_CONSTRUCTORS'
                N,n_args>::too_many_keywords assertion;                                     \
                                             ^
2 errors generated.
scons: *** [src/GafferUIBindings/GadgetBinding.os] Error 1
scons: building terminated because of errors.

Any chance you could git bisect this to find the commit that caused the issue? I'm a bit stumped...

This seems to be the same problem, but not on OS X. They came to the conclusion that the problem is in boost and then added -Wno-unused-local-typedef to their build options :
http://lists.openimageio.org/pipermail/oiio-dev-openimageio.org/2014-January/013021.html
What confuses me about this is that it implies that you should have had the problem all along, unless you've changed compiler or boost version at some point?

I have 2 OSX machines, and I haven't compiled on this machine as much,
but I definitely have in the past. I had thought that the two were
pretty much set up the same, though.
My other OSX machine is perfectly happy though, but I won't be able to
try this out on it until tomorrow evening.
I've jumped back a shit-load and am trying to find a time when this
machine compiles happily - I'll let you know what I find.

Hmmm - so, annoyingly, I have two OSX machines in front of me, both running 10.10.5, one of which fails, and the other of which is fine.
The main difference that I can see is that the one that fails has had XCode updated to 7.0, and the one that works is still running XCode 6.4.
An easy way to test this would be to update XCode on the other one and see if that one starts failing, but then, if what I suspect is true, I'll be left with two machines unable to compile Gaffer!
For now, I'm going to see if it'll build okay if I remove -Werror - that might at least allow me to compile and test, even if I may end up getting errors elsewhere...

That sounds totally plausible - could you check the output of clang++ --version so see if the compiler versions differ? If you'd like to preserve -Werror (I think it's best if you can), you could try adding -Wno-unused-local-typedef.

Yup - a definite difference here:
Working:
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Failing:
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

I'll shift over my build options file to add -Wno-unused-local-typedef then. Hopefully that won't suppress anything else!

We're actually overdue a boost upgrade (to 1.55 for VFXPlatform), so I'll look into doing that (and EXR 2.2) when I next put together a dependencies release (should be soonish since we have a Cortex update in the offing). With a bit of luck, they'll have fixed the problem in that (might be wishful thinking).

Here's hoping!

Hey Hugh - is this problem still apparent with Boost 1.55?

Hey John,
I've had (sadly) very little time to spend on Gaffer this year so far. I can certainly give this a go and let you know, though.

I noticed you'd been a little quiet! No worries if you don't have time to look at this - I was just going through old tickets and wondered about this one, but it's certainly not a big deal...

I'm running a build now with the latest master and the <IP_ADDRESS> dependencies, and with -Wno-unused-local-typedef removed from the build flags.
Will let you know how it goes.

Sadly not...
In file included from src/GafferAppleseed/AppleseedLight.cpp:40:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/api/environmentedf.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/modeling/environmentedf/environmentedf.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/global/globaltypes.h:39:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/sampling/qmcsamplingcontext.h:38:
build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/qmc.h:1360:5: error: unused typedef 'boost_static_assert_typedef_1360'
      [-Werror,-Wunused-local-typedef]
    BOOST_STATIC_ASSERT(Base >= 2);
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/static_assert.hpp:170:16: note: expanded from macro
      'BOOST_STATIC_ASSERT'
               BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
               ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:544:28: note: expanded from macro 'BOOST_JOIN'
#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
                           ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:545:31: note: expanded from macro
      'BOOST_DO_JOIN'
#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
                              ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:546:32: note: expanded from macro
      'BOOST_DO_JOIN2'
#define BOOST_DO_JOIN2( X, Y ) X##Y
                               ^
<scratch space>:200:1: note: expanded from here
boost_static_assert_typedef_1360
^
4 errors generated.
scons: *** [src/GafferAppleseed/AppleseedLight.os] Error 1
scons: building terminated because of errors.

Oh well - thanks for taking a look...

In the error message, it looks like -Wunused-local-typedef is enabled.
Maybe you need to add -Wno-unused-local-typedef?
I haven't seen this error before. I'll try to see if I can reproduce it.
In the worst case, I think you can comment the BOOST_STATIC_ASSERT(Base >= 2);
line in appleseed and check if it fixes the problem.

I think you might have better luck with boost 1.57 or greater. I haven't built gaffer for a while, but when I did last, I needed 1.57.

@est77, adding -Wno-unused-local-typedefto the build flags specifically on OSX was the fix that I'd had in place, but @johnhaddon had hoped that this wasn't necessary any more.

Regarding the BOOST_JOIN error:
This happens when Qt's moc tool tries to parse a Boost header file that declares a C++ namespace using the BOOST_JOIN() macro. It does happen to some people but not to others; it probably depends on the exact versions of Boost and Qt.
I had made a fix to appleseed: https://github.com/appleseedhq/appleseed/commit/419f2e0f31a7a20238e9612474f35af93a9c7dd6

Thanks for the tip @dictoon! I'm not sure it's a moc issue in this case, since we're not parsing anything with moc, and as far as I can tell neither Gaffer or Appleseed includes any Qt headers from AppleseedLight.cpp. Does that sound right? @HughMacdonald, I just realised that the latest error you posted is in fact different to the original one (being in AppleseedLight.cpp rather than GadgetBinding.cpp). Is that a coincidence or has the original problem actually gone away to be replaced by this one?

You're right, if is different...
No sign of a Qt header. I ran the command below with the -H flag which prints out all included files, and no sign of any Qt files in there.
I only pasted in part of the error - he's the full thing (I'm running the specific compile g++ call here, rather than through scons, to make sure I get the full error from this one:
Hughs-MacBook-Pro-2:gaffer hughmacdonald$ g++ -o src/GafferAppleseed/AppleseedLight.os -c -pipe -Wall -Werror -g -DNDEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_HAS_INT128=1 -D__USE_ISOC99 -std=c++98 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/python2.7 -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/OpenEXR -isystem /Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/GL -fPIC -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_SIGNALS_NO_DEPRECATION_WARNING -DGAFFER_MILESTONE_VERSION=0 -DGAFFER_MAJOR_VERSION=23 -DGAFFER_MINOR_VERSION=0 -DGAFFER_PATCH_VERSION=1 -Iinclude -Ibuild/gaffer-<IP_ADDRESS>-osx/appleseed/include src/GafferAppleseed/AppleseedLight.cpp
In file included from src/GafferAppleseed/AppleseedLight.cpp:40:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/api/environmentedf.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/modeling/environmentedf/environmentedf.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/global/globaltypes.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/utility/dynamicspectrum.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/image/colorspace.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/fastmath.h:38:
build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/utility/casts.h:80:5: error: unused typedef 'boost_static_assert_typedef_80'
      [-Werror,-Wunused-local-typedef]
    BOOST_STATIC_ASSERT(sizeof(Target) == sizeof(Source));
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/static_assert.hpp:170:16: note: expanded from macro
      'BOOST_STATIC_ASSERT'
               BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
               ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:544:28: note: expanded from macro 'BOOST_JOIN'
#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
                           ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:545:31: note: expanded from macro
      'BOOST_DO_JOIN'
#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
                              ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:546:32: note: expanded from macro
      'BOOST_DO_JOIN2'
#define BOOST_DO_JOIN2( X, Y ) X##Y
                               ^
<scratch space>:32:1: note: expanded from here
boost_static_assert_typedef_80
^
In file included from src/GafferAppleseed/AppleseedLight.cpp:40:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/api/environmentedf.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/modeling/environmentedf/environmentedf.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/global/globaltypes.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/utility/dynamicspectrum.h:34:
build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/image/colorspace.h:822:5: error: unused typedef 'boost_static_assert_typedef_822'
      [-Werror,-Wunused-local-typedef]
    BOOST_STATIC_ASSERT(SpectrumType::Samples == 31);
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/static_assert.hpp:170:16: note: expanded from macro
      'BOOST_STATIC_ASSERT'
               BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
               ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:544:28: note: expanded from macro 'BOOST_JOIN'
#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
                           ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:545:31: note: expanded from macro
      'BOOST_DO_JOIN'
#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
                              ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:546:32: note: expanded from macro
      'BOOST_DO_JOIN2'
#define BOOST_DO_JOIN2( X, Y ) X##Y
                               ^
<scratch space>:34:1: note: expanded from here
boost_static_assert_typedef_822
^
In file included from src/GafferAppleseed/AppleseedLight.cpp:40:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/api/environmentedf.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/modeling/environmentedf/environmentedf.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/global/globaltypes.h:39:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/sampling/qmcsamplingcontext.h:38:
build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/qmc.h:267:5: error: unused typedef 'boost_static_assert_typedef_267'
      [-Werror,-Wunused-local-typedef]
    BOOST_STATIC_ASSERT(Base >= 2);
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/static_assert.hpp:170:16: note: expanded from macro
      'BOOST_STATIC_ASSERT'
               BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
               ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:544:28: note: expanded from macro 'BOOST_JOIN'
#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
                           ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:545:31: note: expanded from macro
      'BOOST_DO_JOIN'
#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
                              ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:546:32: note: expanded from macro
      'BOOST_DO_JOIN2'
#define BOOST_DO_JOIN2( X, Y ) X##Y
                               ^
<scratch space>:36:1: note: expanded from here
boost_static_assert_typedef_267
^
In file included from src/GafferAppleseed/AppleseedLight.cpp:40:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/api/environmentedf.h:36:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/modeling/environmentedf/environmentedf.h:34:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/renderer/global/globaltypes.h:39:
In file included from build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/sampling/qmcsamplingcontext.h:38:
build/gaffer-<IP_ADDRESS>-osx/appleseed/include/foundation/math/qmc.h:1360:5: error: unused typedef 'boost_static_assert_typedef_1360'
      [-Werror,-Wunused-local-typedef]
    BOOST_STATIC_ASSERT(Base >= 2);
    ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/static_assert.hpp:170:16: note: expanded from macro
      'BOOST_STATIC_ASSERT'
               BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
               ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:544:28: note: expanded from macro 'BOOST_JOIN'
#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
                           ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:545:31: note: expanded from macro
      'BOOST_DO_JOIN'
#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
                              ^
/Users/hughmacdonald/development/gaffer/build/gaffer-<IP_ADDRESS>-osx/include/boost/config/suffix.hpp:546:32: note: expanded from macro
      'BOOST_DO_JOIN2'
#define BOOST_DO_JOIN2( X, Y ) X##Y
                               ^
<scratch space>:38:1: note: expanded from here
boost_static_assert_typedef_1360
^
4 errors generated.

I found this that maybe helps: https://svn.boost.org/trac/boost/ticket/7242
Checking the static assert code for boost 1.55, the unused attribute is only
used when the compiler is gcc,

Closing - fixed in #1885.