Verify the checksum for the downloaded components

Sometimes, the download actions for some components are not successful due to network issues. However, the broken files have existed. So, when we invoke the download command once again, the command would skip these broken files.
IMO, it would be better to verify the checksum for the downloaded components to make sure the files are completed.

@pan3793 WDYT?

I have thought, but this may increase the cost for users who want to use their custom version components. But it's OK if we can have a switch(maybe an env var named CHECKSUM_ENABLED) to allow user to disable it.

I found a common case in daily usage, the wrongly assembled URL would produce a zero size download/foo.tgz, and then cause the foo.tgz to be skipped to download in the next rounds even with the corrected URL
wget -O download/foo.tgz https://wrong/path/foo.tgz

https://github.com/awesome-kyuubi/hadoop-testing/commit/fb4311510fdb5b66b67ed56239c5da3ebbf68436 added a simple mechanism to auto delete zero size file in download_if_not_exists


Add ServerAddressStrategy that deals with proxied requests

If an incoming request goes through a proxy server, IncomingAddressStrategy will use the final address in any urls it makes. This will normally result in resource references and ids that aren't readable to the client, since presumably the final server is behind a firewall somewhere.
It'd be useful to have an address strategy that uses x-forarded-host to determine whether a request had been proxied, and if so, use the host as specified by the client.

Just wanted to comment: this is really nicely done, what a good idea.

just what I needed


How to I can refresh or clear cached queries

Is there any way to perform a clean-up of cached queries after doing some manually changes on DB Server?

You can call InvalidateSets to invalidate results for queries that touch specific tables. If you are using InMemoryCache you can pass true to the Purge method which will remove all the items from the cache.


Merge doc in unit jobs

Testing docs take about 1s, it does not worth spending 20s just for the setup.
Also with centos6, we hit the parallelism limit of 4 containers. Freeing a slot
speed up the pipeline.

Codecov Report

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

@@          Coverage Diff          @@
##           master   #141   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          11     11
  Lines        1169   1169
=====================================
  Hits         1169   1169

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 77b24d0...24bb1fb. Read the comment docs.


Select#select and Select#select_value should wait for element to be present

There was a recent Stack Overflow question, Any new arrangement for select_list in WATIR 6.0.2 waits until options got populated?, which asked about selections in one dropdown populating another dropdown. I recall there being other users with similar problems in the past.
The new wait functionality for actions does not appear to apply to selecting options from select lists. A Watir::Exception::NoValueFoundException is immediately thrown when the option is not present.
browser.select_list.select('changed_text')
#=> Watir::Exception::NoValueFoundException

It would be nice if the #select and #select_value methods waited - ie equivalent to the following, which does currently wait:
browser.select_list.option(text: 'changed_text').select

This should fix it: 512f848


[beta] Class 'VisualEditorState' is missing implementations for TextInputClient.performSelector

When I'm trying to run project it fails with this error:
../../../.pub-cache/git/visual-editor-a64736d25cf091df4ce0f25befff8204b2268363/lib/main.dart:134:7: Error: The non-abstract
class 'VisualEditorState' is missing implementations for these members:
 - TextInputClient.performSelector
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class VisualEditorState extends State<VisualEditor>
      ^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/services/text_input.dart:1172:8: Context: 'TextInputClient.performSelector' is defined
here.
  void performSelector(String selectorName) {}
       ^^^^^^^^^^^^^^^

My flutter -v is
Flutter 3.4.0-34.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 71520442d4 (3 weeks ago) • 2022-10-05 16:38:28 -0500
Engine • revision db0cbb2145
Tools • Dart 2.19.0 (build 2.19.0-255.2.beta) • DevTools 2.18.0

Related problem and fix in another project:
https://github.com/superlistapp/super_editor/issues/792
https://github.com/superlistapp/super_editor/pull/835/files

Will have a look soon on this one.


stdlib logging can handle printing and writing to files

don't reinvent the wheel. everything that can be handled by the logging module should be handled by it. reduces complexity of loggo  (and line numbers too)

Codecov Report

Merging #125 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #125      +/-   ##
=========================================
- Coverage   95.81%   95.7%   -0.12%
=========================================
  Files           2       2
  Lines         311     303       -8
=========================================
- Hits          298     290       -8
  Misses         13      13

Impacted Files
Coverage Δ

loggo/loggo.py
95.68% <100%> (-0.12%)
: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 153f47f...d19f691. Read the comment docs.

I think this should probably be merged, provided:

Filehandler builds intermediate directories before writing
Both handlers add tracebacks
Nobody needs the loggo.write_to_file, method, which was public so that the user could override it by subclassing (i.e. to print to different files for different services)

@l0rb can you confirm first two points? @hukkinj1 can best answer number 3

is a no. FileHandler does not. Is that a requirement though?

I don't know if requirement, but is possible with current code and not with proposed code, so obv it merits discussion. yes i think best handled by accepting this pr plus makedirs in init or similar

I'm open to changes if there is anything the code owners object to in this PR. Also note that the coverage % is only going down because this removes more lines than it adds, but all affected lines have full coverage.

The latest commits fixed both issues. If the directory for the logs file does not exist it is created, and logs going to file or stdout have the traceback appended in the exact same style as they were before. Unfortunately flake disagrees with the stdlib.

Need to fix linting and merge conflicts before we can merge. I marked the lines where linting fails above ^

Fixed conflicts and merged. Thanks @l0rb !


The selection restored at start up is not added to the selection history

The selection that is persisted across viewer relaunch, when restored, doesn't populate the selection history as it should. As a result, after selecting another thing right after startup, the "Back" button is not functional.
Repo:

select something (space view, entity, whatever—let's call it A)
quit the viewer
launch the viewer
notice how the selection is correctly restored
select something else (let's call it B)

Expected: the back button is enabled, and selects A when clicking
Actual: the back button is disabled
Note: when selecting yet another thing, the back button is enabled and can be used to select B.

The selection is no longer saved/restored, so this is a non-issue.


Idea: Display the relative path closer to the search bar

When you're exploring files with the amazing Telescope File Browser, your eyes are often drawn to the bottom of the screen, because that is where the text input and selector usually are.
As a user, I completely didn't realize that the relative path is shown above the middle content pane, for two reasons:

It's shown in the same text and font as the titles for the other panes ("File Preview", "File Browser").

I literally didn't realize it until I started writing this feature request. I was about to ask "How cool would it be to see the relative path?" when I realized that it's there, but my monkey brain had a hard time seeing it 😀
Here's what I was thinking for the layout:

Show the relative path right over the search bar, in the color appropriate to directories.
Add the filename for the selected file/folder to the bottom of the "File Preview" section, in the color appropriate to that file type.
Just for fun, maybe show the Neovim working directory somewhere as well?

I will admit my naivety; it is probably this way for a reason. Maybe due to limitations of the Telescope framework?

Not quite what you're asking for but I would suggest maybe trying out the ivy theme and pass vim.loop.cwd() to the prompt_title option like so:
require("telescope").setup({
  extensions = {
    file_browser = {
      theme = "ivy",
      prompt_title = vim.loop.cwd(),
      -- other options
    },
  },
})

This shows you the current path a little closer to the prompt than the default telescope theme and also add the current working directory at the top.

Beyond this point, changing the layout to match what you're looking for would take a non-trivial amount of effort.

Okay, I will try the other theme. I do like the current theme though, it is pretty slick.

non-trivial amount of effort.
No worries, feel free to close my issue. Thanks for taking the time to look at it.

To clarify, something like this:

To me, a big use case of this plugin is moving, renaming and deleting files. So you want to know where you are in the tree. I think it deserves prime real estate in the view.
I pretty much only care about files in the CWD of nvim.
Also, are you aware of a way to change the ordering of columns in the "File Preview" when selecting a folder? Maybe showing the filenames in the leftmost column?

@jamestrew

Not quite what you're asking for but I would suggest maybe trying out the ivy theme and pass vim.loop.cwd() to the prompt_title option like so:
I believe that only catches state of cwd at the time Telescope initialises? Changing directories (cwd) does not affect that title and prompt_title does not appear to be able to be a function.

@gegoune yeah you're right. cding around within nvim would create a discrepancy between the prompt_title and the actual cwd. Having a dynamic prompt_title would require some changes to the plugin.
@robert-blankenship we can certainly look into adding more flexibility in what the titles (border titles in red in your screenshot) display through exposing them as functions people can write themselves. Changing the location of them would probably mean creating a new theme/layout.
As for the "File Preview", unfortunately no easy way of changing how things are displayed. We're reusing the file_previewer from upstream telescope. You're not the first person to suggest a more flexible previewer. No promises but I can look into this.


Add apache rewrite example

We should probably get rid of the server-specific examples anyways. What's next, IIS?
But this seems fine for now. Thanks!


Added new shape families for Archimedean, Catalan, Johnson, and other solids.

Description
Expanded on coxeter.families with methods and data for several families of common convex polyhedra:

ArchimedeanFamily: The 13 Archimedean solids.
CatalanFamily: The 13 Archimedean duals.
JohnsonFamily: The 92 Johnson solids.
PrismAntiprismFamily: The 16 n-gonal prisms and antiprisms ranging from n=3 to n=10.
PyramidDipyramidFamily: The 6 equilateral pyramids and dipyramids.

Each new family is queryable with get_shape("Shape Name") and returns a ConvexPolyhedron normalized to volume of 1, just as PlatonicFamily currently does. Vertex data for all new families is stored as a float64, and stored data for the current PlatonicFamily has been updated to match that precision. This change fixes intermittent bugs that arose from lack of numerical precision. New pytests have been added to verify the new families behave as expected.
Motivation and Context
Querying polyhedra other than Platonic solids could be relatively difficult. This release streamlines the process and allows for simple access to a greatly increased number of convex solids.
Types of Changes

[ ] Documentation update
[x] Bug fix
[x] New feature
[ ] Breaking change1

1The change breaks (or has the potential to break) existing functionality.
Checklist:

[x] I am familiar with the Contributing Guidelines.
[x] I agree with the terms of the Contributor Agreement.
[x] The changes introduced by this pull request are covered by existing or newly introduced tests.
[x] I have updated the changelog and the credits.

@janbridley feel free to click the "Squash and merge" button when you're ready!


--coef_values file

hello i try to simulate bond breaking not bond forming. So I have two data files generated by moltemplate that contain the connectivity and the information about the potential coefficients on each state (I attach them). My question is when I run the AutoMapper.py . clean command which file of the system.in.settings sould i attach. The one of the pre or of the post reacrion. Note that there are different types of monds in each situation cause bonds are deleted.
Thank you!
reaction_files.zip

Hi thanks for the good question! This would be easiest fixed if you are using Moltemplate, I would suggest not cleaning the system.in.settings file using cleanmoltemplate.sh. This means the system.in.settings file has all coeffs and AutoMapper clean will choose the ones needed for the simulation. You're right that neither of your current files will work, and the only way to fix them would be to combine them by hand. Best of luck!

Thanks!

Have you ever simulated bond breaking with the fix bond/react command??

Yes however only when also making a bond as in a polymerisation reaction. I've not personally tried just bond breaking, and if I'm honest I'm not sure how you would only break a bond as bond/react is typically checking for cutoff distances to make a change to the topology. If you're just breaking a bond, presumably the atoms are quite close so a distance check will always pass? Are you using a different check?

I use a min max criterion based on the tension distance of the bond. However I struggle with something else. I use dreiding force field that includes dihedrals and impropers. When i generate the files in AutoMapper the generated files that are reduced to the minimum number of atoms for the reaction do not include the dihedrals and the impropers and by that i mean that they have edge atoms that are realy close to the bonds that break. how can i solve it?

And I get this error,
ERROR: Fix bond/react: Bond type affected by reaction rxn1 is too close to template edge (src/REACTION/fix_bond_react.cpp:2653)                                                                                Last command: fix               fxrct all bond/react stabilization yes statted_grp .03           react rxn1 all 100 0.0 10.0 mol1 mol2 map.txt stabilize_steps 100

fix.zip
I get this traceback when I try to use map function i these files. The conected atoms are 17 and 72.
The error is
AssertionError: Different numbers of atoms have been found in the pre- and post-bond partial structures.


Bazinga!

ayy

This is version 1.0.0 of our congressional app. This update took over 150 hours to design, program, and test. It is our life's achievement.


Aqualab: player feature for average active time per session

 Aqualab player feature for average active time per session


[HOLD 0xmiroslav payment] Payment issue for E/App PR#21043

Issue created to compensate the Contributor+ member for their work on https://github.com/Expensify/App/pull/21043
E/E issue linked to the PR - None
Contributor+ member who reviewed the PR - @0xmiroslav

Not overdue!

Moving to weekly and putting on Hold for @0xmiroslav

@0xmiroslav are you ready to receive payments again?

Still waiting on contributor

@0xmiroslav I'm going to close this because I have an unsustainable amount of GH issue assigned. Please keep track on this one your side and let us know when you are ready to receive payment. Thanks!


Updated info concerning programs at Columbia

Corrected errors and updated links.
Added several academic programs at Columbia with Data Science content.

thank you @tz33cu


endpoints should follow a naming schema

https://github.com/OmniSharp/omnisharp-roslyn/issues/29 lists all our endpoints and almost all of them following a <verb><Object> convention, like findUsages. For those that don't follow this convention (like codeformat) we should introduce alternative routes and deprecate the old ones.

same applies to proper use of HTTP methods.
There are plenty of places like this https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp/Api/ProjectSystem/OmnisharpController.ProjectSystem.cs#L19 or this https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp/Api/Status/OmnisharpController.Status.cs#L8
such operations with no side effects should use safe methods rather than POST.


indirect support for psa?

purescript-psa is a CLI tool that wraps around purs compile and augments error reporting capabilities, such as allowing suppression of purescript compiler warnings
as far as I can tell, currently purs-nix provides no way for one to use psa "directly". the closest I've gotten is calling psa $(purs-nix srcs) on my side. this is not so much "plugging psa into purs-nix", as would be ideal, and is more "plugging purs-nix into psa"
i believe that allowing for "direct" support of psa would be as simple as allowing the user to choose a command to run instead of purs-nix compile. the user would not provide psa itself but a wrapper derivation around psa containing their chosen CLI arguments
aside: psa can be obtained from easy-purescript-nix

I have never used psa. What would using it in a spago project look like?

I have no idea 😅 since I don't use spago. But I think psa is supposed to act as a drop-in replacement for purs compile, so if purs compile looks for spago.dhall then I guess psa does as well?
(nb. if it's useful, here is how I am currently using psa "with" purs-nix)

I see. It probably has spago support hardcoded in like other tools do.


[JENKINS-44128] allow passing custom parameters from Pipeline script

Great, thanks a lot!
Would it be sensible to group these additional parameters in one variable PARAMS for example?
Suppose someone uses a custom parameter ABC in their scripts, passing values from pipelines. However, later they also need access to the environment variable ABC. Now they'd have to update all scripts and pipline to use ABC_NOT_FROM_ENV.
Or what about additionally grouping both env variables and parameters? E.g. have additional variables _ENV and _PARAMS which are themselves maps where a user can explicitly access on or the other without shadowing problems. This would also make scripts more readable.


Ledger error when claiming staking rewards

Summary
When connected to Ledger Nano S or Ledger Nano X, Terra Station returns an error when trying to withdraw staking rewards.
Expected
On claiming staking rewards, Ledger device should show transaction for approval. But no transaction is being displayed. Instead, an error appears on the web page stating - "Data is invalid : Unrecognized error code"
Environments

Stage:
Chain: Terra
OS: Tested on Mac and Chromebook
Platform: Terra Station web app. Also tested with extention

Reproduce

Open Cosmos app on Ledger Nano X or Ledger Nano S
Connect Ledger to Terra Station web app
Click on "Withdraw all rewards"

Short term fix - undelegating any sum of Luna also withdraws all staking rewards.


pretrained model suppurt?

Hi, nice work! Could you share the pretrained model about the RSN?

Hi. I am not one of the authors, but I can provide you my trained model here: https://drive.google.com/drive/folders/1atyNvjT_cIXq3_objomu6IJHm4K8CmET?usp=sharing.
In there, you can find weights, the config file used, and the COCO score for the validation set (2017). I used the folder 4xRSN18 (in exps folders) and got AP 0.724. The model was trained for 1.15 million iterations.

Hi. I am not one of the authors, but I can provide you my trained model here: https://drive.google.com/drive/folders/1atyNvjT_cIXq3_objomu6IJHm4K8CmET?usp=sharing.
In there, you can find weights, the config file used, and the COCO score for the validation set (2017). I used the folder 4xRSN18 (in exps folders) and got AP 0.724. The model was trained for 1.15 million iterations.

Hello, do you have a trained RSN18 model?

Hi. I am not one of the authors, but I can provide you my trained model here: https://drive.google.com/drive/folders/1atyNvjT_cIXq3_objomu6IJHm4K8CmET?usp=sharing.
In there, you can find weights, the config file used, and the COCO score for the validation set (2017). I used the folder 4xRSN18 (in exps folders) and got AP 0.724. The model was trained for 1.15 million iterations.

there is something wrong with the website you provided. Could you please provide it again? Thank you very much。
大佬，能把模型的链接再发一下吗？感激不尽！

Hi. I am not one of the authors, but I can provide you my trained model here: https://drive.google.com/drive/folders/1atyNvjT_cIXq3_objomu6IJHm4K8CmET?usp=sharing.
In there, you can find weights, the config file used, and the COCO score for the validation set (2017). I used the folder 4xRSN18 (in exps folders) and got AP 0.724. The model was trained for 1.15 million iterations.

the link is invalid now. Could you share it again?

不好意思，我已经换工作了，目前没有这个模型的参数文件了。
------------------ 原始邮件 ------------------
发件人:                                                                                "caiyuanhao1998/RSN"                                                                                @.>;
发送时间: 2021年7月28日(星期三) 下午4:58
@.>;
<EMAIL_ADDRESS>主题: Re: [caiyuanhao1998/RSN] pretrained model suppurt? (#10)
Hi. I am not one of the authors, but I can provide you my trained model here: https://drive.google.com/drive/folders/1atyNvjT_cIXq3_objomu6IJHm4K8CmET?usp=sharing.
In there, you can find weights, the config file used, and the COCO score for the validation set (2017). I used the folder 4xRSN18 (in exps folders) and got AP 0.724. The model was trained for 1.15 million iterations.
there is something wrong with the website you provided. Could you please provide it again? Thank you very much。
大佬，能把模型的链接再发一下吗？感激不尽！
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, here is the pre-trained model zoo:
https://mmpose.readthedocs.io/en/latest/model_zoo_papers/backbones.html#rsn-eccv-2020


updates to contributing.md

The contributing.md file, which instructs collaborators on how to get into the action via GitHub, was updated. Specifically, updates added more steps to the workflow process. Overall, these changes provide needed clarifications on the GitHub workflow.
Additions
-new steps in the Git Hub workflow
Removals
-Some steps in the GitHub workflow were merged into other steps, not necessarily removed outright.
Changes

New steps, merging a few old steps, typos corrected

Testing

No testing - this is just a markdown file. Text only.
-The text was run through a word processor to spot and correct spelling and grammar errors.

Screenshots

N/A

Notes

N/A

Todos

Expand more on the issue tracker
Revise again for language consistency

@jameshalgren I removed the .ipynb-checkpoints from the branch, so they shouldn't be included in the pull request anymore. Unsure how to confirm that they are not in the pull anymore - but I can confirm they are no longer in my branch. I think these two things are the same...
For future reference, we might consider editing the .gitignore file to mask out .ipynb-checkpoints directories. These hidden directories seem to show up whenever I create a notebook (or edit a markdown?) in jupyter lab.

For future reference, we might consider editing the .gitignore file to mask out .ipynb-checkpoints directories.

I'd support that.

Also, for git flows, here is a reference to another that we are using for a couple projects in OWP, feel free to borrow it directly (maybe edit some URLS).  We put it in doc/git_usage.md and just reference it in the contributing guide...
https://github.com/NOAA-OWP/DMOD/blob/master/doc/GIT_USAGE.md

I made some new changes to contributing.md based on suggestions from @hellkite500. Specifically, I edited the file to be in-line with https://github.com/NOAA-OWP/DMOD/blob/master/doc/GIT_USAGE.md. A reference to this doc is now included at the end of the document.
Additionally, I deleted a mistakenly committed/pushed checkpoints directory. There is only one changed file associated with this pull request now.

Great changes, James. A few notes:

The markdown file was rendering oddly on my end. I needed to add several line returns to get codeblocks to sit within each bullet.
Regarding point 3. The note about naming the fork remote origin was taken from the DMOD GIT_USAGE.md doc. I don't think it should cause too much confusion if we just leave it in there.


Spring is coming

Just a quick heads up for some stuff in the pipeline and to gather some feedback.
Refactoring the complete code base is pretty much done, some highlights:

Modular command system, think Git or Docker, with a single main script and contextual help
Portage tree and stage3 imports are now de-duplicated, see #83
Lots of old cruft removed and many optimizations, awk is no longer required on the host for example
Code base now conforms to official Bash naming/coding conventions
All functions that previously "returned" something via echo now simply set a global variable __function_name
To improve clarity variable types now have the following schema:

# variable conventions:
#
# environment     : SOME_VAR
# readonly        : _SOME_VAR
# local           : some_var
# global          : _some_var
# function return : __function_name

The last point is a breaking change, for example EMERGE_ROOT is a constant and as such is now named _EMERGE_ROOT. I plan this to be the last breaking refactor, so we might as well think about renaming some variables that users have to deal with like _EMERGE_ROOT, maybe something shorter or to improve clarity. Thoughts?

When this update lands (1-2 weeks) the project name will also change, I'm currently leaning towards omnibob (Wikipedia: Omni is a Latin prefix meaning "all" or "every".), fits the bill pretty well as it's really just a meta builder at the core. Still not decided though. Sadly metabob is already taken.
Other suggestions:

cbob, as in container bob
cooper by @mischief

acbuild support and better documentation are the next 2 milestones on the list, most of the acbuild requirements are already ticked off though, so this shouldn't take too long.
A preview branch for testing should be up in the next couple days.

Very exciting. I think we should start thinking about the bigger roadmap as well; which would include something like:

tests  (required before "1.0" if you ask me)
naming (as referred above; my vote would be cooper. It's simple to remember, doesn't sound too technical and has a backstory)
general website/marketing
community and workflow (publishing images, best practises, repo scope)

I don't think we have to solve all of this in two weeks, but we should at least figure out a timeframe. I will have more time for "open source" (read: computer time that isn't work-related) in 2 weeks and will be happy to help out in most areas.
Also, as for 'breaking' changes; I think we should be pretty laxed about breaking stuff until we hit 1.0. I gather ~5 active users and I think we all prefer improved change over legacy support.
Lets jump on a chat (voice omg?) sometime and try to plan this out?

Oh; as for naming -- finding a word combo with said name for domain and github org repo should also be considered.

Where are the naming conventions documented? It looks daunting to me. Only guideline that I knew was https://google.github.io/styleguide/shell.xml#Naming_Conventions
Other than that probably you can use https://github.com/openstack-dev/bashate to clean some of the code (and start adding a test to the code)

@jbergstroem  said:
I will have more time for "open source" (read: computer time that isn't work-related) in 2 weeks and will be happy to help out in most areas.

Yay.

@jbergstroem said:
Also, as for 'breaking' changes; I think we should be pretty laxed about breaking stuff until we hit 1.0. I gather ~5 active users and I think we all prefer improved change over legacy support.

Agreed, but it's still annoying and now would be a very good time for any breaking changes.

@jbergstroem said:
Lets jump on a chat (voice omg?) sometime and try to plan this out?

Sure, had a fairly busy week but should have some time this weekend. Maybe open a slack channel so everyone can chime in without having to set up a bouncer?

@azimut said:
Where are the naming conventions documented? It looks daunting to me. Only guideline that I knew was https://google.github.io/styleguide/shell.xml#Naming_Conventions

I used the linked style guide as much as possible, the naming convention for variables I defined myself. I find the source much clearer now as a variable's scope is obvious just by looking at the name.

@azimut said:
Other than that probably you can use https://github.com/openstack-dev/bashate to clean some of the code (and start adding a test to the code)

Looking at the checked rules the source should already be fine, but something to keep in mind when adding tests. Thanks for pointing it out.

Pushed current state to spring branch:

main.sh is entry script for now, gonna get renamed
bob-interactive.sh got replaced by --interactive or -i option for build command
only busybox and glibc images are refactored currently, should only be a matter of adjusting for _ROOT_EMERGE and _packages in existing images though.
Argbash is used for argument parsing and contextual help, see lib/argbash, some minor teething issue I already reported upstream:

./main.sh --help currently only displays the short help, to see the full help ./main.sh foo --help, hopefully fixed soon

Should be fairly complete otherwise, please give it a try with your own namespaces.

I am trying to build busybox but I get docker: Error response from daemon: invalid hostname format: gentoobbarm/bob-musl
I think docker doesn't accept / on the hostname:
https://github.com/docker/docker/issues/23122
https://github.com/docker/docker/pull/20566/files

On a different note. Might be there should be Changelog to put things like the migration, changes or new features.

Thanks!
Just some really minor things I found while building (I removed the --hostname to keep building locally)

add /var/lib/gentoo and /etc/portage/ to cleanup of rootfs.tar
add the flag to skip baselayout on busybox (as it was the default behaviour before)
might be calls to main.sh should default to the behaviour of passing it "..." that shows the full help.
So yeah, things worked great. Will need to try the portage thing as well as try to use those oci images other day.

add /var/lib/gentoo and /etc/portage/ to cleanup of rootfs.tar

done.

add the flag to skip baselayout on busybox (as it was the default behaviour before)

That's news to me. :P But reminds me that I did want to try a full rebuild with that flag enabled.

might be calls to main.sh should default to the behaviour of passing it "..." that shows the full help.

That's currently an Argbash limitation, it's already reported and hopefully fixed soon. Depending on how long this takes I can also fix the generated parsing code manually.

Hello. I just found where the real work is going :) I thought master is default dev branch.
I have updated to spring and have issue and questions.

When building s6, it failed on RUN with '/etc/service/.s6-svscan' not found error. Don't know why. I just added mkdir /etc/service/.s6-svscan on beginning of RUN and all went fine.
I modified my default CFLAGS in build.conf, and added -march=native (php use 25% less memory with that, and makes executables a bit faster). When I exec bash in bob, I don't see them in make.conf, and $CFLAGS, only $DEF_CFLAGS and $BOB_CFLAGS. Is this working? I don't know how to test executables and their compiler params
I think default make.conf from lib/bob-core must be moved to rootdir
I had some hacks modifying ebuilds, now they are not working, coz on building seems /usr/portage is not mounted. I use this:
sed -i 's/php7-0/php7-1/g' /usr/portage/dev-php/pecl-geoip/pecl-geoip-1.1.1-r2.ebuild
ebuild /usr/portage/dev-php/pecl-geoip/pecl-geoip-1.1.1-r2.ebuild digest
because it is not building for php7.1
How to port this now to new version of gentoobb?

Thanks

When building s6, it failed on RUN with '/etc/service/.s6-svscan' not found error. Don't know why. I just added mkdir /etc/service/.s6-svscan on beginning of RUN and all went fine.

I haven't refactored all the images in the branch yet, only busybox and glibc, so yea the other images might have some minor issues. At the very least you need to change to _EMERGE_ROOT and _packages for the other images.

I modified my default CFLAGS in build.conf, and added -march=native (php use 25% less memory with that, and makes executables a bit faster). When I exec bash in bob, I don't see them in make.conf, and $CFLAGS, only $DEF_CFLAGS and $BOB_CFLAGS. Is this working? I don't know how to test executables and their compiler params

Try changing the flags of the builder's build.conf, it most likely overrides the values from global/namespace build.conf. This was needed for supporting multiple stage3 builders, so not really related to this branch. Also keep in mind that changing CFLAGS requires a rebuild of the builder now to take effect.

I think default make.conf from lib/bob-core must be moved to rootdir

Not sure I understand the problem, need more details.

I had some hacks modifying ebuilds, now they are not working, coz on building seems /usr/portage is not mounted.

Default portage location is now /var/sync/portage. Had to move it out of /usr to enable deleting the portage dir when switching to git sync and a /usr volume on the portage container is not a good idea for obvious reasons. Open for better path suggestions though.

About CFLAGS. I just wanted to ask, if it is working this way. I modified them in global build.conf and need them anywhere. Just the usual way is define them in make.conf, so I wanted to ask, if GCC uses these DEF_CFLAGS variables or if bob passes it to GCC

About moving make.conf

Not sure I understand the problem, need more details.
I mean  you made new tree structure, where all core parts you put in lib dir, etc it is all good, config files remain in root directory. But make.conf maybe changed by user, it is also a config file, and I think it's better place near other config files (build.conf and run.conf). And add all them to .gitignore by default, so I can safely git pull.

You can remove
BOB_SYNC_URI="${BOB_SYNC_URI:-rsync://rsync.europe.gentoo.org/gentoo-portage}"
BOB_SYNC_TYPE="${BOB_SYNC_TYPE:-rsync}"
They are not working anymore. I am not sure someone will prefer rsync instead of current default git.

I had problems with your default Dresden mirrors, many 404 not found errors. So I changed
BOB_GENTOO_MIRRORS="${BOB_GENTOO_MIRRORS:-http://distfiles.gentoo.org/}"
and I think it must be default for all users.

I use gentoobb on hardened gentoo with grsecurity, zfs etc. I use bash as my source package for many packages. So I added 'paxctl' package to bash, and wanted it to be available on all images it depends on. But it is not available on next images. Can you please explain, how emerge actually works? Why it install some packages to /, some to /emerge-root, or both 2 times. Why php need to be installed in configure_bob first, and then usual way, and many other packages that fail. I just want to understand how this process works to avoid errors in the future.

my 2cents about 4) would be that this projects uses the (not very well documented) --root option of emerge. The best docs i found were at https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/portage-build-faq basically emerges on /emerge-root the RDEPEND and not the DEPEND (though they might be the same sometimes) https://devmanual.gentoo.org/general-concepts/dependencies/ You have a flag --root-rdepend when you can push the DEPEND on ROOT too apparently.
The other thing in this project is that the builder of the parent image is actually re-used for the child one. Unless you set a custom builder on build.conf for your image.

But make.conf maybe changed by user, it is also a config file, and I think it's better place near other config files (build.conf and run.conf). And add all them to .gitignore by default, so I can safely git pull.

I see, the default make.conf is very bare bone and can be customized or even completely replaced by any builder. You could echo "foo" >> some lines, sed stuff or place your own make.conf in a builder dir and add COPY make.conf /etc/portage/ to the builder's Dockerfile.template. Keep in mind that we configure many of Portage's features via env script. Other then that there are no limits how a builder wants to configure itself.

You can remove BOB_SYNC_URI= ....

Yea, can probably be removed.

I had problems with your default Dresden mirrors, many 404 not found errors. So I changed
BOB_GENTOO_MIRRORS="${BOB_GENTOO_MIRRORS:-http://distfiles.gentoo.org/}"
and I think it must be default for all users.

Fair point, maybe disable the variable's default and use mirror-select as part of builder setup?

So I added 'paxctl' package to bash, and wanted it to be available on all images it depends on. But it is not available on next images.

How did you add the package? If it was via _packages then it should be available for depending images.

Can you please explain, how emerge actually works? Why it install some packages to /, some to /emerge-root, or both 2 times. Why php need to be installed in configure_bob first, and then usual way, and many other packages that fail. I just want to understand how this process works to avoid errors in the future.

To fully understand this just have a look at build-root.sh. The script is the only command executed when the build container is started during a build. As part of its flow it executes the functions you defined in your builder's/image's build.sh.

configure_bob => emerge installs packages in the build container's / as usual
After that the ROOT env is set to /emerge-root, this is equivalent to passing --root to emerge
Hence all emerge calls in configure_rootfs_build and finish_rootfs_build hooks will install/delete packages at the custom root
Some packages have problems building when using --root, most of the time this comes down to dependencies that are required during build time not being found by the build, because they only exist at the custom root while the build expects them at the build container's root. To work around that you install the package in configure_bob first, which also generates a binary package. This binary package is then used when installing at the custom root, circumventing all build troubles. A more elegant way is to simply install the needed build time dependencies in configure_bob hook, but this may require a bit more fiddling.

And that's pretty much all there is to it.

@edannenberg, thanks for your answer. Now it is more clear. About mirrors, I never use them and never trust them. You depend from one more server/admin. But it's my opinion :) Don't like to receive 404 unexpectedly, if someone forget to sync with master. Maybe keep default and allow user to choose mirror, if he like.
I have 2 more issues.

If build.sh uses layman to add a repo, and build fails, next try build will fail with 'repo already added'. Ok I modified my line to:
layman -a rindeal || true
But package was not found, even repo is added.
So I do
layman -d rindeal || true
layman -a rindeal || true
and only now it works.

I am building phantomjs-2.1.1 and build fails on libxcb-1.12-r2, saying No Python implementation found for the build. I checked in interactive mode, I have 2 pythons and all of them working. What can be the issue?

Here is the log:

Package:    x11-libs/libxcb-1.12-r2

Repository: gentoo

Maintainer<EMAIL_ADDRESS>

USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU xkb

FEATURES:   preserve-libs sandbox userpriv usersandbox

No Python implementation found for the build. This is usually

a bug in the ebuild. Please report it to bugs.gentoo.org

along with the build log.

ERROR: x11-libs/libxcb-1.12-r2::gentoo failed (setup phase):

No supported Python implementation installed.

If you need support, post the output of emerge --info '=x11-libs/libxcb-1.12-r2::gentoo',

the complete build log and the output of emerge -pqv '=x11-libs/libxcb-1.12-r2::gentoo'.

The complete build log is located at '/var/tmp/portage/x11-libs/libxcb-1.12-r2/temp/build.log'.

The ebuild environment file is located at '/var/tmp/portage/x11-libs/libxcb-1.12-r2/temp/die.env'.

Working directory: '/var/tmp/portage/x11-libs/libxcb-1.12-r2/homedir'

S: '/var/tmp/portage/x11-libs/libxcb-1.12-r2/work/libxcb-1.12'
~

If build.sh uses layman to add a repo, and build fails, next try build will fail with 'repo already added'.

Yep, that's because the layman overlay dir is now a volume of the portage container and shared with all build containers. I did a similiar check for the musl build container. Will probably wrap layman with a small function that won't fail if a overlay already exists on add.

I am building phantomjs-2.1.1 and build fails on libxcb-1.12-r2.. What can be the issue?

Builds fine for me, including phantomjs:
>>> x11-libs/libxcb-1.12 merged

Try building in an interactive build container, check if python install is correct etc.

I was building it on top of php7. It has multiple x11-/ in package.provided. I removed them all with sed '/x11/d' and build went fine.
I had issues with libpcre. it was listed in provided, but I enabled use flag '+pcre16'. it was not rebuilt, and qtgui build failed. So I unprovided it.
Is there any way to remember use flags in packages.provided, and rebuild if mismatch? I think it will resolve many portage issues and will make preparing packages much easier. What do you think?

Summer is coming: https://github.com/edannenberg/gentoo-bb/issues/102

A quick update:

After much consideration the new project name is now set in stone: kubler. It's a play on Kübler, which is a traditional german surname that has it's origin in the cooper profession. Much like Miller or Smith. Thank you @mischief for the cooper suggestion.

kubler.sh can now be put into the system PATH, symlinked is fine too, and called from any sub folder of a namespace. Single and multi namespace formats are supported and can exist outside of Kubler's project folder. Creating an install procedure should be trivial now, though I still don't see much use for that. However there will be release zip files that don't include the example images.

Main work should be done for this branch, current plan is to merge this into master with the next monthly update, so 1-2 weeks. I'll update the branch with detailed changelog in the next couple days.

@UralZima said:
Is there any way to remember use flags in packages.provided, and rebuild if mismatch? I think it will resolve many portage issues and will make preparing packages much easier. What do you think?

package.provided only lists specific package atoms that should be considered as installed, so no it's not possible.

New branch is up, changelog:

Refactor project for name change gentoo-bb -> kubler
kubler.sh now behaves like a regular CLI app that can be put into PATH
Rename global and namespace build.conf to kubler.conf
Add support for external --working-dir that only contains namespaces(multi) or images(single)
If --working-dir is not defined try to detect a proper working dir starting from PWD
If PWD is inside a valid namespace dir the namespace part of image ids can be omitted, i.e. just build busybox
Source build-root.sh and /etc/profile on interactive build container start. Make helper functions avail.
Rename CONTAINER_ENGINE -> BUILD_ENGINE in all namespace config files
Manually massage generated Argbash code to be release ready
Fix few subtle regression bugs
Apply lots of polish all over the place
Prepare for monthly stack update, minor fixes and full rebuild

To create an external working dir just cd into some directory where you would like to create the working dir and run kubler new namespace foo. The helper should explain everything else.
Baring any bugs this should be close to release quality and merged into master next week, maybe a bit sooner depending how the tests go.
I have updated the README.md for the most part, if any of our fluent English speakers could proof read and PR, that would be :+1:. I have left a 2nd draft version of the initial paragraphs in the README.md feel free to expand/rework, a bit stuck and not entirely happy with the silly version, but could potentially be good I think.
This is a fairly large commit again, might have missed a few things to mention. I did however do a complete stack rebuild and everything seems to be in order. Please test (ideally with a fresh clone) and let me know if there are any issue left. Specially any error messages that should have more meaningful output.
As I had to rebase to get some fixes from master, the latest and greatest is now in the kubler branch.

I like the new name, this quote you put in the new branches readme is great: -

Wikipedia said: There is still demand for high-quality ~wooden barrels~ containers, and it is thought that the highest-quality ~barrels~ containers are those hand-made by professional coopers kublers

Last bugs should be squashed, git repo is renamed and everything got merged into master. :tada: Monthly image update is pushed to new kubler docker hub account. I'll leave the old account up for a bit longer.
To update existing gentoo-bb git repos:
git remove -v show
git remote set-url origin https://github.com/edannenberg/kubler.git
git remove -v show

@edannenberg said:
Monthly image update is pushed to new kubler docker hub account

We should automate this. Perhaps kickstart things over at travis to rebuild?

@edannenberg should:

git remove -v show

be git remote -v show?


Shadow root

Fixes #10162.
In addition to making events work when the map's root node is a ShadowRoot, this pull request adds an example that shows how to create a custom element with a map.

I tested this and it seems to work right.

im use 6.1.1 and update to openlayers-master, singleclick cant work in iphone by this change

i am use 6.1.1 and update to openlayers-master, singleclick can not work in iphone by this change

@DeleteElf Please use npm install ol@dev to get a version that includes this change.


Add Stephen Kennedy to Charcoal HQ

Creating a PR for visibility.
SOCVR room owner, over 1000 feedbacks in Metasmoke (1.13% invalid but none in the last month).

Also upgraded Stephen's privilege level to Core.


Ability to use archimate view properties when referenced in other views

It is a good feature to have ability to reference views in each other.
But somtimes there are cases, when, for example, there bp a need to use a full or detailed view description for a view element on a diagram (instead of using a view name from a model tree, which can be shortened and etc.).
All views are provided with properties, which can be edited from the model tree, or when editing a view itself:

But they are not accessible from the view element, when it is placed on the other view diagram:

Please note that a View Reference node is a visual shortcut to the View itself. Therefore it is a visual node for which you can edit the visual aspects relating to the node - Appearance and Label (editing the name was a simple easy thing to do). The Documentation, Viewpoint, and Properties relate to the View itself and can be edited there.

That's exactly the point: is a visual shortcut from which you cannot access the properties of the view itself.
The initial poster and myself believe that it would be an useful feature being able to do so. In my specific case: I'm an old dog and IDEF0 practitioner and supporter of its presentation standard, and wish to simplify the deliverables preparation process having all the diagrams and cross references right from Archi and export them just for formatting purposes, this slight limitation adds an additional step

The Name, Documentation, Viewpoint, Connection Router type, and Properties relate to the View itself and can be edited there.

But the properties doesn't work (and in addition properties tab doesn't appear in Properties window when you select a visual shortcut on a view.
Proof is here:

This will be implemented in the next version of Archi.

This is in Archi 4.10

Wonderful!!
El sáb., 17 de septiembre de 2022 14:38, Phil Beauvoir <
@.***> escribió:

This is in Archi 4.10
—
Reply to this email directly, view it on GitHub
https://github.com/archimatetool/archi/issues/727#issuecomment-1250121297,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ6J3XXZZ2UYPK7ZYTF6Z73V6YF2FANCNFSM43XXZJCA
.
You are receiving this because you commented.Message ID:
@.***>


Add additional details to output

When processing completes, display tokens, replacement values, number of replaced tokens, and number of renamed files. If verbose mode is turned on, display the number of skipped files and display the before and after values for each replacement.

Also need to clean up order of output and add feedback for non-verbose mode. Copy/Clone success message comes after processing. Once tokens are supplied, there is no feedback that tokens are being processed.


Migration file_picker to WASM support

I want to compile my app to WASM but I found that I need to migrate several libraries to WASM
Context: The unavailable library 'dart:html' is imported through these packages:

    web_plugin_registrant.dart => package:file_picker => dart:html
    web_plugin_registrant.dart => package:flutter_keyboard_visibility_web => dart:html
    web_plugin_registrant.dart => package:fluttertoast => dart:html
    web_plugin_registrant.dart => package:permission_handler_html => dart:html
    web_plugin_registrant.dart => package:share_plus => dart:html

So I started by migrating file_picker library
I don't know if here is the right place for asking support
I made the initial migration but I got two cases which I don't know how to migrate
Case 1:
 _target.children.clear();
Case 2:
 await reader.onLoad.first;
I wonder how to migrate these two cases
My commit after the initial attempt to migration
https://github.com/amrgetment/flutter_file_picker/commit/1ded925ad24b3ad958cf5db7b6aa63d7ca4c3c17
And I wonder if here is the right place to ask about migration support?

And I wonder if here is the right place to ask about migration support?

Sure, one of the goals is to help migrate away from dart:html.

_target.children.clear();

There's some wrapping with lists going on with children, but ultimately the implementation points to https://github.com/dart-lang/sdk/blob/c5f876b7aaca65c6bdc6d718cf18d0ee9c335afb/sdk/lib/html/dart2js/html_dart2js.dart#L23276. So the equivalent would be:
var firstChild = _target.firstChild;
while (firstChild != null) {
  _target.removeChild(firstChild);
  firstChild = _target.firstChild;
}

This may not be the fastest (might be faster to remove the children starting from the end) or most idiomatic way, but it's the identical equivalent.

await reader.onLoad.first;

Use the events helpers in the helpers folder e.g.
await EventStreamProviders.loadEvent.forTarget(reader).first;

There's events.dart which tries to keep the same syntax as dart:html but doesn't have all the events added there yet. Feel free to add a missing member in a PR (like with onLoad).

I will try it in the weekend

I still need support I tried to build with WASM but I got the following error
../lib/_internal/file_picker_web.dart:142:66: Error: Function converted via 'toJS' contains invalid
types in its function signature: 'void Function(*dynamic*)'.
Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void,
bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop'
types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid
non-primitive type.
      window.removeEventListener('focus', cancelledEventListener.toJS);
                                                                 ^
../lib/_internal/file_picker_web.dart:156:64: Error: Function converted via 'toJS' contains invalid
types in its function signature: 'void Function(*dynamic*)'.
Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void,
bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop'
types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid
non-primitive type.
    uploadInput.addEventListener('change', changeEventListener.toJS);
                                                               ^
../lib/_internal/file_picker_web.dart:157:67: Error: Function converted via 'toJS' contains invalid
types in its function signature: 'void Function(*dynamic*)'.
Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void,
bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop'
types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid
non-primitive type.
    uploadInput.addEventListener('cancel', cancelledEventListener.toJS);
                                                                  ^
../lib/_internal/file_picker_web.dart:160:61: Error: Function converted via 'toJS' contains invalid
types in its function signature: 'void Function(*dynamic*)'.
Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void,
bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop'
types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid
non-primitive type.
    window.addEventListener('focus', cancelledEventListener.toJS);

My migration

With the new interop, you can't use the dynamic type. Add the Event type to the e argument of the changeEventListener function:
void changeEventListener(Event e) async {
  // ...
}

Thanks builds fine now 😍

I tried to run the app for testing and I goe the following error:
Error: TypeError: Instance of 'NativeByteBuffer': type 'NativeByteBuffer' is not a subtype of type 'Uint8List?'
for this code
addPickedFile(file, reader.result as Uint8List?, null, null);
so how to convert NativeByteBuffer to Uint8List

I used this conversion and it works fine now
          ByteBuffer? byteBuffer = reader.result as ByteBuffer?;
          addPickedFile(file, byteBuffer?.asUint8List(), null, null);

My full PR for the reference
https://github.com/miguelpruivo/flutter_file_picker/pull/1481

ok, I will update it, thanks a lot

I wonder why byteBuffer is not nullable here?

Presumably, analysis is smart enough to know that its value is non-nullable? This also gives me a hint:
void main() {
  int? x = 5;
  x?.isEven;
}

If you don't know if reader.result is nullable or not, you can downcast to the nullable type instead:
ByteBuffer? byteBuffer = (reader.result as JSArrayBuffer?)?.toDart;

Thanks
Works fine now, I wonder how to run Flutter with WASM in debugging mode? is it by --web-renderer skwasm

dart2wasm doesn't have a debugging mode yet unfortunately.


pycsw data.gov failing

Trying to see if I can harvest from data.gov, failing
http://catalog.data.gov/csw
https://catalog.data.gov/csw
http://catalog.data.gov/csw-all
https://catalog.data.gov/csw-all

hi David, we have seen this CSW also has started failing in Geoportal Server 1.2.7. I have reached out to GSA (they operate Data.gov).

As a hint, neither of these two calls deliver record's content:
https://catalog.data.gov/csw?request=GetRecords&service=CSW&version=2.0.2&ElementSetName=full&typenames=csw:Record
https://catalog.data.gov/csw?request=GetRecords&service=CSW&version=2.0.2&ElementSetName=full&typenames=gmd:MD_Metadata
Any other combination of possible values of ElementSetName, typenames, outputformat, etc. doesn't help.

&resultType=results works. not pretty.
https://catalog.data.gov/csw?request=GetRecords&service=CSW&version=2.0.2&ElementSetName=full&typenames=csw:Record&resultType=results

not to mention that these include many http-only links that will start to fail given the https-only policy in place for the federal government.

Currently, harvester has a "Data.gov" dedicated input broker which allows to acquire metadata from that particular source. Since pycsw keeps failing, "Data.gov" broker is using a combination of CKAN and WAF methods to get job done. Broker itself requires no configuration beside giving a name; all other properties are optional.

So if we want to filter based on an organization, how might we do that?

cc @kalxas
@pandzel / @mhogeweg to clarify, what are the issues at hand?  Is there a bug in how the CSW behaves?  If there are bugs in pycsw please let us know and we can fix them accordingly.

hi @tomkralidis. Geoportal Server can do federated search to CSW and there are users who want to do this. We're seeing intermittent success. Most common issue appears to be 403 responses.
This request shows the response error:
https://gptogc.esri.com/geoportal/rest/distributed?rid=local&ridName=This Site&rids=local%2CdataGov&searchText=water&start=1&max=10&orderBy=relevance&f=atom
Exception when Posting CSW query to https://catalog.data.gov/csw-all: HTTP Request failed: HTTP/1.1 403 Forbidden
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
        <TITLE>ERROR: The request could not be satisfied</TITLE>

403 ERROR

The request could not be satisfied.

Request blocked.

Generated by cloudfront (CloudFront)
Request ID: fZtHiItoRuNkv0Wx9yrLUUXENvYEatwAkc0nyjPlEzOFmkKi0b2eJg==

        <ADDRESS></ADDRESS>

The request is blocked

This is not a response from pycsw but from a proxy/caching layer in front of data.gov

we know. but we haven't been able to get GSA to resolve this


Stars & bookmarks

We can / should allow people to give their own ratings to cocktails, and mark ones they've tried.

Can we the cocktail glass as a checkbox? Filled glass for tried, empty for not? 💭


Docs: update command summary section with add and edit commands

Update command summary of user guide section with format of add and edit commands.

the test should pass after merging the fix: view command and ingredients PR 😄

Codecov Report

Merging #149 (b1f4d22) into master (688510c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #149   +/-   ##
=========================================
  Coverage     56.03%   56.03%
  Complexity      406      406
=========================================
  Files            80       80
  Lines          1731     1731
  Branches        168      168
=========================================
  Hits            970      970
  Misses          677      677
  Partials         84       84

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 688510c...b1f4d22. Read the comment docs.


URGENT: deleting one mirrored site deletes all content

Current implementation of preventing this isn't work.
While loading has_many relations, AR sets inverse links for they.
[1] pry(main)> s = Comfy::Cms::Site.first
...
[2] pry(main)> [s.__id__, s.layouts.first.site.__id__]
...
=> [70315183268680,<PHONE_NUMBER>8680]
[3] pry(main)> s.__id__ == s.layouts.first.site.__id__
=> true

Will be great if you can release update soon.

Coverage remained the same at 98.9% when pulling 700cee060bbb2d452fad6df33bd90ad42412a9fe on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Ugh. It seriously does that? Can you set up a supporting test case?

Yes, it does.
I'm not familiar with this tests. But I think here creates only site, without pages, layouts and snippets, so this line tests nothing.

Or they are not saved and I shuld do it this way?

You're right, this test: https://github.com/comfy/comfortable-mexican-sofa/blob/master/test/lib/mirrors_test.rb#L230 only checks if site object stays. Doesn't check if associated layouts/pages are not blown away.

Coverage remained the same at 98.9% when pulling 9787b89c12aa83dc74085b191776e36c623f0819 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 543d1a7bdb73af2ff0598788523e7fa76a1c479a on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 543d1a7bdb73af2ff0598788523e7fa76a1c479a on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 543d1a7bdb73af2ff0598788523e7fa76a1c479a on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 9be4973a166d245035ef11bf58fedda5a5fcd709 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling bfd37ed29063e79ab9726755767562dbd6b8e071 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling bfd37ed29063e79ab9726755767562dbd6b8e071 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage decreased (-0.12%) to 98.78% when pulling bfd37ed29063e79ab9726755767562dbd6b8e071 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage decreased (-0.12%) to 98.78% when pulling fa4ba85cb86db0389b8bdae8ffffc73ebf6fff50 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Whew. Failed test: https://travis-ci.org/comfy/comfortable-mexican-sofa/builds/56058405. Ok on rails 4.0 and fails on 4.1 and 4.2.

Coverage remained the same at 98.9% when pulling 5db30f68cd0ad7a73f13dcfb0f34f4a8c7bf70e0 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 5db30f68cd0ad7a73f13dcfb0f34f4a8c7bf70e0 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 5db30f68cd0ad7a73f13dcfb0f34f4a8c7bf70e0 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 5db30f68cd0ad7a73f13dcfb0f34f4a8c7bf70e0 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Coverage remained the same at 98.9% when pulling 5db30f68cd0ad7a73f13dcfb0f34f4a8c7bf70e0 on SoftSwiss:master into 886b2270acf26bf2434ffab9bd4a9e8ef347e7bd on comfy:master.

Done.

Sorry, but do you plan to release update in near future?

Yes, I'll review this this weekend. Unexpected data loss is bad.

Hold on. Existing test looks good to me. Your test actually doesn't fail with old code:
self.class.where(:id => self.id).update_all(:is_mirrored => false) if self.is_mirrored?

What exactly you're trying to fix?

I have wrote all things above. Try to summarise:
https://travis-ci.org/comfy/comfortable-mexican-sofa/builds/56058405 - my test fails with old code.
Rails 4.0 https://travis-ci.org/comfy/comfortable-mexican-sofa/jobs/56058420 - test pass.
Rails 4.1 https://travis-ci.org/comfy/comfortable-mexican-sofa/jobs/56058421 - test fails.
Rails 4.2 https://travis-ci.org/comfy/comfortable-mexican-sofa/jobs/56058422 - test fails.
  1) Failure:
MirrorsTest#test_site_destruction [/home/travis/build/comfy/comfortable-mexican-sofa/test/lib/mirrors_test.rb:254]:
"Comfy::Cms::Page.count" didn't change by -1.
Expected: 2
  Actual: 0

So your code works only on Rails 4.0.
You can see, modern rails don't reread parent model for associations:
[1] pry(main)> s = Comfy::Cms::Site.first
...
[2] pry(main)> [s.__id__, s.layouts.first.site.__id__]
...
=> [70315183268680,<PHONE_NUMBER>8680]
[3] pry(main)> s.__id__ == s.layouts.first.site.__id__
=> true

In general your solution is weird, why you change database row and don't change current object? I just replace low-level db update to high-level method for update model and save change to db.

What exactly isn't clear for you?

Out of curiosity, I went looking into the AR changelog to find out what behaviour would have changed.  Didn't see anything definite, but the most likely candidate is that there was previously a bug in AR where delete_all would actually trigger AR callbacks, and it wasn't supposed to.  That was changed in 4.1.
4.1 also introduced automatic inverse_of behaviour as long as both sides of a relation match the naming heuristics, but I haven't looked close enough.
I think @Bishop solution is correct though.  Class.update_all isn't affecting the current object at all unless you were to reload, but just calling update_attributes on current object seems simpler.  Consequence is that callbacks on the current object are going to fire, but I'm not sure if that would create any issues.

Left test alone as it was actually failing. Something got changed in Rails from 4.2.0 to 4.2.1 it seems.
Thanks all.


git log completion does not recognize --patch and --stat

System Details

posh-git version/path: 0.7.3  C:\Program Files\WindowsPowerShell\Modules\posh-git\0.7.3
PowerShell version: 5      1      17134  228
Git version:  2.18.0.windows.1
Operating system name and version: Microsoft Windows NT 10.0.17134.0

Issue Description
I am experiencing a problem with posh-git completion for git log: I frequently use git log --patch and git log --stat, but posh-git does not know about them.

This should be a pretty simple change, if anyone wants to contribute:
https://github.com/dahlbyk/posh-git/blob/926fb60baa64574bd38e6f25550c63de47e15e5e/src/GitParamTabExpansion.ps1#L61
Bonus points for refactoring such that the git diff common options can be reused across related commands (e.g. show is missing them).
Curiously, git-completion.bash doesn't handle --patch either!

but zsh completion does have this out of the box,
git diff --stage also is missed
I'll see whether I can make a PR myself.

created a PR: #620

but zsh completion does have this out of the box

Interesting. I don't see it in git-completion.zsh, so I'm curious why it would be working?
Regardless, thanks for the PR!


failed to install some R packages with packrat

First of all, I am installing the pipeline on a cluster to my local space as I am a regular user rather than someone with root privileges.
Some R packages like Rhtslib are failing to install  and the issue seems to be that packrat cannot direct the installation to happen on my local path.
This problem has been known and discussed in places like this one:
https://github.com/rstudio/packrat/issues/418
Wouldn't it make more sense to use BiocManager in order to install that long list of R libraries that this pipeline requires?

Thanks for the comment. We had some issues with this ourselves and were able to get a workaround with the folks who manage our cluster. Feel free to fork our repository and use BiocManager. Please let us know if that provides a more robust solution and perhaps send a pull request?

I am trying my luck with modules and nextflow instead of using your approach with conda and packrat. If I get anywhere I will be happy to post my version  as a branch (perhaps?)

Would it be possible for you to post results files within the tutorial
so that we can compare our results to your, please?
 I do not know if the data are exactly like what we get in our tutorial, but suspect that everything is working properly here!


WIP: More granular diff view

Parking this here for now.
This is a first pass at more granular diffs for string values using python's difflib.
Rendering it happens character wise currently, since the info regarding the characters' addition or removal is character-wise. Rendering it character-wise introduces some weird spacing issues that I'm yet to solve.
What it looks like

FYI cc @snopoke @stephherbers

Codecov Report
Attention: Patch coverage is 33.33333% with 16 lines in your changes missing coverage. Please review.

Files with missing lines
Patch %
Lines

apps/experiments/versioning.py
33.33%
16 Missing :warning:

Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!

Looks pretty good to me.
ChatGPT recommend this approach:

    Hello
    world
    !

This looks a bit worse tbh. We can maybe roll out the existing stuff and let people benefit from it so long? This is what it looks like now:


No module named using virtual environment in VS Code

Environment data
VS Code version:  1.19.0
Python Extension version:  0.2.3
Python Version:   3.6.3
OS and version:    Windows 10 x64 bit
I am trying to run python app that runs on a virtual environment perfectly with no issues. When i copy this code to run in VS Code as azure function i get the following error:
from fbprophet import Prophet\r\nModuleNotFoundError: No module named 'fbprophet'\r\n","errorDetails":"Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.MLLoaderInsight
I am expecting to run this app in VS Code with no issues as i run it on IPython on the same machine using the same virtual environment.
Full code of the app to test loading a prophet model in azure function app in VS Code:
import pickle
from fbprophet import Prophet

# load the model from disk
filename = "c:/prophet_quickstart_model.sav"

with open(filename, "rb") as input_file:
    m=pickle.load(input_file)

future = m.make_future_dataframe(periods=100)
future.tail()

forecast = m.predict(future)
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()

A screen shot below shows the selected virtual envionment in VS Code which case prophet package:

Output from TERMINAL Window in VS Code:
Response Status Code: InternalServerError
{"id":"9fbd89de-bf6c-4d35-b8b7-46c43ebe6151","requestId":"50d80248-c769-496d-a587-95730e5065cc","statusCode":500,"errorCode":0,"messsage":"Exception while executing function: Functions.MLLoaderInsight -> Traceback (most recent call last):\r\n  File \"C:\\ColumbiaCode\\InsightsPython\\MLLoaderInsight\\run.py\", line 3, in <module>\r\n    from fbprophet import Prophet\r\nModuleNotFoundError: No module named 'fbprophet'\r\n","errorDetails":"Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.MLLoaderInsight ---> System.ApplicationException : Traceback (most recent call last):\r\n  File \"C:\\ColumbiaCode\\InsightsPython\\MLLoaderInsight\\run.py\", line 3, in <module>\r\n    from fbprophet import Prophet\r\nModuleNotFoundError: No module named 'fbprophet'\r\n\r\n   at async Microsoft.Azure.WebJobs.Script.Description.ScriptFunctionInvoker.ExecuteScriptAsync(String path,String arguments,Object[] invocationParameters,FunctionInvocationContext context)\r\n   at async Microsoft.Azure.WebJobs.Script.Description.ScriptFunctionInvoker.InvokeCore(Object[] parameters,FunctionInvocationContext context)\r\n   at async Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(Object[] parameters)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.InvokeAsync[TReflected](Object[] arguments)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,Object[] invokeParameters,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,IReadOnlyDictionary`2 parameters,TraceWriter traceWriter,ILogger logger,CancellationTokenSource functionCancellationTokenSource)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) \r\n   End of inner exception\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at async
Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken cancellationToken)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()\r\n   at async Microsoft.Azure.WebJobs.JobHost.CallAsyncCore(MethodInfo method,IDictionary`2 arguments,CancellationToken cancellationToken)\r\n
at async Microsoft.Azure.WebJobs.Script.ScriptHost.CallAsync(String method,Dictionary`2 arguments,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostManager.HandleRequestAsync(FunctionDescriptor function,HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ProcessRequestAsync(HttpRequestMessage request,FunctionDescriptor function,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.<>c__DisplayClass3_0.<ExecuteAsync>b__0(??)\r\n   at async Microsoft.Azure.WebJobs.Extensions.Http.HttpRequestManager.ProcessRequestAsync(HttpRequestMessage request,Func`3 processRequestHandler,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ExecuteAsync(HttpControllerContext controllerContext,CancellationToken cancellationToken)\r\n   at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.SystemTraceHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.WebScriptHostHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)"}

Any help is appreciated.

How are you running the python file in vscode?
Are you manually running it on the terminal? If so what is the command?

@melzoghbi Are you actually using 0.2.3 of the Python extension and not 0.9.0?

@DonJayamanne  yes i run from the terminal window in VSCode.
The command (This is the same as the http post trigger sample in python):
func run .\HttpTriggerPython3\ -c "{"name": "mostafa" }"
I installed latest Azure CLI tools, now this is the error using terminal window command above:
Response status code does not indicate success: 401 (Unauthorized).
I am not using the debugger in VSCode since it is not working as mentioned in the previous post.
Any help is appreciate it.

yes i run from the terminal window in VSCode

This would lead us to a simple conclusion that this issue isn't related to the Python extension.
As the terminal is something that is part of the core VS Code editor. I'd suggest you raise this issue in the Azure CLI tools repo.

@DonJayamanne before closing the issue, Is there a way to run it in VS Code without the terminal?
If there is a reference (that is up to date) please share it here so i can run and debug python functions?
waiting for your reply.

Yes you can debug python code (provided your python file can be run from the terminal, then it can be debugged).

Please note, if a python file/command doesn't work in a terminal, it will most certainly not work when debugging either.
You can find our documentation on debugging here

But I am getting a 401 unauthorized error which i believe it is related to Azure function security. any thoughts on this?
This is an error from the http trigger function which you can create in VS Code and i still get the same issue.
Here is the steps from VS Code terminal window:
PS C:\MyCode\mopy1> func new
Select a language:
Select a language: Python
Select a template: HTTP trigger
Function name: [HttpTriggerPython3] func1
Writing C:\MyCode\mopy1\func1\run.py
Writing C:\MyCode\mopy1\func1\sample.dat
Writing C:\MyCode\mopy1\func1\function.json
PS C:\MyCode\mopy1> func run func1 -c '{"name": "Azure"}'
Response status code does not indicate success: 401 (Unauthorized).

@melzoghbi as I mentioned earlier, this is something you'll need to check with the Azure CLI team. As I mentioned earlier, this isn't an issue with the extension. And since you're using Azure CLI, the right place to ask questions would be on their repo, not here.

Response status code does not indicate success: 401 (Unauthorized).

This means you have not configured you auth credentials or similar. Please check with the azure cli team on their repo.


@conda-forge-admin, please update for conda-build 3

@conda-forge-admin, please update for conda-build 3.

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I updated the recipe for conda-build 3 in conda-forge/libtasn1-feedstock#3.


fix: make laptop work without justfiles

Make sure /usr/share/ublue-os/just/bling exists in case we're using
laptop without justfiles

Makes sense! Looks good to me!


Rule can't be imported from fuzzylogic.classes??

>>> from fuzzylogic.classes import Domain, Set, Rule
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Rule' from 'fuzzylogic.classes' (C:\Users\bbartling\AppData\Local\Programs\Python\Python37\lib\site-packages\fuzzylogic\classes.py)

Seems to work fine now.


Write a Java program to check palindrome string

Description
Write a Java program to check palindrome string
Palindrome string is a string that is same when read from left to right and right to left. For example, "aba" is a palindrome string, "abc" is not.
Input  : abba
Output : Palindrome String

How to contribute

Save the solution in CheckPalindromeString.java file
Add CheckPalindromeString.java file in check-palindrome-string folder

!assign

!assign


Add support for multiple datasets

Hi there!
This is an AWESOME library! I simply cannot express my happiness with this super helpful library enough..
Anyways, I think it would be really nice if Xcessiv supports multiple datasets, similar to its support for multiple estimators, ensembles, etc.
This way, we could define and import multiple datasets, and then configure each individual base estimator instance to take input from a user-specified dataset that they have defined. This would be important for importing heterogeneous data into a subset of the estimators, and even import different versions of the same dataset (classification, regression, etc.) so that some estimators can be classifiers, some can be regressors, and regressors can take input from classifier predict_proba results, etc.
Will this implementation break the existing one? Or, in other words, is it possible to extend the current version to support multiple datasets? If you know some tips for developing this, then kindly share them with me and I will also try to implement it (I'm kind of new to GitHub in terms of contributing code, so if you can give me a brief pointer to the file/packages I would need to look into, I'll figure out the rest).
Thank you so much for your hard work! This library is a God-send for all machine learning developers, newbies, and Kagglers out there!

Thanks for your kind words! I'm glad you find it helpful.
That's certainly an interesting proposal.
There's an interesting discussion in a scikit-learn PR https://github.com/scikit-learn/scikit-learn/pull/8960. I'm going to specifically point out this post by @dengemann

It seems to be a good moment to stop for a second and consider another interesting and relevant practice in stacking, that is feature stacking. My goal is to ensure that the developments here will not obstruct or block support for feature stacking at an early stage. So what is this and why it interesting. In many applied contexts, one may want to learn a model on features from different domains, governed by different distributions and covariance functions, e.g., Text and images, images and signals, continuous and discrete variables etc. Sometimes it can be more advisable to map each of these input sources to different first-level learners or simply don't estimate one single joint model for these different classes of inputs.
As the variant proposed here, the feature stacking would use learning on stacked layers of predictions. The main difference is that the different first level learners are trained on different columns of X.

Could this possibly be what you are talking about when you say:

importing heterogeneous data into a subset of the estimators, and even import different versions of the same dataset (classification, regression, etc.) so that some estimators can be classifiers, some can be regressors, and regressors can take input from classifier predict_proba results

If it is, then instead of having entirely separate datasets, one way you could achieve the same result in Xcessiv is by combining all your datasets, and then setting up your base learners to be sklearn Pipelines with sklearn.preprocessing.FunctionTransformer selecting only a subset of your feature columns, as shown in http://scikit-learn.org/stable/auto_examples/preprocessing/plot_function_transformer.html#sphx-glr-auto-examples-preprocessing-plot-function-transformer-py. Then some base learners could be trained on a subset and others on another subset.
I'm afraid that Xcessiv is very dependent on the scikit-learn (X, y) single dataset paradigm and I'm not sure how multiple sources would fit in with the rest of the codebase without a major overhaul.
Perhaps you could give a more specific example of your use case?

Hi @reiinakano , thanks for the pointers!
My use case is a regression problem.
So, I was thinking of having one subset of estimators directly use the input features to predict the continuous target variable, and another subset of estimators using the input features to predict the "interval" in which the target variable would be (a multi-class classification problem), and then using predict_proba on these classifiers as inputs to another subset of regressors.
So, the problem with this currently, is that the classifier base estimator's data has a different target variable (ie. the interval id), but the regressor base estimators's data has a continuous target variable. As a result, I not only need to split the input features (which i could do by following the approach you shared above) but also input different target variables (the 'y') into the different subset of estimators, which is why I thought multiple datasets would be a nice option.
But I think having multiple datasets still goes well with scikit-learn approach, because each estimator will only train on one specific dataset. The main point, rather, is that Xcessiv allows users to import and define these multiple datasets, and then configure each instance of a base estimator with one of these specific datasets. In essence, the user defines a list of imported datasets and then wires each base estimator instance with one of these datasets.
The ensembles and stacks made from these base estimators can also be configured with a specific dataset, in order to use the stacked predictions to predict the right target variable desired by the user.
I hope I've explained it clearer than before. If not, please tell me and I will be more than willing to further clarify.
Cheers!

Yup, your use case is certainly clear now. It's an interesting one as well. How prevalent is this though? Is this a commonly used approach or something only done in very special cases?
My problem here would be during the exporting of a stacked ensemble. The stacked ensemble exported should be usable on its own as a single base learner. i.e. must have fit(X, y). This allows for easy deployment in production, generating predictions on unlabeled datasets, or multi-level stacking. If the ensemble is a combination of base learners from different datasets, then that requirement won't be preserved.
Anyway, I can actually see that you can still achieve your use case in the current Xcessiv implementation, albeit in a very hacky way.
First, let's assume that your problem is mainly a classification one, although you have a column containing a label suited for regression. Arrange and combine your dataset so it now looks like this:
ftr1 | ftr2 | ftr3 | regression_y | classification_y
When defining your main dataset, you use classification_y as y, and keep regression_y in your X.
Now for all your classification base learners, you use a pipeline with FunctionTransformer to exclude the regression_y column (and any other columns you want to exclude) before your regular classifier. No problem there.
Things get a bit hairy for your regressors. But remember that you have full control over what is done with your base learners' fit(X, y) and predict(X) methods. You should rewrite your fit method, and in it, you disregard the passed in y (which corresponds to the classification_y column), and instead separate the regression_y column in the passed in X. You would then fit the actual regressor on the leftover X features and regression_y label column. For the predict(X) method, you would modify the passed in X again and cut out the regression_y column, and call predict on this new X.
It's quite convoluted, but if you export your entire stacked ensemble in the end, you would be able to call fit(X, y) on a full dataset without needing to specify a different data source for each base learner. Each base learner can take care of cutting out columns on its own. You can then proceed to use it as a base learner and do multi-level stacking.
What do you think?

Thinking about it some more, I assume this is something mostly done for regression (because of the binning thing)? If so, then I think it's an even simpler fix. Use regression_y as your y column and generate your binned features on the fly for classifiers i.e. in classifier fit method, convert passed in y to binned classes before actualy fitting. There would be no need for a separate classification_y column.

Great! Thanks for your help! I'll give it a try and let you know how it goes!


Sidebar link to "git-legit" goes to a poker site

The URL "www.git-legit.org" seems to have been picked up by an unrelated poker site. It should be removed from Pipenv's website or updated to point at the real location of the git-legit project.

The site is down and the project is transferred, the new home is https://frostming.github.io/legit
Anyone would like to contribute?


easier to watch video

Hyperlink from Google Search for the video, returns a link where the video isn't found?

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

ID: b430664f-79e1-35fa-5292-34f517092b08
Version Independent ID: c72b1131-9035-bb27-2465-50328f12dc93
Content: The Git experience in Visual Studio
Content Source: docs/version-control/git-with-visual-studio.md
Product: visual-studio-windows
Technology: vs-ide-general
GitHub Login: @Taysser-Gherfal
Microsoft Alias: tglee

@justinmreina -- Justin, thank you for your feedback.  I'm not sure which video you are referencing, and there doesn't seem to be a video mentioned in this article.  Please consider these resources:

Visual Studio on Microsoft Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

I am closing this issue now.  You are welcome to @ mention me for any followup.  We hope to hear from you again.


[Feature Request]: rule to prefer lodash-es over lodash or vice-versa

It would be useful to have a rule that can set a preference for lodash or lodash-es, for example:
// "prefers-lodash-es": ["error"]
import { uniq } from 'lodash'; // Error
import { uniq } from 'lodash-es'; // No error

vs.
// "prefers-lodash-es": ["off"]
import { uniq } from 'lodash'; // No error
import { uniq } from 'lodash-es'; // Error

Obviously if you only had one or the other installed you would get an error since one wouldn't be resolvable. But the use-case here is if you have both installed, for example we have a single codebase that powers both client-side and server-side JS, on the client we transpile lodash-es inline with Babel, whereas on the server we use normal lodash as an external dependency, we use an alias to switch between the 2, which requires all imports to be the same in the codebase, hence the rule.

It is a standart eslint rule
"no-restricted-imports": [2, {
    "paths": [{
        "name": "lodash",
        "message": "Please use lodash-es instead."
    }]
}],

Thanks @MiKolka7 was not aware of that rule. Very useful 👍


FIX issue in VR if remote access vpn is enabled

Description

Use both tcp protocol and module so that
vpn is enabled properly
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

@ravening can you give this a priority? as we are in code freeze, do we need this before 4.15?

@ravening can you give this a priority? as we are in code freeze, do we need this before 4.15?

@DaanHoogland yes its good to have this before 4.15 as its a bug fix

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2295

@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-3096)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33180 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4430-t3096-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Smoke tests completed. 83 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

looks good but i am not sure why protocol would improve on the vpn instead of just restrict it. no regressions so i'm fine with it.


Capi: Composite Method enhancement

Description :

Issue Tickets (if any) :

Tests or Samples (if any) :

Screen Shots (if any) :

@patrykka question, Any necessity of getter interface?

@patrykka question, Any necessity of getter interface?

@hermet
Use case is on tizen.org. I created patch-set in efl project and in elm-demo example, both on tizen branches.
You were thinkng about different method of composite method setter ?

@hermet could you please verify this again?
Currently, setter interface is adding composition method to the same object which is composition target:
return (Tvg_Result) reinterpret_cast<const Paint*>(paint)->composite(unique_ptr<Paint>((Paint*)(paint)), (CompositeMethod)method);

change is fixing this issue:
return (Tvg_Result) reinterpret_cast<Paint*>(paint)->composite(unique_ptr<Paint>((Paint*)(comp_obj)), (CompositeMethod)method);


vs code automatically importing python module

Hi,
Whenever I open my python file and run my script, vs code seems to automatically insert some python module in my script without my
permission or knowledge. It seems to insert different modules in different scripts automatically. Later on, I have to manually remove these modules (which is not required to run my scripts).
Note: I am not talking about the vs code, Code auto-completion feature which is awesome.
Is this a BUG or a feature that I can turn off?
Please Help
Thank You

Hi!
If I understood correctly, vs code automatically modifies Python files at runtime, is that correct?
Have you installed any extensions to vs code regarding Python?
And a small question (while we're at it): are the modules always the same and if so which ones?

/extPython


[W::bgzf_read_block] EOF marker is absent. The input may be truncated.

Hello, while running the rna pipeline, in the log file of the barcode step,
2023-02-11 11:20:00,391 - celescope.tools.barcode.get_mismatch_dict - INFO - start...
2023-02-11 11:20:00,402 - celescope.tools.barcode.get_mismatch_dict - INFO - done. time used: 0:00:00.010138
2023-02-11 11:20:00,403 - celescope.tools.barcode.get_mismatch_dict - INFO - start...
2023-02-11 11:20:00,439 - celescope.tools.barcode.get_mismatch_dict - INFO - done. time used: 0:00:00.036029
[W::bgzf_read_block] EOF marker is absent. The input may be truncated
[W::bgzf_read_block] EOF marker is absent. The input may be truncated
The pipeline finished successfully. Do these warnings mean the input fastq files are truncated?
Thank you.

If the pipeline finished successfully, the input fastq files are NOT truncated and you can just ignore the warning. The warnings come from a issue with pysam.

I've encountered a similar issue, but it's likely not related to pysam since running other VCF files doesn't present this problem. Are there any other solutions to this issue?

[main_vcfview] Error: cannot write to xxx.sample..vcf.gz
[E::bgzf_read_block] Failed to read BGZF block data at offset 23298260 expected 11071 bytes; hread returned 3866
[W::bgzf_read_block] EOF marker is absent. The input is probably truncated


moved createLayer up one level and provided link to layer source options

For Docs issue#596
Thanks for clarifying @alonsogarciapablo !  Are you okay with these suggested changes?

@alonsogarciapablo , we just got this inquiry from a Partner. Can you let me know so I can address this in the same branch?
"What is the difference between cartodb.CartoDBLayer.SubLayer and cartodb.CartoDBLayer.CartoDBSubLayer? Shouldn't they be on the same section?"

:+1:
cartodb.CartoDB.SubLayer is the base class for cartodb.CartoDBLayer.CartoDBSubLayer and cartodb.CartoDBLayer.HttpSubLayer.

Hold on, can you clarify? There is no 'cartodb.CartoDB.SubLayer` function?

Basically, getSublayer will return an object is an instance of either cartodb.CartoDBLayer.CartoDBSubLayer or cartodb.CartoDBLayer.HttpSubLayer, which are subclasses of cartodb.CartoDB.SubLayer. The goal of the section about cartodb.CartoDB.SubLayer is to describe the methods that are common to both classes (inherited methods). I can see how it's confusing, so we could:

Make it more clear that cartodb.CartoDBLayer.CartoDBSubLayer or cartodb.CartoDBLayer.HttpSubLayer are subclasses of cartodb.CartoDB.SubLayer.
Remove the section about cartodb.CartoDB.SubLayer and duplicate the documentation about the common methods both on cartodb.CartoDBLayer.CartoDBSubLayer or cartodb.CartoDBLayer.HttpSubLayer. This has the drawback that any change will need be changed twice.

BTW, cartodb.CartoDBLayer.CartoDBSubLayer and cartodb.CartoDBLayer.HttpSubLayer are just two names that we're giving to those classes/concepts. They are not the real names in the source code.

Okay @alonsogarciapablo , I added a note in the two sections, as discussed. Is this correct?

This makes sense! What do you think?

:clap: :clap: :clap:

:dancer: Thank you! Users will flip over this.


Ta Initial Load issue

#136
fix for ta online render issue

TA is loading fine without downloading, it is a little slow though.


minimal/lazy iris imports

Remove unnecessary imports which occur as a consequence of
import iris

e.g. Is it really necessary to import scipy?

I've been doing some investigation into this issue (see ticket 1214 in JIRA). Running pylint to look for unused imports, I found a large number of 'import six' and 'from six.moves...' statements that didn't appear to be used for anything. So I made a local branch of my iris to experiment on, and took all of these statements out. The modified iris still works correctly - it can reproduce everything in the user guide - but several of the tests fail. (These are test_cdm.py, test_coding_standards.py,  and test_check_contributions.)
So given that, it looks like these statements are still needed.
Pylint did flag up a few other items, but the number was quite small, so I suppose there is a question whether it's useful to make a pull request here?

Most of the six imports are there by design, even if they aren't used, particularly six.moves. These are there to help ensure we write code that works the same on Python 2 and 3 (e.g. six.moves.range is always a generator, equivalent to xrange on Python 2 and built-in range on Python 3, so when someone writes new code using range in a module importing six.moves.range it behaves the same on PYthon 2 and 3).

Does pylint not respect the # noqa on the six.moves imports?

I guess not, seems to work for flake8 and pep8.

Pylint did flag up a few other items, but the number was quite small, so I suppose there is a question whether it's useful to make a pull request here?

@davidnmurray It is still worthwhile to create a PR that removes the unused imports even if there's only a few.
Remember small PRs are a good thing! They are quick and easy to merge in.

Was this resolved by #4174, or is there more to do here?

resolved by #4174 ?

Yes, I think we're done.


Fix Undo/Redo

Resolves #142 #141 #124 #125

Coverage decreased (-0.8%) to 76.591% when pulling a2ab97bcf0aaa0bbc6a4a78606e99cb99466b99b on gabriel-fixundoredo into 149b9365aa07cd74a3bc64395addeb10445cac43 on v0.5rc.


Enable Layout/DotPosition

Coverage decreased (-0.6%) to 97.161% when pulling ff7a75c3802c1135a3d290f1fdede66832ba84c4 on enable_Layout_DotPosition into 1bd9a6b01ac79fcdf2577ab1365b224501e72c60 on 0.7.


chore(main): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2023-08-07)
Build System

add Dockerfile and start.sh script for running HentaiAtHome container (54af7aa)

CI

add GitHub actions for automated merging and release (f03d381)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cloverdefa/hath-docker/releases/tag/v1.0.0 :sunflower: