Added achieving core files for mac

achieve core files from /cores on mac
Issue: AdoptOpenJDK/openjdk-tests/issues/1564

Signed-off-by: Longyu Zhang<EMAIL_ADDRESS>

Example for test failure is Grinder 304;
Example for build failure is tested locally with the output as follows:
     [exec] JVMDUMP039I Processing dump event "vmstop", detail "#0000000000000000" at 2020/04/05 22:35:20 - please wait.
     [exec] JVMDUMP032I JVM requested System dump using '/cores/core.20200405.223520.27476.0001.dmp' in response to an event
     [exec] JVMDUMP010I System dump written to /cores/core.20200405.223520.27476.0001.dmp
     [exec] JVMDUMP013I Processed dump event "vmstop", detail "#0000000000000000".

BUILD FAILED
/Users/lon/Documents/repos/openj9/test/TKG/scripts/build_test.xml:58: The following error occurred while executing this line:
/Users/lon/Documents/repos/openj9/test/functional/TestExample/build.xml:75: The following error occurred while executing this line:
/Users/lon/Documents/repos/openj9/test/functional/TestExample/build.xml:52: exec returned: 1

Total time: 22 seconds
1
20200405-22:35:42 - Attempting to move the TDUMPS to '/Users/lon/Documents/repos/openj9/test/TKG/../TKG/test_output_15861405191368/compile'.
original cores folder: total 14706280
 drwxr-xr-x   3 root  wheel          96  5 Apr 22:35 .
 drwxr-xr-x  22 root  admin         704  7 Mar 22:37 ..
 -r--------   1 root  wheel<PHONE_NUMBER>  5 Apr 22:35 core.20200405.223520.27476.0001.dmp

20200405-22:35:42 - Successfully moved core file core.20200405.223520.27476.0001.dmp.
dest files: total 14706296
 drwxr-xr-x  4 root  staff         128  5 Apr 22:35 .
 drwxr-xr-x  3 root  staff          96  5 Apr 22:35 ..
 -rw-r--r--  1 root  staff        7608  5 Apr 22:35 compilation.log
 -r--------  1 root  wheel<PHONE_NUMBER>  5 Apr 22:35 core.20200405.223520.27476.0001.dmp

Please fix the conflicts. Thanks.

Example of build failure with default core dump location (moved): Grinder_TKG 334;
Example of build failure with core dump to /cores (moved): Grinder_TKG 338;
Example of test failure with default core dump location (no need move): Grinder_TKG 337.

Not only we need to test on mac, but we also need to test on wins, aix, xlinux and zos
test a passed test
test in both internal and Adopt Jenkins (selected platforms)

So far, following tests have passed:
Archived core on Internal mac, xlinux, win, aix, zos are Grinder_TKG/378-381, 389
Archived core on Adopt xlinux, win, aix are https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/1226 - 1228
One passed test on Internal mac, xlinux, win, aix, zos are Grinder_TKG/406-409, 414
One passed test on Adopt mac, xlinux, win, aix are https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/1256 - 1259
The only problem remaining is core generate on Adopt Jenkins Mac machine met permission issue and cannot generate, posted in Issue https://github.com/AdoptOpenJDK/openjdk-tests/issues/1564 for more information.

@llxia This PR has been updated to remove $spec, and re-tested on the following platforms (Adopt Mac is still waiting for permission change), thanks.
Grinder_TKG:
aix: 583   xlinux: 584    win:593   zos:600   mac:592
Adopt:
aix: https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/1287/
xlinux: https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/1288/
win: https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/1310
mac: Still waiting for permission change in issue https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1282


Cleanup Unixen TPCConnection read buffer resizing

We were calling it in a number of places that don't matter. Ends up
being extra function calls that serve no purpose. Also, removes a
duplicate guard around doing a resize. In that one case, we'd check the
resize condition twice in a row.

@slfritchie, @dipinhora is letting the folks who know what they're doing work without too many needless distractions. 8*)

@dipinhora it's very bold of you to say that I know what I'm doing.

@SeanTAllen i think it's a fair statement given how many of my bugs you and @slfritchie have found and fixed.

@dipinhora and you mine.


Allows to specify how many (future) month should be displayed

This PR introduce new setting-var: countNextMonthsas a number equal or greater than 1 (act-month - 'infinite') with the default setting or 3 month as it is now.
PS: I had to remove the .gitignore line for dist to get it to load with ionic -> is the .gitignore 'fix' from last week intended?

sry the PR gets polluted by other commits I'm currently testing...don't know how to disable this

@EbilPanda
Hi, Thank you for your PR!
But now can not release the new version, please revoke your changes for README.md&package.json,  then I will merge.

Hey @EbilPanda, really nice contribution!

Check until which commit you want to have to this PR.
Get its hash
Do git reset --hard yourhash. example: git reset --hard b3d637b for the updated readme... one
Force push the repo like git push origin -u yourbranch -f

I'd recommend you to create a new branch based on your current one(just for backup), though.

I have gone back on my baster branch and also made a branch out of it :)
will make the other feature I'm currently on directly as a branch :)
hope everything is okay now -> have removed readme commit and revert the change to package.json


ITE: drivers/i2c: I2C driver divided into two compatibles

As mentioned in #42882, the I2C of IT8XXX2 is designed for two different
IP blocks, so this PR divides this I2C driver into two compatibles.
Signed-off-by: Tim Lin<EMAIL_ADDRESS>

Dear @gmarull,
Could you review the requested changes, thanks!

Hi @teburd, @keith-zephyr, @mbolivar-nordic
I need to get your approval again, thanks!

Dear sirs,
Truly grateful for helps. However, we’d like to invite you back to review the PR #42812 which is about the I2C 50KHz option. Thanks again for your great patience and guidance.


Dart native support

I would like to run Pytourch Lite on my server side that use Dart native.
Since we are using pigeon to generate the code, I am wondering how hard it will be to generate code for dart native.
Does pigeon even support generating dart native code?.

Sadly the binaries to run the models are each into android and iOS sdks,so pure dart version is extremely hard

I see implementations in c++ https://pytorch.org/cppdocs/ and rust tch-rs and maybe even c ATen.
Maybe we can generate it using pigeon or ffi

Pytorch lite is depreciated and the new package by pytorch is exectorch
The reason that I don't think of going through the effort is that mainly that, maybe when exectorch is stable I may switch to it and make it in cpp
In all ways will need to wait for dart native assets support to include the binaries in the dart build process

note if you want ffi i tried it already it had a problem with ios, this is why i switched back
https://github.com/abdelaziz-mahdy/pytorch_lite/tree/latest-ffi
and if you are making a backend or ci, python will be the easier solution in the usecase you mentioned

Cool ffi will be good.
I know python is a good option but I prefer my frint end and the back end to have the same programming language so if I have the option I will take it.


[Backport 2.0] [Javadocs] add to internal classes in o.o.http, indices, and search (#3288)

Backport https://github.com/opensearch-project/OpenSearch/commit/86f8dd65a45810ae671ee1f607a2d5287649d66b from https://github.com/opensearch-project/OpenSearch/pull/3288

start gradle check


Badges not reading from shields IO

All badges working but not license type badge.

All badges working but not license type badge.


Issue: <Please write a comprehensive title after the 'Issue: ' prefix>

Issue you'd like to raise.
This is that the documentation has to be improved
from langchain.indexes.vectorstore import VectorstoreIndexWrapper
to from langchain.indexes.vectorstore import VectorStoreIndexWrapper

Suggestion:
edit this from langchain.indexes.vectorstore import VectorstoreIndexWrapper
to from langchain.indexes.vectorstore import VectorStoreIndexWrapper

Now I see lot of changes made. Please close this issue as of now.


What is the "recommended class order"?

Hi
First of all, thanks for the plugin! Glad to see Tailwind Labs improving the DX more and more.
The README states:

A Prettier plugin for Tailwind CSS v3.0+ that automatically sorts classes based on our recommended class order.

I could not find this in the Tailwind CSS documentation. Could you please link to it? Or is this documented somewhere else?

Hey! You can find this explained in our announcement blog post about this plugin:
https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted
I've also added a link to this in the readme: d3c66e0d6c7337950bc1550b945cf8a54f1b967e
Hope that helps! 👍

Awesome, thank you!


Restore previously closed tab: Context menu on tab

Add this feature please, as FireFox have, because its so confusing when you close a tab, but cant roll it back! :(

Right click on new tab button or title bar.

I have added the reopen menu item:

See my commit "Add feature: Reopen closed tab/window in tab context menu.":
https://github.com/XP1/thorium/commit/3b070e187c14118f949c036651b12c461840f18b
@Alex313031 @gz83, review and pull request?

I have added the reopen menu item:

See my commit "Add feature: Reopen closed tab/window in tab context menu.": XP1@3b070e1
@Alex313031 @gz83, review and pull request?

Thank you for your work. At first glance, there seems to be no problem. After you add this option to the context menu, will the entire tabstrip and related context menus function normally?
Also, this feature can actually be achieved using the method described in your previous comment. I think this may be a duplicate, but I will leave it to Alex to make the final decision.
Finally, can you submit your PR to the Thorium repo?
@XP1 @Alex313031

Other menu items should function normally. I didn't delete any code. I only added the code for the reopen menu item.
Feature should make the reopen tab more accessible (also implemented in Firefox, Opera, Vivaldi, Brave). Users tend to right click on a tab rather than the button or title bar.
PR: https://github.com/Alex313031/thorium/pull/558

Other menu items should function normally. I didn't delete any code. I only added the code for the reopen menu item.
Feature should make the reopen tab more accessible (also implemented in Firefox, Opera, Vivaldi, Brave). Users tend to right click on a tab rather than the button or title bar.
PR: #558

Tabstrip is the main and commonly used interactive component. Any type of modification may cause exceptions. Please make sure to combine it with Thorium's code and conduct sufficient testing (you need to compile Thorium browser yourself) to avoid unnecessary trouble.
@XP1


[$1000] mWeb/safari -Reimburse expenses-  Drop for Unit field down doesn't work consistently

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to staging.new.expensify.com
Go to Workspace settings
Go to the "Reimburse expenses" setting
Under "Track Distance", tap on the input for "Unit" ( you will get the popup under the Unit field)
Tap on Rate and than tap on Unit ( you will get the popup above the Unit field)

Expected Result:
Drop for Unit field down works consistently
Actual Result:
Drop for Unit field down doesn't work consistently
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] iOS / Safari

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/209881770-b6a47beb-d465-4496-b27d-f2f02ead9183.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01a7a0075be57920b5
Upwork Job ID:<PHONE_NUMBER>081532416
Last Price Increase: 2023-01-03

Hmm, interesting. I suppose this is technically a bug, though I wonder if it's even solvable. Perhaps there is a CSS solution to this. Opening up to external to see if anyone has ideas.

@puneetlath Not able to reproduce by following mentioned steps is there I am missing any steps for reproduction ?
Steps followed for reproduction are as below:-

Go to Workspace settings
Go to the "Reimburse expenses" setting
Under "Track Distance", tap on the input for "Unit" ( you will get the popup under the Unit field)
Tap on Rate and than tap on Unit ( you will get the popup above the Unit field)

Development :-
https://user-images.githubusercontent.com/81307212/210452577-c47363a2-61d4-4cd2-a4ca-b25001fa7858.mov
Staging :-
https://user-images.githubusercontent.com/81307212/210452813-13e3821f-b386-4d02-8f3e-a0599cc9a2bf.mov

@syedsaroshfarrukhdot it happens because of the on-screen keyboard. Looks like you don't have that in your emulator, which is why you aren't seeing it.

React native picker uses <select> tag to show the picker. We can easily reproduce on any web that has picker and a text field, for example here https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select. I don't think this one is solvable.

Yes, I agree. I see this as an issue with how  works in mobile safari rather than a bug in our platform. I'm going to go ahead and close. Thanks!


Add Option to consider timeout equivalent to a crash

I may be dense and just missing how to do this, but it would be nice to have an option which allows me to consider a timeout a test failure - its easy to add timeouts which will catch infinite loops which its reasonable to care about detecting using honggfuzz.

It's -T

Ah! Thanks. Maybe the docs for -T could be updated to be slightly clearer? Its not clear to me that SIGVTALRM implies that.

Good idea! - I added more explanatory description in https://github.com/google/honggfuzz/commit/97095d7b5e481fe29da74bd882a1137728a7ee32


Update faker data

Description
Updates faker data to create UserMembership objects for fake employer accounts.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

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

Job List:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Approved.


Port state preparation tutorial to use PL-Qiskit

Summary
Port the state preparation tutorial from using PL-Forest to using PL-Qiskit. This fixes https://github.com/XanaduAI/qml/issues/35.
Benefits

This tutorial can be a major bottleneck in building the documentation when using later versions of pyquil - it can take on the order of days. Currently we have pyquil pinned to v2.10 in the requirements, which is now relatively outdated as the latest release is v2.17. This PR will remove the dependency on pyquil and ensure that users don't have to wait a long time to build the docs.
We currently do not have a tutorial showing the use of Qiskit, this PR will add this.

Possible drawbacks

We would no longer have example use of Forest in the tutorials. However, there are incoming tutorials (e.g. https://github.com/XanaduAI/qml/pull/37) that will add this back in and be compatible with later releases of pyquil.
The original pyqvm Rigetti device was very fast and typically could do 10 iterations in about 4 seconds on my PC (total time = 1-2 mins). Switching to qiskit.aer is much slower, 10 iterations is about 40 seconds (total time = 10-15 mins).
I have had to decrease the number of steps from 200 to 100 to prevent timeout on CircleCI (halving the runtimes above). Actually, things seem ok in just 100 steps although the cost function is quite variable.

@josh146 I had a thought that using qvm rather than pyqvm might be a simple fix, but I just tried this out and it also takes a while - even with avoiding recompilation.
Switching to default.qubit might make sense - this incoming tutorial https://github.com/XanaduAI/qml/pull/40 gives an example of using Rigetti and Qiskit so I think it's ok to lose the example of Rigetti/Qiskit in this tutorial.

Awesome, let's swap to default qubit.

It takes ~1-2 minutes on default.qubit. Will make a fresh PR now.

Closing and switching to https://github.com/XanaduAI/qml/pull/41.


Cherry pick Add support for riscv64 to active_release

Automatic cherry-pick of 4b6ea06

Originally appeared in https://github.com/apache/arrow-rs/pull/769: Add support for riscv64

Codecov Report

Merging #790 (41afd38) into active_release (391be40) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@                Coverage Diff                 @@
##           active_release     #790      +/-   ##
==================================================
- Coverage           82.53%   82.53%   -0.01%
==================================================
  Files                 167      167
  Lines               47014    47014
==================================================
- Hits                38805    38804       -1
- Misses               8209     8210       +1

Impacted Files
Coverage Δ

parquet/src/util/hash_util.rs
95.77% <ø> (ø)

parquet/src/encodings/encoding.rs
94.48% <0.00%> (-0.20%)
:arrow_down:

Continue to review full report at Codecov.

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


Settings - Welcome message missing

Issue: When creating a new account when you go to Settings/Profile there should be a welcome message with the mascot. It looks like it went missing
OS:
-MacOS
-Windows
-Linux
Screen recording:
https://user-images.githubusercontent.com/93608357/225948292-101d2b45-cf26-48e0-91ca-57cecd8644d3.mov

Bumping priority since this is a regression.


Remove private class properties

This pull request removes private class properties from the code to make it ES5 compliant.

coverage: 99.492% (-0.5%) from 100.0%
when pulling 7342ca7ae077cff3ea8d11fff68122419d581227 on remove_private_class_properties
into 259895b6d574224c521fb3e0d1e7e28342e1139b on master.


Typo: communication:languageOfCorrespondance

see https://github.com/hl7ch/ch-core/issues/142

Changelog corrected; issue solved in ch-orf.

Checked and ok


Add new messages

Add following message types.

geometry_msgs/Transform
geometry_msgs/TransformStamped
navigation_msgs/Path
tf2_msgs/TFMessage

Thank you @tarukosu for this merge request.
Please add your name and your affilitation in the haeder.  You are the author of these files.
Please compile and replace the RosBridgeClient.dll in the folder \Unity3D/Assets/RosSharp/Plugins with your update.
I will then merge this request.

I have rewritten the header and replaced the dll.
Could you confirm it?

Thank you @tarukosu !

Hi @tarukosu and @MartinBischoff,
Could you please consider add ROS senor range message (range.cs) into you official ros-sharp-master? Range type is very different from other message types. I am very confused on uint8 ULTRASOUND=0 and uint8 INFRARED=1. I am not sure I should use public const byte or public uint type for them in my range.cs. I am not good enough to have this done. Thanks a million.


fix(objection): table name 'xxx' specified more than once

When a relation was already joined with withGraphJoined, ucast was adding the relation
a second time. Now a check for the relation is performed.
fixes #17

Is there a place to add unit tests for this functionality? I tried pnpm test but it told me that test was not found.

tests lives in a package folder.

https://github.com/stalniy/ucast/blob/master/packages/sql/spec/objection.spec.ts


upgrade sbt-api-mappings so build works on JDK 9

this came up in the context of the Scala community build, at
https://github.com/scala/community-builds/issues/609
also threw in an sbt version bump just 'cause

Codecov Report

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

@@           Coverage Diff           @@
##           master     #830   +/-   ##
=======================================
  Coverage   87.99%   87.99%
=======================================
  Files          64       64
  Lines        1499     1499
  Branches        4        4
=======================================
  Hits         1319     1319
  Misses        180      180

Continue to review full report at Codecov.

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

LGTM. Many thanks ... merging :-)


Using /// comments break paragraphs

I've found I can't use paragraphs when inside /// doc-comments. Using this header file:
namespace example {

/** First function
 *
 * This one uses block comments and multiple paragraphs and such can be used.
 *
 * #### Example
 *
 * ```c++
 * first();
 * ```
 */
void first();

/// Second function
///
/// This one uses single-line comments and the paragraphs are broken.
///
/// #### Example
///
/// ```c++
/// second();
/// ```
void second();

} // namespace example

The documentation for the first function is correct, but the second does not, getting all its paragraphs jammed together:

This might be Windows specific, as I haven't been able to test it on Linux. It doesn't seem to be end-of-line related though.

Attaching the generated markdown file.
index.md

Thanks for the report @Tim-Evans-Seequent! Seems to be a bug, yes. Looking into it.

Got it. New release on the way with the fix.


Add nf-test to each test config

Description of feature
https://www.nf-test.com/

add nf-test to the pipeline level bytesize talk: https://www.youtube.com/watch?v=VaKcd_qgBJc


Set log field when parsing failed

fmt.Println 不是一个好的日志习惯，所以我们将解析错误放入trace中

Coverage decreased (-3.4%) to 82.353% when pulling 358c95bac9465d331bec26d37002b38a92f19bf7 on hotfix/error-record into 3ab3dd536d7106e95eb9824dc7075196a8c8950c on master.

@coveralls
@zensh
没有好的方法能测试到解析错误这个分支

Coverage decreased (-3.4%) to 82.353% when pulling f354971f3d493ff9632fa542dcd93c88da594a8c on hotfix/error-record into 3ab3dd536d7106e95eb9824dc7075196a8c8950c on master.


AttributeError: 'NoneType' object has no attribute 'body'

Hello Marcelo,
sadly, I get this error message:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8/checker.py", line 687, in _run_checks
    return checker.run_checks()
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8/checker.py", line 597, in run_checks
    self.run_ast_checks()
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8/checker.py", line 500, in run_ast_checks
    for (line_number, offset, text, _) in runner:
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8_plugin_utils/plugin.py", line 71, in run
    visitor.visit(self._tree)
  File "/usr/lib/python3.8/ast.py", line 371, in visit
    return visitor(node)
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8_fastapi/visitors/undocumented_exception.py", line 28, in generic_visit
    self._visit_func(child)
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8_fastapi/visitors/undocumented_exception.py", line 44, in _visit_func
    excepted_status = self.find_exceptions_in_body(node)
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8_fastapi/visitors/undocumented_exception.py", line 74, in find_exceptions_in_body
    _excepted_status = self.find_exceptions_in_body(body)
  File "/home/ikreb/netz/project/backend/venv/lib/python3.8/site-packages/flake8_fastapi/visitors/undocumented_exception.py", line 52, in find_exceptions_in_body
    for element in node.body:
AttributeError: 'NoneType' object has no attribute 'body'
"""

This is my system:
flake8 --version
4.0.1 (flake8-fastapi: 0.7.0, mccabe: 0.6.1, pycodestyle: 2.8.0, pyflakes: 2.4.0) CPython 3.8.10 on Linux

If you need any further information, let me know.

You should probably try to pinpoint this error to a specific file/expression, for example by digging into the verbose output of flake8 or by running the checker on each file itself. This usually makes it much easier to fix the actual issue.

Hi, I've researched this issue. It seems that this happens when this function
def find_function(self, func_name: str) -> ASTCallable:  # type: ignore[return]
        for child in ast.walk(self.parent):
            if (
                isinstance(child, (ast.AsyncFunctionDef, ast.FunctionDef))
                and child.name == func_name
            ):
                return child

is not able to find the proper return value and returns None instead. This happens in few scenarios.

Using builtins like print()
Importing functions from other modules. For example importing "from math import floor" and then using it in tested file.
When using not existing methods on class. For example:

from fastapi import FastAPI, HTTPException

app = FastAPI()

class MyClass:

    ...

@app.get("/")
def home():
    my_object = MyClass()
    my_object.raise_here()

And in probably some other cases.
"Quickfix" for this would be to annotate return value of find_function as  Optional[ASTCallable] and add check if the body is not None before running self.find_exceptions_in_body on it.
Unfortunately this plugin would loose an ability to detect UndocumentedHTTPException on functions/methods that are defined outside of the tested module.

Any progress? I am facing the same problem:(


filter compile not working with Jade filters via Grunt

I don't know where I can get help with this so I will write this issue into all related repositories: this, visionmedia/jade#1503 and btwael/mammouth#36.
I am trying to add Mammouth filter to grunt-contrib-jade.
filters.js
var jadefilters=module.exports={};
jadefilters.mammouth=function(str){
	return require('mammouth').compile(str);
};

gruntfile.coffee
		jade:
			compile:
				options:
					data:(dest,src) ->
						return require('./locals.json')
					filters: require('./filters.js')
				files:[
					expand:true
					cwd:'<%=locals.path.src%>/templates/'
					src:'*.jade'
					dest:'<%=locals.path.dev%>'
					ext:'.php'
				]

index.jade
doctype html
html
	body
		:mammouth
			list = [1, 2, 3, 4, 5]

And I get this:
Running "jade:compile" (jade) task
[ { type: 'embed', content: 'list = [1, 2, 3, 4, 5]' } ]
File test/index.php created.

So I have Mammouth code instead of compiled PHP.
index.php
<!DOCTYPE html>list = [1, 2, 3, 4, 5]

But I want to get this:
index.php
<!DOCTYPE html><?$list = array(1, 2, 3, 4, 5);?>

mammouth is installed globally and in a project with sudo npm install --save.

I have separated to modules gruntfile, based on generator-yeogurt output and customized by me.
grunt/config/compile/jade.js:
// Configuration for jade task(s)
// Compile jade templates into HTML
'use strict';
var taskConfig=function(grunt){
	grunt.config.set('jade', {
		server: {
			options: {
				pretty: true,
				client: false,
				data: {
					debug: true
				},
				filters: {
					sass: function(block){
						return require('node-sass').render(block);
					}
				}
			},
			expand: true,
			cwd: '<%= yeogurt.client %>/templates/',
			dest: '<%= yeogurt.tmp %>/',
			src: [
				'*.jade',
				'!_*.jade'
			],
			ext: '.html'
		},
		dist: {
			// the same with different output and disabled `debug`
		},
	});
};
module.exports=taskConfig;

Error:
Running "jade:server" (jade) task
>> TypeError: client/templates/index.jade:31
>>     29| 		.columns
>>     30| 			style
>>   > 31| 			:sass
>>     32| 					#collider-depth
>>     33| 						position: absolute
>>     34| 						top: 0
>>
>> Cannot convert null to object
Warning: Jade failed to compile "client/templates/index.jade". Use --force to continue.

Aborted due to warnings.

Notes:

node-sass is installed into this project and saved into project.json with --save-dev
grunt-contrib-jade 0.14.1

I created a test repo to show you that this feature is actually not working even in simplest build: https://github.com/Grawl/jade-filters
Only :coffee and :styl is working. I think they are hardcoded in jade or grunt-contrib-jade.

sass.render is an asynchronous function. https://github.com/sass/node-sass#render-callback--v300

@shinnn I cannot understand how to use it 😐

@Grawl Use sass.renderSync instead.
https://github.com/sass/node-sass/blob/a0bd310482edc071259b16c656456a64a5c28dd0/lib/index.js#L326-L367

@shinnn I already tried this and got an error:
>> {
>>   "status": 3,
>>   "message": "File context created without an input path"
>> }

I look at renderSync code and don't see any input, only parameters object.

@Grawl It's not related to grunt-contrib-jade.

@shinnn agree. But can you help me with this? Maybe Gitter.

@Grawl It's better to ask the authors of jade or node-sass about it, instead of us.


Can't input decimal numbers.

When trying to input a number into float field, for example 0.5, it snaps back to 0.
Unity 2021.3.10f

Update: Seems related to #2, Slider-type fields are unaffected, but it doesn't work for regular fields and for MinMaxSlider fields


[Doc]add bitmap func related be config

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[X] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[X] I have checked the version labels which the pr will be auto backported to target branch

[X] 3.0
[X] 2.5
[X] 2.4
[X] 2.3

run starrocks_admit_test


Making the code use more common python conventions and making it explorer specific

I was wondering if you'd object to me renaming some of the files and libraries in a pull request?

The current name spi_serial is possibly too generic - since it has some assumptions about GPIO ports and similar that are Edison Explorer specific.
Some of the filenames (like RemoteLEDs.py) don't follow the normal python convention of lowercase filenames.
I'd also like to add a software license to the README. Would you let me know which one you're releasing this under?

Once this is done, we can then push this as an actual Python package, which would make maintenance and installation easier.
Thanks!

That would be awesome. We're planning to use the MIT license, and I'd be
very grateful for the help in making this library conform to python's
styles.
On Thu, Sep 15, 2016 at 3:23 PM, Oskar Pearson<EMAIL_ADDRESS>wrote:

I was wondering if you'd object to me renaming some of the files and
libraries in a pull request?

The current name spi_serial is possibly too generic - since it has
some assumptions about GPIO ports and similar that are Edison Explorer
specific.
Some of the filenames (like RemoteLEDs.py) don't follow the normal
python convention of lowercase filenames.
I'd also like to add a software license to the README. Would you let
me know which one you're releasing this under?

Once this is done, we can then push this as an actual Python package,
which would make maintenance and installation easier.
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW/issues/5,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApIHki-QUS8x7OglIzPIimlLnddJBesks5qqcVPgaJpZM4J-asj
.


Output step only for enabled protections

I'm trying to understand what protections are being applied to my program, but from what I've noticed the output shows step of all protections, even if I disable all protections!
This is the log of a disabled protection, implying that all protections have been applied:
 [INFO] Processing module 'Common.dll'...
[DEBUG] Executing 'Invalid metadata addition' phase...
[DEBUG] Executing 'Renaming' phase...
[DEBUG] Renaming...
[DEBUG] Executing 'Anti-tamper module writer preparation' phase...
[DEBUG] Executing 'Anti-debug injection' phase...
[DEBUG] Executing 'Anti-dump injection' phase...
[DEBUG] Executing 'Anti-ILDasm marking' phase...
[DEBUG] Executing 'Encoding reference proxies' phase...
[DEBUG] Executing 'Constant encryption helpers injection' phase...
[DEBUG] Executing 'Resource encryption helpers injection' phase...
[DEBUG] Executing 'Type scrambler' phase...
[DEBUG] Executing 'Constants encoding' phase...
[DEBUG] Executing 'Hardening Phase' phase...
[DEBUG] Executing 'Anti-tamper helpers injection' phase...
[DEBUG] Executing 'Control flow mangling' phase...
[DEBUG] Executing 'Post-renaming' phase...
[DEBUG] Executing 'Anti-tamper metadata preparation' phase...
[DEBUG] Executing 'Apply watermark' phase...
[DEBUG] Watermarking...

Another possibility would be at the beginning of the log of each file to say which protections will be applied...

This is no joke.
I have tried to disable all protections (to then enable them one at a time) and have failed every time.
Here is the .csproj file:
<project outputDir="Confused\" baseDir="d:\project1\bin\Release\" xmlns="http://confuser.codeplex.com">
  <module path="project1.dll">
	<rule pattern="true" inherit="false">
	  <protection id="anti debug" action="remove" />
	  <protection id="anti dump" action="remove" />
	  <protection id="anti ildasm" action="remove" />
	  <protection id="anti tamper" action="remove" />
	  <protection id="constants" action="remove" />
	  <protection id="ctrl flow" action="remove" />
	  <protection id="harden" action="remove" />
	  <protection id="invalid metadata" action="remove" />
	  <protection id="ref proxy" action="remove" />
	  <protection id="resources" action="remove" />
	  <protection id="typescramble" action="remove" />
	  <protection id="rename" action="remove" />
	  <protection id="watermark" action="remove" />
	</rule>
 </module>
</project>

And here is the output:
 [INFO] Confuser.Core 1.6.0+447341964f Copyright © 2014 Ki, 2018 - 2022 Martin Karing
 [INFO] Running on Microsoft Windows NT 6.2.9200.0, .NET Framework v4.0.30319.42000, 64 bits
[DEBUG] Discovering plugins...
 [INFO] Discovered 13 protections, 1 packers.
[DEBUG] Resolving component dependency...
 [INFO] Loading input modules...
 [INFO] Loading 'project1.dll'...
 [INFO] Initializing...
[DEBUG] Building pipeline...
[DEBUG] Executing 'Type scanner' phase...
 [INFO] Resolving dependencies...
[DEBUG] Checking Strong Name...
[DEBUG] Creating global .cctors...
[DEBUG] Executing 'Name analysis' phase...
[DEBUG] Building VTables & identifier list...
[DEBUG] Analyzing...
[DEBUG] WinForms found, enabling compatibility.
 [INFO] Processing module 'project1.dll'...
[DEBUG] Executing 'Invalid metadata addition' phase...
[DEBUG] Executing 'Renaming' phase...
[DEBUG] Renaming...
[DEBUG] Executing 'Anti-tamper module writer preparation' phase...
[DEBUG] Executing 'Anti-debug injection' phase...
[DEBUG] Executing 'Anti-dump injection' phase...
[DEBUG] Executing 'Anti-ILDasm marking' phase...
[DEBUG] Executing 'Encoding reference proxies' phase...
[DEBUG] Executing 'Constant encryption helpers injection' phase...
[DEBUG] Executing 'Resource encryption helpers injection' phase...
[DEBUG] Executing 'Type scrambler' phase...
[DEBUG] Executing 'Constants encoding' phase...
[DEBUG] Executing 'Hardening Phase' phase...
[DEBUG] Executing 'Anti-tamper helpers injection' phase...
[DEBUG] Executing 'Control flow mangling' phase...
[DEBUG] Executing 'Post-renaming' phase...
[DEBUG] Executing 'Anti-tamper metadata preparation' phase...
[DEBUG] Executing 'Apply watermark' phase...
[DEBUG] Watermarking...
[DEBUG] Executing 'Packer info extraction' phase...
 [INFO] Writing module 'project1.dll'...
[DEBUG] Encrypting resources...
 [INFO] Finalizing...
[DEBUG] Saving to 'd:\project1\bin\Release\Confused\project1.dll'...
[DEBUG] Executing 'Export symbol map' phase...
 [INFO] Done.
Finished at 6:12 PM, 0:00 elapsed.

ILSpy confirms all kinds of shenanigans have taken place.
It's nuts.

Same happening for me, no preset and no protections applied.

@LaraSQP @digocesar, it seems like it would say that is executes all phases even if it doesn't.
No changes were made, only the ones that you have specifically "asked" for.

I have checked with ILSpy.
Some protections are always executed (like naming or resources) even when they are all explicitly removed.

In my case the disabled protections were not executed. Only output that is showing wrong message.

Found the problem.
Even if all protections are disabled, the output exe/dll is not identical to the source.

Probably some minor changes that are very hard to pin-point. Do a bindiff, probably not the code.

Found the problem.
Even if all protections are disabled, the output exe/dll is not identical to the source.

Probably some minor changes that are very hard to pin-point. Do a bindiff, probably not the code.

Well, some assemblies now contain stuff like this:

Again, all protections disabled as shown above.


Stage Manager Like Feature

Description of the new feature / enhancement
A stage like feature, maybe with some additional feature, does makes sense for multitasking when you don't want to grab win+tab or ctrl+tab , then choose where to go...rather have a stacks of other windows on side and hover and go wherever you want to switch, what are your thoughts?
Scenario when this would be used?
Multitasking, where you have tons of windows open
Supporting information
here is a github project already claiming to do so: https://github.com/awaescher/StageManager

Love the stage manager feature for organizing windows. Would love to see a polished implementation in PowerToys.


Continuations Bug

The variable.name.reg begin/end block ends its scope upon reaching the end of any line, regardless of whether that line ends in a continuation backslash.
The (?<!\\\\)$ regex seems to not see the backslash at all, so it matches any endline unconditionally. The regex seems to not be able to see anything else for that matter, since I tested the regex .$ and this failed to match endlines entirely.

Thanks for the report - my first!
I was going blame vscode because this used to work, but I tried some old vscodes and, apparently, it never did.
I have a fix - would you mind seeing if it works:
https://github.com/adrianstephens/vscode_registry/releases/download/0.6.0/regedit-explorer-0.6.0.vsix


[Bug]: EACCES: permission denied, open '/.config/puppeteerrc' which isn't even a directory on my system!

Minimal, reproducible example
please see https://stackoverflow.com/questions/77217379/no-matter-how-puppeteer-is-installed-runtime-gives-errno-13-config-puppe

#!/usr/bin/env node

const puppeteer = require('puppeteer');
const fs = require('fs').promises;

(async () =>
{
  const browser = await puppeteer.launch(
    {
      headless: false,
      args: ['--autoplay-policy=no-user-gesture-required'],
    });
  // ... puppeteer code
  const cookiesString = await fs.readFile('./cookies.json');
  const cookies = JSON.parse(cookiesString);
  await page.setCookie(...cookies);

  let page = await browser.newPage();

  await networkCache.use(page);
})();

Error string
EACCES: permission denied, open '/.config/puppeteerrc'
Bug behavior

[X] Flaky
[ ] PDF

Background
I have two scripts that behave exactly the same way; one behaves incorrectly more intermittently than the other IE one always fails (regardless of from where I run it) and one works only when I run it from either the directory where the script resides or in the directory where a symlink to the runtime script exists.
Expectation
I expect the script to check in $HOME/.config
Reality
Error: EACCES: permission denied, open '/.config/puppeteerrc'
    at Object.openSync (node:fs:591:3)
    at Object.readFileSync (node:fs:459:35)
    at #readConfiguration (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/ExplorerSync.js:76:39)
    at search (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/ExplorerSync.js:44:63)
    at emplace (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50)
    at emplace (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50)
    at emplace (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/var/tmp/vproj/pvid/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/.config/puppeteerrc'
}

Node.js v19.1.0
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Puppeteer configuration file (if used)
at 10:07:34 ❯ \cat $HOME/.config/puppeteer/puppeteerrc.cjs
const {join} = require('path');

/**
 * @type {import("puppeteer").Configuration}
 */
module.exports = {
  // Changes the cache location for Puppeteer.
  cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
};

Puppeteer version
v21.3.6
Node version
v19.1.0
Package manager
npm
Package manager version
9.8.0
Operating system
Linux

This issue has an outdated Puppeteer version: 20.8.3. Please verify your issue on the latest 21.3.6 version. Then update the form accordingly.
Analyzer run

I've updated the library and the issue persists:
❯ npm info puppeteer

<EMAIL_ADDRESS>| Apache-2.0 | deps: 3 | versions: 843

/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:56
                        throw error;
                        ^

Error: EACCES: permission denied, open '/.config/puppeteerrc'
    at Object.openSync (node:fs:591:3)
    at Object.readFileSync (node:fs:459:35)
    at #readConfiguration (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:76:39)
    at search (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:44:63)
    at emplace (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50)
    at emplace (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50)
    at emplace (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/util.js:12:20)
    at search (/home/jimconn/projects/src/bluescape/sre/scripts/aws/aws-sso-cli/node_modules/cosmiconfig/dist/ExplorerSync.js:64:50) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/.config/puppeteerrc'
}

Node.js v19.1.0

@notjames can you reproduce this in a Docker container? what is the value of $HOME variable? Note that Puppeteer is using https://github.com/cosmiconfig/cosmiconfig to resolve configs and it looks like the error comes from that module.

@jrandolf do you know what might be going on?

Solve this problem by reinstalling nodejs.  It worked for me.

@notjames can you reproduce this in a Docker container? what is the value of $HOME variable? Note that Puppeteer is using https://github.com/cosmiconfig/cosmiconfig to resolve configs and it looks like the error comes from that module.

I tried reproducing this in a docker container and then I inadvertently hosed my machine, so I haven't had a chance to work on this since. However, @antizhyk suggested re-installing nodejs and while I've been recovering from my machine issue, I recognized (I'm new to node so this was surprising) that node and nodejs packages in ubuntu exist and that seems to be a problem. At any rate, I've not been able to reproduce this. My guess is that this is probably a high-level issue (with node or npm).

@notjames can you reproduce this in a Docker container? what is the value of $HOME variable? Note that Puppeteer is using https://github.com/cosmiconfig/cosmiconfig to resolve configs and it looks like the error comes from that module.

Indeed, the error must be coming from there. Perhaps there is an existing config on the installation? FWIU, this may also be a bug in cosmiconfig. I'd recommend filing a bug with them.

Thanks for posting the details! if it still reproduces for anyone, let's file an issue at https://github.com/cosmiconfig/cosmiconfig perhaps we find the root cause there.

Please chime in on https://github.com/cosmiconfig/cosmiconfig/issues/332 with more info so I can get to fix it.

Hi, I have asked the help of the cosmiconfig developers and Daniel has fixed the bug. I was wondering if you would consider using a newer version of cosmiconfig? Thanks!
https://github.com/cosmiconfig/cosmiconfig/issues/332

@caraxlr dependabot should open a PR to update it soon and then it will be out with the next Puppeteer release

I had some issue, and it was caused by existing /nonexistent directory on the server (owned by elasticsearch.elasticsearch)
While I have no idea how this directory got created (and it shouldn't exist at all), by removing it both elasticsearch and kibana started without issues


Quick question, why do you need nodejs and a database?

Couldn't you just use the frontend to fetch api calls to OpenAI?
Are you using database and node just to have user login/signup or is there something else I didnt saw on the code?
Thanks and good job!

The OpenAi docs recommend to use it with Node for security reasons. And I have uses api key authentication in Node beacuse you have to be authorised inorder to make request.

makes totally sense, thank you and nice job here!


ABI gen does not support arrays

I cannot use uint64_t array[10] or any other array type in a serialized struct.
The ABI output will just be:
TABLE test_table {
    uint64_t foo[26];
};

{
    "name": "test_table",
    "base": "",
    "fields": [
        {
            "name": "foo",
            "type": "[26]"
        }
    ]
}

A workaround is using std::vector<uint64_t>.
Are arrays supposed to be supported?

Nope, as you have to manually allocate array memory to use it and it does not fit well in wasm. Use vector instead.


Fixes #13: Add return types to GenerativeSelect methods decorated with @_generative

Fix #13 by adding return types for all methods of GenerativeSelect, Select, ScalarSelect and TextualSelect decorated with @_generative
Description
As described in #13, the mentioned methods were all either annotated as returning None or did not have a return type at all. This PR follows the same approach as dropbox/sqlalchemy-stubs in annotating them.
Checklist
This pull request is:

[ ] A documentation / typographical error fix

Good to go, no issue or tests are needed

[x] A short code fix

please include the issue number, and create an issue if none exists, which
must include a complete example of the issue.  one line code fixes without an
issue and demonstration will not be accepted.
Please include: Fixes: #<issue number> in the commit message
please include tests.   one line code fixes without tests will not be accepted.

[ ] A new feature implementation

please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
Please include: Fixes: #<issue number> in the commit message
please include tests.

I've covered this in #39

My bad, I didn't notice that.
I'll close this and add a reference to #39 in #13 then.


Build plugin with vs2022/scons4.7

this is the PR related to #21
Made members of Bullet protected so they may be accessed in inherited classes
Added methods to increase cycle and lifetime of Bullet, mostly for readability. Use getters/setters rather than fields in bullet kits

I'm not entirely sure what the best way is to get rid of the submodule update from this PR

I'm not sure my changes are all correct.
The video here shows what is currently happening in the second example, off the repo as is (in branch 4.x):
https://github.com/samdze/godot-native-bullets-plugin/assets/19283945/e5c1b37f-776c-4d11-84e2-9890e93b355f
I'm not sure this is the intended behaviour. From the main page here on github I'd think not.

ok, I found the issue: by using the setter I was resetting the starting_transform, so other computations depending on it would get messed up.


feat: Support symbolic expressions

Issue #, if available:
Description of changes:
leverage sympy to handle uninitialized variables during interpretation
Testing done:
unit and manual
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General

[x] I have read the CONTRIBUTING doc
[x] I used the commit message format described in CONTRIBUTING
[x] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

[x] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[x] I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Dependent tests failing until https://github.com/aws/amazon-braket-sdk-python/pull/641 is merged


Add Lobsters to the CS news section

Lobsters is a link aggregation site similar to HN, but usually just has a different mix of tech news.
Also there was a missing space at the "Bitmasks" heading.

Thank you for your addition and for fixing the header!


Fail to Deploy device-virtual with mqtt-bus and got error "Failed to subscribe Metadata system event"

🐞 Bug Report
Affected Services [REQUIRED]

 The issue is located in: device-service
Is this a regression?

 Yes
Description and Minimal Reproduction [REQUIRED]

Deploy EdgeX with attached compose file

🔥 Exception or Error

level=ERROR ts=2023-01-30T10:00:50.167998044Z app=device-virtual source=main.go:126 msg="Failed to subscribe Metadata system event: An error occured while performing a 'Subscribe' operation: invalid Topic; multi-level wildcard must be last level"

🌍  Your Environment
Deployment Environment: x86/ubuntu
EdgeX Version [REQUIRED]: main
Anything else relevant?
docker-compose-mqtt-bus.yml.zip

@cloudxxx8 , https://github.com/edgexfoundry/edgex-compose/pull/330


sink(ticdc): set default value of DateSeparator to day

What problem does this PR solve?

Issue Number: close #8997
What is changed and how it works?
set default value of DateSeparator to day
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`Set default value of DateSeparator to day`.

/test all

/merge

/merge

/retest

/retest

/retest

/merge

/test all

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest

/retest


ZARRMDReader + Tests

Fixes #33
Potentially fixes #31
The ZARRMD writer can't write into the h5md format, only zarr (which I'm calling zarrmd here), but this is okay since the core codebase H5MDWriter can write H5MD files on disk. H5MD files just can't be written to cloud directly yet. This is theoretically possible by using s3fs, but would require a whole new writer.
One new thing this writer does compared to the zarrtraj writer from before is it does NOT allow the user to specify chunks- with the flexibility of H5MD in addition to there already existing an optimal chunk size, this would add unnecessary complexity IMO. For example, if the user specifies chunks=(10, n_atoms, 3), should time and step be chunked as chunks=(10,) or should there be a separate kwarg for step and time? If the user specifies a small chunk size, should the buffer hold multiple of these chunks instead of writing each chunk when it is full as it does currently (which would be incredibly slow for network-bound IO)?
The current solution is to simply universally write datasets in ~12 MB chunks. This means if positions/value is chunked at (10, n_atoms, 3), positions/step can be chunked with (100,) for example (and this will be calculated automatically in H5MDElementBuffer). This means readers have to perform much less IO as compared to a strategy of chunking time/step/value along the same number of frames (what I was doing before).
Though I also removed support for specifying filters and compression in this PR, this was just a choice for expediency and I plan to add this back in. However, the same question applies- should this filter list and compressor be applied to everything, including step and time data?
PR Checklist

[ ] Tests?
[ ] Docs?
[ ] CHANGELOG updated?
[ ] Issue raised/referenced?

Closed because diff was from main rather than develop


Provide version to RESTMapper in WorkloadIdentityBinding controller

This fixes an issue with the WorkloadIdentityBinding controller. The new implementation of the RESTMapper interface that was added in https://github.com/GoogleContainerTools/kpt/pull/3567 differs from the regular implementation in that it requires that the version is provided when calling the RESTMapping function. This updates the controller to provide the version when use that function.
We should consider fixing the behavior in the RESTMapper implementation, as this differs from the regular implementation.

/approve
/lgtm
Agree we should fix it, though I think that it's very rare that we don't care about the version in a controller (?)  If that's true, making this an explicit error is not a bad behaviour (?)


Build filter for file type

We want to add a filter to CC Search, to allow users to filter by file type, regardless of the content type. The types of file types we'd like users to be able to filter by at this stage are all image file types, as that is the only content type we currently have ingested. However, we'll need to build this filter in such a way that is dynamically updates, if possible, as new file types are added to the catalog.
Initial file types are:

png
jpeg

Users should be able to select one or more of these file type filters. When no file type filter is selected (i.e. no option is checked), all file types should be shown.
This ticket will be preceded by [Create Left Hand Side Bar for Filters #529] (https://github.com/creativecommons/cccatalog-frontend/issues/529) and will be structured as indicated in [this wire frame] (https://app.moqups.com/OD23yiSWK9/view).

Fixed in #533


do not expose 5432 by default in override

Could actually remove the whole postgres service from the override no?


Add a pack.mcmeta

18 is minecraft 1.20.2
41 is minecraft 1.20.6
26 is minecraft 1.20.4

Also move everything into the data folder so it can be loaded on its own


Does odo work with MySQLdb driver?

Does odo work with MySQLdb driver or only pymsql?
What is the connection string?

We just use sqlalchemy in odo, so assuming MySQLdb works with sqlalchemy I think it would work

MySQLdb is  direct drive to MySQL , What is  the connection string?
Do I need sqlalchemy install to test.
On Tue, Jun 7, 2016 at 5:29 PM, Joe Jevnik<EMAIL_ADDRESS>wrote:

We just use sqlalchemy in odo, so assuming MySQLdb works with sqlalchemy I
think it would work
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/blaze/odo/issues/452#issuecomment-224420346, or mute
the thread
https://github.com/notifications/unsubscribe/ANV0nsbT3DE_E950SBWzBJ1jOX3KpHdWks5qJeK8gaJpZM4IwYLC
.

You will need to install sqlalchemy to use the mysql backend for odo regardless but I am not sure if it will use mysqldb

http://stackoverflow.com/questions/22252397/importerror-no-module-named-mysqldb
I got this issue when I was working on SQLAlchemy. The default dialect used
by SQLAlchemy for MySQL is mysql+mysqldb.
engine = create_engine('mysql+mysqldb://scott:tiger@localhost/foo')
I got the "No module named MySQLdb" error when the above command was
executed. To fix it I installed the mysql-python module and the issue was
fixed.
Ok where can I  get the large all.csv to test performance that i shown in
your docs?
On Tue, Jun 7, 2016 at 5:56 PM, Joe Jevnik<EMAIL_ADDRESS>wrote:

You will need to install sqlalchemy to use the mysql backend for odo
regardless but I am not sure if it will use mysqldb
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/blaze/odo/issues/452#issuecomment-224427140, or mute
the thread
https://github.com/notifications/unsubscribe/ANV0noPVuDoXvQyjllpjNffvyv1jPB_vks5qJekagaJpZM4IwYLC
.

Trying a YEAR later, and the docs dont include connection example for mysql with username and password.  I couldnt find postgres Sql example with user name and password.

I did not find this anywhere in the documentation. Installing sqlalchemy and using a string like 'mysql+pymysql://root:root@<IP_ADDRESS>/database_1::table_1 worked for me.


Improve coverage

Codecov Report

Merging #7 (6f2fc2f) into main (00418d0) will increase coverage by 0.65%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main       #7      +/-   ##
============================================
+ Coverage     98.35%   99.01%   +0.65%
- Complexity      110      111       +1
============================================
  Files            18       18
  Lines           609      609
  Branches         84       84
============================================
+ Hits            599      603       +4
+ Misses            4        0       -4
  Partials          6        6

Impacted Files
Coverage Δ

...heck/appattest/attestation/AttestationException.kt
100.00% <100.00%> (ø)

.../devicecheck/appattest/receipt/ReceiptException.kt
100.00% <100.00%> (+10.00%)
:arrow_up:

...ch/veehait/devicecheck/appattest/AppleAppAttest.kt
100.00% <0.00%> (+2.27%)
:arrow_up:

...icecheck/appattest/assertion/AssertionValidator.kt
97.95% <0.00%> (+4.08%)
:arrow_up:

Continue to review full report at Codecov.

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


Reload feature

I want it to be possible to reload the config via a POSIX Signal like SIGUSR1

or even better inotify

Implementation:

bundle pairfromID and pairFromTopic into one struct
create parseConfig function which returns "config-struct"
secured, global pointer to active struct


Automatic benchmarks

Create proper benchmarks so we can compare performance between versions as we move forward. It would be awesome to be able to integrate it into the build process somehow.

One of the library I manage as a leader nanoutils has performance tests. They can be integrated for your needs.
The only one issue is what info do you want to get and how you want to represent it
nanoutils has TIMES.md where a table shows the difference between two libraries.

Cool, I’ll definitely check it out!
On Wed, 5 Sep 2018 at 00:08 beraliv<EMAIL_ADDRESS>wrote:

One of the library I manage as a leader nanoutils
https://github.com/nanoutils/nanoutils/blob/master/misc/cli/time.js has
performance tests. They can be integrated for your needs.
The only one issue is what info do you want to get and how you want to
represent it
nanoutils https://github.com/nanoutils/nanoutils has TIMES.md where a
table shows the difference between two libraries.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mateogianolio/vectorious/issues/119#issuecomment-418533879,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBAbQgyHeJpopZD1bEseWCqG4wRMwXwks5uXvnGgaJpZM4WZ0_4
.

Maybe that would be useful... but that's probably not how I'll run my first benchmarks.
let ts = Date.now();
// run some code
console.log('tdiff:', Date.now() - ts);
Not saying that's the best way to benchmark, but patterns can emerge around simple measurements like that. I'll look into the more precise timing measurements too. I do recall taking some more precise measurements here and there.
Measurements are good to measure code improvements while working on those improvements. For long term comparison they are harder to keep to the same baseline. Variables include hardware, node version, OS, and of course the version of the code being run.
While keeping longer term benchmarks would be useful, there could be some inaccuracies with comparisons. Keeping track of the node version it's being run on makes sense - but I and many developers are most interested in the latest version of node. Tracking regressions with node version changes would be a useful capability.
I'm also interested in benchmarks that discover data on the Big O running times of algorithms.


Adding in formatter functionality

This PR is meant to resolve #745.
Design
This functionality allows a function to be passed in as a formatter (in much the same way as parsers work).  This formatter should expect as an input the form's model value, and is expected to transform that value into the way it should look on the input field.
As an example:
import React from 'react';
import PropTypes from 'prop-types';
import { Control, Errors } from 'react-redux-form';

const MonthYearInput = ({ name, ...rest }) => {
  // Converts a raw MMYY string into a more pretty "MM / YY" string
  const myFormatter = (val) => {
    const month = val.substring(0, 2);
    const year = val.substring(2, 4);
    return `${month} / ${year}`;
  };

  // Removes all of the non-numeric characters from "MM / YY", and limits the value to four chars
  const myParser = (val) => {
    const newVal = val.replace(/\D/g, '').substring(0, 4);
    return newVal;
  }

  return (
    <div className="input-wrapper">
      <Control.text
        model={name}
        parser={myParser}
        formatter={myFormatter}
      />
    </div>
  );
};

MonthYearInput.propTypes = {
  name: PropTypes.string.isRequired
};

MonthYearInput.defaultProps = {
};

export default MonthYearInput;

Pros

This approach gives the full control to the developer, and uses a very simple implementation
Easy to debug, as is it just a "hook" into the process of updating the modelValue from the viewValue

Cons

Potentially unintuitive at times.  For example, if you wrote a formatter to append a dollar sign ($) to the front of a string, but didn't have a parser to strip it out of the model value, you would end up in a loop of continually appending dollar signs.  E.g. three changes would give you $$$100.

I'm using this locally now, and find it really helpful.  I'm open to any suggestions from @davidkpiano on how he would like this implemented though.  I've also added some test specs to verify code correctness.

@brycesenz I'm doing something very similar now myself via the change action.  It is true that you have to marry a parser and formatter together. Perhaps if a formatter is a prop then a parser is required. Might fill the potential caveat.

This is so nice.. :D

Feedback for this merge:

The Typescript-Types for formatter are missing.
When the formatter adds charackters to the initial value the cursor jumps to the end of the input.

The second issue can be addressed by the user when he adds a onChange handler like:
({target} : ChangeEvent<any>) => {
        const {selectionStart} = target;
        setTimeout(() => {
          target.setSelectionRange(selectionStart + additionalAddedCharackters, selectionStart + additionalAddedCharackters);
        }, 0);
      };

@valorize Mind submitting a PR for the missing types? (And the second issue as well)

@davidkpiano pr is created (https://github.com/davidkpiano/react-redux-form/pull/1087) The solution to the second issue is not perfect. It would be perfect to set the selectionRange after the input has been rendered. But I don't know where to hook into.


Can't get existing angular app injector.

Expected behaviour
Call angular.element('body').injector() should return injector of existing bootstrapped application.
Actual behaviour
TypeError: undefined is not an object (evaluating 'injector.get')
Environment Details

Karma version (output of karma --version):
1.7.1

Steps to reproduce the behaviour

Create angular.js app.

Create ES6 class whose constructor function inject dependencies through angular.element('body').injector()

Create angular controller as a ES6 class and extend it with previously created common class.

Test controller initialization with karma.

Found a workaround for the issue.
Add in your test the following:
beforeEach(function(){
	...
	module(app); // app initialization

	// decorate angular.element with injector
	angular.mock.inject(function($injector){
		// save original
		var original = angular.element;

		// replace with our own
		angular.element = function() {
		// proxy all calls to the original
		var result = original.apply(this, arguments);

		// add the injector to the result
		result.injector = function() { return $injector; };
			return result;
		}

		// also add all the angular.element properties to our fake or some other stuff will break
		for (let prop in original) {
			angular.element[prop] = original[prop];
		}
	})
});

Notice that injector creation should be after app initialization.
About injector mock:
https://docs.angularjs.org/api/ngMock/function/angular.mock.inject

FYI, this can be done much more easily like this (assuming module(app) was previously called):
beforeEach(inject(function($injector) {
  // Return the mock injector from `.injector()` every time
  angular.element.fn.extend({ injector: function() { return $injector } });
});


Renaming services to libraries

Last refactor which renames services to libraries

pushed a little renaming of svc variables to lib

docs change are in a different PR, ignore those in the renaming PRs


Line Splitter does not ignore embedded blank lines in input source

So we can address your issue, please include the following:
develop
See Readme.txt
Version of MarkLogic Server
Tested on a 9.0 nightly server build (post 9.0-13 release)
Java version
Java 9
OS and version
Windows
Input: Some code to illustrate the problem, preferably in a state that can be independently reproduced on our end
Input file
{ "cityName": "london", "cityTeam": "arsenal", "cityPopulation": 2000000 }
{ "cityName": "new york", "cityTeam": "yankee", "cityPopulation": 11000000 }
{ "cityName": "new jersey", "cityTeam": "nets", "cityPopulation": 3000000 }

{ "cityName": "beijing", "cityTeam": "ducks", "cityPopulation": 55000000 }
{ "cityName": "cape town", "cityTeam": "pirates", "cityPopulation": 650000 }
{ "city":"london", "distance":50.4, "date":"2007-01-01", "metro":true, "description":"Two recent discoveries indicate probable very early settlements near the Thames", "popularity":5, "location":{ "latLonPoint":"51.50, -0.12", "latLonPair":{ "lat":51.5, "long":-0.12 }, "latLonParent":{ "latLonChild":"51.50, -0.12" } } }
{ "employees": [{"firstName":"John" , "lastName":"Doe" }, { "firstName":"Ann" , "lastName":"Smith" }, { "firstName":"Bob" , "lastName":"Foo" }] }

Test:
FileInputStream jsonfs = null;
        String fileName1 = "json-splitter-1.json";
        String docIdPrefix = "/LS-DocMgr-";
        String dmsdkIdPrefix = "/LS-DMDSK-";
        AtomicInteger id = new AtomicInteger(0);
        AtomicInteger cnt1 = new AtomicInteger(0);
        DocumentManager docMgr = client.newJSONDocumentManager();
        DocumentMetadataHandle metadataHandle1 = new DocumentMetadataHandle();
        DocumentMetadataHandle dmsdkMeta = new DocumentMetadataHandle().withCollections("LS-DMSDK").withProperty("docMeta-1", "true");

        WriteBatcher wbatcher = dmManager.newWriteBatcher();
        wbatcher.withBatchSize(1);
        metadataHandle1.getCollections().addAll("LS-DocMgr");
        docMgr.setContentFormat(Format.JSON);
        try {
            jsonfs = new FileInputStream(datasource + fileName1);
            LineSplitter splitter = new LineSplitter();
            Stream<StringHandle> contentStream = splitter.split(jsonfs);
            WriteBatcher batcher = dmManager.newWriteBatcher();
            batcher.withBatchSize(1);
            contentStream.forEach(s -> {
                // Doc Manager write
                docMgr.write(docIdPrefix + id.addAndGet(1), metadataHandle1, s);
                // Batcher add
                batcher.add(dmsdkIdPrefix + id.get(), dmsdkMeta, s);
        });
        dmManager.startJob(batcher);
        batcher.flushAndWait();
        // Verify docs
        QueryBatcher queryBatcherdMgr = dmManager.newQueryBatcher(
                new StructuredQueryBuilder().collection("LS-DMSDK"))
                .withBatchSize(20)
                .withThreadCount(1)
                .onUrisReady((batch)-> {
                    // Should be getting all docs in a batch
                    cnt1.set(batch.getItems().length);
                });
        dmManager.startJob(queryBatcherdMgr);
        queryBatcherdMgr.awaitCompletion();
       assertEquals(cnt1.get(), 7);
        }
        catch (Exception ex) {
            System.out.println("Exceptions thrown" + ex.getMessage());
        }
        finally {
            jsonfs.close();
        }
    }

Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)
Assert fails. But an empty document(s) gets created in database. Splitter seems to treat blanks as valid inputs.
Tested these cases:

Blank lines at beginning of input file. - Empty content document created in database.
Blank lines in middle of input file. - Empty content document created in database.
Blank lines at end of input file. - Empty content document created in database.

Expected output: What specifically did you expect to happen?
Ignore blank lines.
Alternatives: What else have you tried, actual/expected?
N/A

Should we consider this type of blanks?
{
  "foo1":[
    {
      "cityName":"london"
    },
    {

    },
    {
      "cityTeam":"arsenal"
    },
    {
      "cityPopulation":2000000
    }
  ]
}

Issue seen: No record written into database when line splitter is used . But these website reports as a vaild JSON file. https://jsonlint.com/
https://jsonformatter.org/
https://jsonformatter.curiousconcept.com/

Wondering something like below as well. Let's confirm with Erik.
{
"foo1": [{
"cityName": "london"
},
{
	},
	{
		"cityTeam": "arsenal"
	},
	{
		"cityPopulation": 2000000
	},
	[
		[
			[]
		]
	]
]

}

The line-oriented splitter could tolerate blank lines between records for the sake of robustness but really can't tolerate newlines within records.  The latter are, by definition, malformed records.

Issue is fixed.


Bug: Generates Invalid CSS

Moving here from: https://github.com/nknapp/swagger-to-html/issues/3
There is a strange bug causing a tiny mistake in the CSS, making it invalid:
.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"] {
    position:absolute;
    margin-left:-20px;
    margin-top:4px \9
}

It probably won't effect most people since browsers do their best not to blow up, but a parser I use is not happy about it at all. =P
ParseError: Unrecognised input. Possibly missing opening '{' in /home/selby/projects/tenable/front/tmp/tree_merger-tmp_dest_dir-m8uv0yEk.tmp/app/styles/docs.less on line 5, column 38385:

Just in case anyone else is running into a similar problem, I wrote two bash scripts as a quick fix until I or someone else can figure out what the actual problem is.
#!/bin/bash
# ./fixcss.sh
# Usage: ./fixcss.sh <file.css> <keep backup: 1 or 0>

# Lets fix some CSS
cat $1 | grep --quiet -i "\\\9" && {
  echo "CSS invalid, attempting to fix"
  rm $1.bak -f
  echo "Creating backup..."
  mv $1 $1.bak
  echo "Replacing invalid string..."
  cat $1.bak | sed -r s/\\\\9//g | tee $1 1> /dev/null
  cat $1 | grep --quiet -i "\\\9" && {
    echo "CSS still invalid, sorry =/"
    echo "Replacing original file..."
    rm $1 -f
    mv $1.bak $1
  } || echo "Good to go =)"
  $2 || echo "Removing backup..." && rm $1.bak -f
} || echo "Not broken, don't worry about it"

#!/bin/bash
# ./gendocs.sh
# Usage: ./gendocs.sh <swagger.json> <target_dir>

# Gets directory script is running from
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Generate Docs
bootprint swagger $1 $2
# Fix invalid CSS
$DIR/fixcss.sh $2/main.css

I keep them in my projects' ./scripts directory and call them like ./scripts/gendocs.sh swagger.json ./docs/spec, but you could also come up with more specific names, drop the .sh, toss them in ~/bin and add export PATH=$PATH:~/bin to your ~/.bashrc so that you can use them globally.
Hope this helps someone!  Happy coding. =)
-Selby
http://selby.io

Actually, it's a good idea to write a test for that, but it should be incorporated in the existing jasmine specs, so that it gets executed  with the regular unit tests.
Thanks for your input. Maybe this issue is also the reason for my problem in #8

It is in bootstrap's forms.less, line 51:
// Position radios and checkboxes better
input[type="radio"],
input[type="checkbox"] {
  margin: 4px 0 0;
  margin-top: 1px \9; // IE8-9
  line-height: normal;
}

I wonder what kind of crazy voodoo magic that does for IE.... I guess we have to blame this one on Microsoft because it's definitely not the parser's fault.
It parses correctly with a semicolon after it, though.  I'm just changing the line cat $1.bak | sed -r s/\\\\9//g | tee $1 1> /dev/null to cat $1.bak | sed -r s/\\\\9/\\\\9;/g | tee $1 1> /dev/null even though I don't anyone using IE 8 or 9 will be worried too much about API documentation. ;-)
I'm glad you thought to check upstream.

Can you tell me what you did exactly, in order to beautify the CSS?

The build system for Ember.js, ember-cli, doesn't allow the build to complete with invalid HTML or CSS.  I beautified it so that the parser throwing the error could give me a line number instead of the 3300th column on line 5.  The line length of main.css crashed Atom and Kate when I tried to beautify it there, so I found some random website.

This probably won't be an issue for most people, but not having the semi-colon after \9 makes it throw an error with the less parser ember-cli users.  ember-cli is particularly strict, and I'm sure not many will be compiling it as less /again/.
You can close the issue, and if anyone else ever runs into an issue with it, point them over here. =)

The \9 hack is also part of the minified Bootstrap download. I have not used ember-cli so far, but I cannot imagine that there is no way of using it with Bootstrap. Maybe you should file an issue with Ember, since \9 seems to be a commonly used hack for including browser-specific CSS.
As an alternative (although I don't know how much work this would be), you could create a new Bootprint-module based off bootprint-swagger in wich you provide just one new .less-file that overrides the 'malicious' styles.
Something like this with a less-files in less/main.less.
var path = require("path");

// Export function to create new config (builder is passed in from outside)
module.exports = function (builder) {
  return builder
      .load(require("bootprint-swagger"))
      .merge({
          "less": {
              "main": [
                  require.resolve("./less/main.less")
              ]
          }
      });
};

// Add "package"
module.exports.package = require("./package");

You could call the package bootprint-swagger-for-ember-cli, have it installed globally and use bootprint swagger-for-ember-cli spec.json targetDir to create the HTML and CSS. Adapting and overriding styles and partials is the whole point of Bootprint.
Let me know if this helps. I'm closing this issue now.

Or use a config file with bootprint -f

If there is a semi-colon after it, it parses correctly.  I use bootstrap less on almost every project and haven't had a problem.  So I'm guessing it is '\9;' in the minified bootstrap. Thanks for looking into it for me and may go ahead and try your suggestion if I have time.
I've never played with bootprint until now, but I'm interested.
I literally just realized bootprint is your project.  I thought I had heard the name before and you had just written a swagger blueprint for it.  Great idea, man!  I'll definitely check it out when I get more time.  It's very useful. =)
Looking forward to seeing where the project goes. ^.^

I was looking for something to document our REST-services at work and stumbled across Swagger and the Swagger-UI. Swagger-UI is great and we are using it, but it's nothing you can print out or give to someone offline as service-reference. So I had a look and found Swagger-Codegen which can create client code for a Swagger-Spec in different languages. It can also create HTML. But when you look at the usage instructions, this is nothing, the average sales-person can use to generate an API doc. You have to install Maven and run a pretty complicated command-line. I was using it for the first version. But then I thought: How hard could it possibly be. A simple Handlebars-setup, a simple Less-setup, include Bootstrap write some templates. Done. Two hours of work... I thought. And started swagger-to-html in my free time...
Turns out that it took a little longer and the scope got a little larger. Because, of course, you want to be able to customize the styles to use your company colors. And how cool would it be, if you could publish a customization-package and let other people build upon it.
This was the moment, when I seperated to code from the template and made different packages: bootprint, bootprint-swagger, bootprint-json-schema which build upon each other. Making another adaption should be easy.
But it doesn't stop there, because bootprint-swagger got some stars. I got bug-reports (which is pretty cool, because it shows that other people are actually trying to use this module) and of course, I want bootprint-swagger to be comprehensive. But I'm doing this in my free time and this often means working on it late at night, when the family is asleep. This is certainly nothing I can do forever, so the best way is to document the project in order to enable people like you to do the work for me and make pull-requests.
But documentation is a hard thing and the danger of out-dated documentation, so I'd need tools to embed the documentation somewhere inside the code and assemble docs from it.
After doing some research on npm, I stumbled across verb by Jon Schlinkert, which uses lodash-templates to transform a package.json into a README.md and much more. This project is certainly worth a look, but after some experiments I thought: Maybe Bootprint without Less could be used to create flexible and customizable templates for generating Markdown files for npm-module. So I extracted the config-merging part of Bootprint into a new project called Customize, added a Handlebars-plugin and used this to create the documentation generator Thought.
After a while I noticed, that at some point, you have to document my documentation-generating tools. So this is what I'm actually working on at the moment. Writing documentation, thereby extending Thought. I'd love to see other people use Thought as well, but at the moment, it's pretty experimental and nobody seems to have taken notice of it yet.
When I'm done with this, I plan to create Less-engine for the customize-project and migrate Bootprint to use Customize as well. But that's a long path. Customize does not support file-watchers yet and that is essential when developing Bootprint-templates.
The idea of being able to override parts of the configuration (replace partials, adapt styles) is part of our day-to-day business at work. We often have things like that in our products. It's not a new idea for me.

Mabye the are some options that should be provided to the Less compiler in Bootprint.


osintframework not working

Love this project, but it seems like something is down at the moment - I keep getting this error across different browsers, operating systems and networks.

Thanks for the heads up. Apparently one of my updates earlier today broke it. Should be back up and running again.

Yep. Confirmed. Guess you can cancel my PR then. I'll have to become a contributor some other way :P


switch profile on command line

Users can pass a --profile option to dbt that specifies which profile(s) to load. Examples include:
# the default is "user"
dbt compile

# same as above
dbt compile --profile user

# load the marketing profile instead of the user profile
dbt compile --profile marketing

# load the marketing AND user profiles. Later profiles overwrite configs from previous profiles
dbt compile --profie marketing user

This works for all subcommands, eg. debug, compile, run...
Tested:

[x] defaults to "user" without --profile arg
[x] works with explicitly setting --profile arg to "user"
[x] works with setting --profile to both user and marketing at the same time

~/.dbt/profiles.yml
user:
  outputs:
    redshift:
      ...
  run-target: redshift

marketing:
  outputs:
    marketing_redshift:
      ...
  run-target: marketing_redshift

The profile system was inspired by lein's, which is documented here: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md
Some takeaways from that doc:

their CLI syntax has a difference between adding a profile to the default set of profiles, versus specifying exactly the profiles you want.  I think this is a useful distinction to draw, and I like their syntax for specifying it.
their default profiles are [:base :system :user :provided :dev].  I don't think we need a :system, :provided, or :dev profile yet, but it's worth thinking about whether :base is something we'd want to add.

This looks good otherwise, back to you to consider the above

@cmerrick I think that's really interesting. In practice, I can't see the benefit of loading > 1 profile by default. Are there any use cases here that you can think of?
I do like the lein with-profile [profile] command syntax. I think that manually adding parameters as implemented here (--profile user) is probably not how this should work. How do you feel about dbt with-profile user creating a .dbt_config.yml file in the cwd? It would be gitignored, and dbt would check for it on startup.

I don't think we need to load multiple profiles by default right now.
I don't follow the .dbt_config.yml idea - what is that file solving?  The implementation I was thinking about with my first comment was just to support syntax like --with-profile +test to mean "I want to load the default profiles AND test" versus --with-profile test to mean "I just want to load the test profile"

@cmerrick when you actually use it, it's super annoying to switch args on the command line every time you dbt run or dbt compile. The use case here is that a project will be fixed to a single profile and users will seldom switch between profiles within a given project. This information is well suited for the dbt_project.yml file; however, user profile names will likely differ within an org.
The above is of course speculative, but I think that when it comes down to it we need some non-versioned way of indicating which profile to load for a given models repo.

@drewbanin lets discuss in 🍖 👾