Issue with BoxPlayer class

Hi @cwendt94,
Attempting to dive deeper into the BoxPlayer class and continuing to receive the following error
espn_api/football/player.py", line 10, in <listcomp>
    self.eligibleSlots = [POSITION_MAP[pos] for pos in json_parsing(data, 'eligibleSlots')]
KeyError: 'RB/WR'

the code I'm using to call the class is as follows; no issues with the League or Player classes
pro_schedule = league._get_pro_schedule(week)
positional_rankings = league._get_positional_ratings(week)
player = team_list[11]['roster'][5].__dict__
box_player = BoxPlayer(player, pro_schedule, positional_rankings, week, year)

Where week = 4 and year = 2020; I've also tried week = 3 thinking that may have something to do with it but it did not.
team_list is a list made up of all the teams in the league from league.teams
Also have attempted the player with and without the .dict dict conversion. When I don't use .dict I get the following error
/espn_api/football/player.py", line 12, in __init__
    self.proTeam = PRO_TEAM_MAP[json_parsing(data, 'proTeamId')]
TypeError: unhashable type: 'list'

I was really just trying to following the example of calling BoxPlayer from the league.py sheet here in the free_agents function so not sure what I'm doing wrong here. Please let me know if this is a code issue or I'm just wildly missing the boat; thank you!
players = data['players']
pro_schedule = self._get_pro_schedule(week)
positional_rankings = self._get_positional_ratings(week)

return [BoxPlayer(player, pro_schedule, positional_rankings, week, self.year) for player in players]

The weird thing is I know that when I run league.free_agents() I get no error so maybe I'm just passing the wrong player data into the BoxPlayer but I'm not sure.

Hey @glennrfriedman,
So the reason why you can't create a Box Player is the player data passed is actually a large dict object from ESPN's API and you are trying to pass the Player Class data as that dict object.
This code
players = data['players']
pro_schedule = self._get_pro_schedule(week)
positional_rankings = self._get_positional_ratings(week)

return [BoxPlayer(player, pro_schedule, positional_rankings, week, self.year) for player in players]

players = data['players'] Is from ESPN's API and is a different structured dict than than league.teams[0].roster[0].__dict__
What data are you trying to get by creating a Box Player?

Got it; I'm trying to get the data for the prior week for the player - both the project and actual points scored to calculate the variance and determine biggest boom/bust players for the week. Would also need the slot to figure out who was a starter and who was benched.
Its part of a project I'm working on using Dash/Plotly to build a web dashboard leveraging this API.

I think for that use case you will have to use box_scores call to know if the player was benched or starting on the teams roster.
box_scores = league.box_scores(league.current_week - 1)

After getting the previous week box scores you then can compare those box players information to a current teams player projected points.


Unable to use c5 instance types

When using instance_type c5.2xlarge, I get this error:
Error: Unknown CPI error 'Unknown' with message 'Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.2xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA.' in 'create_vm' CPI method

C5 instances, require specific networking drivers as described here
Besides the error, the deployment seems to be fine.
Stemcell used: ubuntu trusty 3468.21

@dmlemos Thanks for filing the issue. Indeed our AMI does not support ENA. When we create AMIs we don't set the ena_support flag, and it defaults to false.
We added a story in our backlog to add ENA support to our AMIs.
What do you mean by the deployment seems fine? Does the c5.* VMs get created?
cc @jaresty

Yeah, instances still got created and the monit jobs were good.

@dmlemos That's a behavior that we didn't expect. Was this an upgrade? If yes, what were you upgrading (e.g. instance_type, stemcell etc)?
Could you please provide the output of bosh task <task-id-for-deployment> and bosh tasks --recent=1000 | grep -C5 <task-id-for-deployment>?
cc @jaresty

Yes, upgrade from c4 same size.
$ bosh task 4965
Using environment 'X' as client 'admin'

Task 4965

Task 4965 | 23:30:46 | Preparing deployment: Preparing deployment (00:00:00)
Task 4965 | 23:30:47 | Preparing package compilation: Finding packages to compile (00:00:00)
Task 4965 | 23:30:47 | Updating instance postgres: postgres/c2abff32-e68a-4787-bcab-50c305be1d16 (0) (canary) (00:02:32)
                     L Error: Unknown CPI error 'Unknown' with message 'Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.2xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA.' in 'create_vm' CPI method
Task 4965 | 23:33:19 | Error: Unknown CPI error 'Unknown' with message 'Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.2xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA.' in 'create_vm' CPI method

Task 4965 Started  Wed Jan 31 23:30:46 UTC 2018
Task 4965 Finished Wed Jan 31 23:33:19 UTC 2018
Task 4965 Duration 00:02:33
Task 4965 error

Capturing task '4965' output:
  Expected task '4965' to succeed but state is 'error'

Exit code 1

$ bosh tasks --recent=1000 | grep -C5 '4965'
5017    done            Thu Feb  1 02:00:01 UTC 2018    Thu Feb  1 02:08:56 UTC 2018    scheduler       consul          snapshot deployment                                                     snapshots of deployment 'consul' created
5016    done            Thu Feb  1 02:00:00 UTC 2018    Thu Feb  1 02:07:36 UTC 2018    scheduler       concourse       snapshot deployment                                                     snapshots of deployment 'concourse' created
5015    done            Thu Feb  1 02:00:00 UTC 2018    Thu Feb  1 02:06:44 UTC 2018    scheduler       vault           snapshot deployment                                                     snapshots of deployment 'vault' created
4971    done            Thu Feb  1 00:14:50 UTC 2018    Thu Feb  1 00:22:07 UTC 2018    admin           concourse       create deployment                                                       /deployments/concourse
4965    error           Wed Jan 31 23:30:46 UTC 2018    Wed Jan 31 23:33:19 UTC 2018    admin           concourse       create deployment                                                       Unknown CPI error 'Unknown' with message 'Enhanced networking with the Elastic Network Adapter (ENA) is required for the...
4964    done            Wed Jan 31 02:00:00 UTC 2018    Wed Jan 31 02:07:17 UTC 2018    scheduler       consul          snapshot deployment                                                     snapshots of deployment 'consul' created
4963    done            Wed Jan 31 02:00:00 UTC 2018    Wed Jan 31 02:01:43 UTC 2018    scheduler       concourse       snapshot deployment                                                     snapshots of deployment 'concourse' created
4962    done            Wed Jan 31 02:00:00 UTC 2018    Wed Jan 31 02:05:37 UTC 2018    scheduler       vault           snapshot deployment                                                     snapshots of deployment 'vault' created
4933    done            Wed Jan 31 01:02:09 UTC 2018    Wed Jan 31 01:06:37 UTC 2018    admin           concourse       create deployment                                                       /deployments/concourse
4908    done            Wed Jan 31 00:33:16 UTC 2018    Wed Jan 31 00:37:01 UTC 2018    admin           concourse       create deployment                                                       /deployments/concourse

Task 4971 is when I changed the instance size to the same size as before to avoid inconsistent state on BOSH.

This shows that your deployment failed and your VM wasn't upgraded from c4 to c5.
We'll talk to @cppforlife to prioritize the story.
cc @jaresty

You are correct!  Thought it had deployed even with errors, but turns out the reason it worked is because HM kicked in and deployed the old instance type 😇

+1 we just hit this with m5 instances as well

+1 for c5/m5 instances.
Any updates on this would be super helpful!

In addition to the story @cdutra linked there are two other stories related to this issue:
Add ENA Support which will enable instance types that have support to enable it.
We also have: Agent should look for NVME devices, which some of these instance types require for their disks.

+1 for C5/M5 instances. We tried to use the latest instance types and found out at the wrong time that it wasn't supported yet.

cc @dsboulder

Every CF user moving to m5/c5 stands to gain 15%+ performance for the same money. Rolling out compatibility for these types of instances is the best improvement in terms of performance gain/effort you can make today. Maybe I'm oversimplifying, but this whole thing is mostly about including a pair of drivers in the stemcells and setting the flags right. The fact that this issue hasn't gotten any traction in almost three months (or, to be precise, more than 5 months since gen5 instances were made available) is ludicrous.

@cppforlife, can you comment on the priority/timeline of this? And, to help contributors gauge if it's worth their time and priorities to contribute support on their own, speak to the requirements of us accepting a pull request?

we haven't had a chance to address this yet outside of doing initial investigation and finding out that it's a bit more involved due to disk management change that needs to happen in the agent. i dont have any exact dates but we should have some time soon to address this issue as we are finishing up some of the long running work we have been doing. will update this issue when we start.

And, to help contributors gauge if it's worth their time and priorities to contribute support on their own, speak to the requirements of us accepting a pull request?

would be happy to receive contribution in this area. if anyone is interested, just let us know. im not sure all the pieces which might have to be changed (cpi + agent) so i dont really have any specific requirements other than components must continue to work with existing stemcells.

Potentially useful information here: https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/ (most of it is already in https://www.pivotaltracker.com/n/projects/1133984/stories/154850804 it seems)

This should be supported in the latest versions of Ubuntu Xenial stemcell and AWS CPI release. If you run into new, more specific errors, please feel free to raise a new issue.


Could you please provide the easy_ipm_model_lib.pro file?

I have compiled the project succeed, But when I run ./easy_ipm_client command, It display this errr:
./easy_ipm_client: error while loading shared libraries: libeasy_ipm_model.so.1: cannot open shared object file: No such file or directory

It seems the project link the dynamic-lib failed, So I want compile the easy_ipm_model.so by myself. could you please provide the easy_ipm_model_lib.pro file?Thank you very much.

I have solved by re-compile the dynamics library  and rebuild the soft link of it :).
thank you very much.


ENHANCEMENT: POST doc GET and POST items should be self explanitory

GIVEN: I am a developer.
WHEN: I am looking at the POST Doc information at localhost:9002/docs.
THEN: The GET items do not have the word 'get' in the message and the POST items do not have the word 'post' in the message.
Acceptance Criteria

The GET items do not have the word 'get' in the message.
The POST items do not have the word 'post' in the message.

Just to clarify, the GET and POST items should or should not have the word 'get'/'post' in the message?

@ethanchristensen01 the GET and POST items should not have the word 'get'/'post' in the message. As Dr. Christensen pointed out to us during our demo, the word POST and GET are on the Rapidocs page, so for example we would see something like:
GET All Games
POST Create a Game


you should modify the README.md

hi
i use {compile 'com.felipecsl.asymmetricgridview:library:2.0.1'} ,and i find it is different than library.

the old version was always been OOM when contains a lot of imageview

What is wrong about the readme?
Also your second comment doesn't seem related to the issue at all (and doesn't provide any constructive feedback on steps to reproduce, for example)

no ,i just wanna you release a new version 2.0.2  :)

Im working on version 3.0.0 which will add support for RecyclerView. I don't plan to update 2.x anymore


A few small changes to validium quickstart

Updating the validium quickstart to include info about extra views and nonce resetting.

thanks @kmurphypolygon! have you also uploaded new screenshots for the new blockscout explorer? I believe we need to update the image in section "3. Test validium"

I didn't no because it's quite tricky working on an external machine. I will do this tomorrow.


API requests need to be consistent

In react query we have a mix of following approaches.
export const updateReview = (obj: Review): AxiosPromise<Review> => {
  return APIClient.put(`${REVIEWS}/${obj.id}`, obj);
};

export const updateApplicationQuery = (obj: Application) =>
  axios.put<Application>(`${APPLICATIONS}/${obj.id}`, obj);

We are using both approaches because the legacy application was making use of the APIClient class but we since we introduce React Query we introduced a direct Axios requests.
This is a tech debt.
We need to be consistent across and use the Axios direct approach everywhere.

I have a PR in progress (not pushed yet).


mksrcinfo troubled by PKGBUILD using case-esac to select sources for architecture

When using a PKGBUILD with this snippet in it:
case $CARCH in
                "i686")
                        _arch="i386"
                        sha256sums=('123abc...')
                ;;
                "x86_64")
                        _arch="amd64"
                        sha256sums=('xyz456...')
                ;;
                *)
                        echo Unsupported architecture
                        exit
                ;;
esac

mksrcinfo exits cleanly, however inspection of the produced .SRCINFO shows it to contain 'Unsupported architecture'. I then replaced $CARCH with ${CARCH:?}. Lo and behold, I get an error from bash saying that $CARCH isn't set or is null, which would have (earlier) been causing the fallthrough in the case-esac to be run making the script exit and resulting in an SRCINFO containing the words echoed.
Note that makepkg --source produces a source package containing a valid/sane .SRCINFO.

Please use architecture specific attributes, e.g.
source_x86_64=(...)
sha256sums_x86_64=(...)
This is exactly the reason I implemented them in makepkg -- I can't and won't parse code constructs like your case/esac.

Thanks for reminding me about that; I was under the false impression that these features weren't yet available in the stable version of makepkg. Sorry about that.


Could you offer the camera_calibration.txt file?

@Emanuele97x Hi, I found that you load the camera_calibration.txt in ViPCDataLoader_ft class when training the model in weakly supervised manner. However, I don't have this file at all.
Could you offer this file? Thanks in advance.

Hi! @zhanghm1995
These files are present in the view folder in the dataset, just for the objects we use for the weakly supervised training (you can find them in train_list_clean_.....txt files). Hope you find it!
Best,
Emanuele

Hi, I'm not sure whether I missed something. I cannot find this file after extracting the dataset as below.

And from your descriptions, I wonder are the camera parameters same for all objects or different for each object?

They are inside the folder of each specific object, indeed if you look at the dataloader for each object we extract camera_calibration.txt and rendering_metadata.txt.

@Emanuele97x , sorry to ask you again. I don't know why I cannot find the camera_calibration.txt in my original extracted dataset,
,
I guess these files maybe exist in your ShapeNetViPC-PartPart.tar.gz file, and I'm downloading it at the same time to see what's wrong. In this case, I wonder to know how to generate the camera_calibration.txt file for the whole ShapeNet-ViPC dataset.

The file is present only for the selected obects, please check train_list_clean_plane.txt for an example.

@Emanuele97x , so it means we can only obtain the camera_calibration.txt in those selected objects? Is there any way to get the camera parameters for all objects?


Showing logs in app takes inconsistent taps

IOS: 9 fast taps or 5 taps with a second in between of each tap
Ash reports it takes only 1 tap for him on Android
https://user-images.githubusercontent.com/31733464/161523258-a219456b-ea4e-41a4-9487-eeb5ed986ce7.mp4

I hypothesize that IOS sees these taps as double taps and are not registered as click.
A fix could be to add a touchend to these clicks.


Issue configuring roles

I'm having trouble configuring roles. After a vault write astra/role, when I read back the actual role, the role_name always shows as n/a. I'm using plugin version 1.0.1 and Vault version 1.13.3. Both the Organization ID and Role ID in the example below have been anonymized.
Configure the Astra instance:
vault write astra/config org_id="XXX-3f5c6e2f4658" \
  astra_token="..." \
  url="https://api.astra.datastax.com" logical_name="demo" caller_mode="sidecar"

Success! Data written to: astra/config

Configure a role with existing role_id:
vault write astra/role role_name="R_W_User" role_id="XXX-c6a2fe2dab50" org_id="XXX-3f5c6e2f4658"

Success! Data written to: astra/role

Read back what has been configured:
vault read astra/role role_id="XXX-c6a2fe2dab50" org_id="XXX-3f5c6e2f4658"

Key          Value
---          -----
org_id       XXX-3f5c6e2f4658
role_id      XXX-c6a2fe2dab50
role_name    n/a

Notice the n/a role name. What I notice when I list the configured roles, is that the key seems to missing "something":
vault list astra/roles

Keys
----
XXX-3f5c6e2f4658-

Please let me know if you need any additional information to help figuring out the cause of this issue.

Ah, I found the solution myself after looking in the source of the plugin. The command
vault write astra/role role_name="R_W_User" role_id="XXX-c6a2fe2dab50" org_id="XXX-3f5c6e2f4658"

should be replaced with
vault write astra/role role="R_W_User" role_id="XXX-c6a2fe2dab50" org_id="XXX-3f5c6e2f4658"

Note the difference between role_name and role. This is an error in the documentation in some places.


CodeLens / Intellisense?

The monaco HTML/CSS/JavaScript packages include CodeLens/Intellisense, but loading the grammars with this method doesn't have that data. I assume something like https://github.com/microsoft/vscode/blob/master/extensions/css-language-features/ needs to be loaded, but is that even possible in Monaco at this point?
Just wondering if you have any guidance since you dove so deep into the grammar setup. I suspect I'll need to break down how the languageFeatures work in the monaco packages. https://github.com/microsoft/monaco-html/blob/master/src/languageFeatures.ts

I believe you are talking about the support that comes from a web worker? For example, for TypeScript, I believe you include this:
import 'monaco-editor/esm/vs/language/typescript/monaco.contribution.js';

but NOT this:
import 'monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js';


v1.6 use lora always error

When I use the lora function, it always goes wrong, and the error message is as follows:
LoRA weight: 0.5, model: Korean-Doll-Likeness(7fdca26d)
Error running process: /content/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/additional_networks.py
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/scripts.py", line 338, in process
script.process(p, *script_args)
File "/content/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/additional_networks.py", line 177, in process
network, info = lora_compvis.create_network_and_apply_compvis(du_state_dict, weight, text_encoder, unet)
File "/content/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/lora_compvis.py", line 73, in create_network_and_apply_compvis
network_dim = min([s for s in size if s > 1])
ValueError: min() arg is an empty sequence

Same

I tested with
https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/main/chillout_mix_webui_colab.ipynb
and this
https://civitai.com/models/7448/korean-doll-likeness

<lora:koreanDollLikeness_v15:0.66>, best quality, ultra high res, (photorealistic:1.4), 1girl, beige sweater, smile, laughing, bare shoulders, solo focus, ((full body), (platinum pink hair:1), ((puffy eyes)), looking at viewer, facing front, closeup
Negative prompt: paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans
Size: 512x768, Seed:<PHONE_NUMBER>, Model: chilloutmix_cilloutmixNi, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 8, Model hash: 7234b76e42, Hires steps: 20, Hires upscale: 1.75, Hires upscaler: Latent (bicubic antialiased), Denoising strength: 0.5

I switched token from <lora:koreanDollLikeness_v15:0.66> to  koreanDollLikeness_v15
if you want use like this <lora:koreanDollLikeness_v15:0.66> please use v2.0
https://github.com/camenduru/stable-diffusion-webui-colab/blob/v2.0/chillout_mix_webui_colab.ipynb


[CV] Request new entry: base peak intensity maximum

What is the QC term's name?
base peak intensity maximum
Briefly describe the QC term.
this metric should capture the maximum value of a run's base peaks
What is the QC term's unit?
intensity / arbitrary
Value type
MS:4000003 ! single value
Describe any additional information.

this term is ID-free and can easily be calculated using all spectra (MS1 and MS2)
it is applicable to a single run
the value should be (relatively) constant for same / similar samples

There currently is MS:1000505 ! base peak intensity, so we should at least add a related relationship to that.
The difference here is that this would be the maximum base peak intensity across all spectra? Are MS1 and MS2 spectra comparable on this metric?


Modify ScrubBar to have jump functionality

Currently the scrubbar is only a representation of playback progress. It needs to become a controller for playback position.

Resolved in #58


props for endpoints

Describe the problem
Sveltekit endpoints are great.
However, the endpoint call is not typesafe. This is true for input and endpoint path names.
Describe the proposed solution
for argument
Like
export page
we define
export props
When we use typescript, we can get a type information from the editors.
for endpoint path
Maybe we can create some object like what tRPC creates
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

I used tRPC with Sveltekit, and this experience is awesome.
But I do not think it is impossible for sveltekit

If you want that kind of type safety I think it's best to just use tRPC - it's designed for this use case. We would just be playing catch-up.


Steps for remote radius server

Do you by chance have a few steps to integrate this into an external radius server? It would be so helpful.

Actually you have to configure pfSense's captive portal to use an external radius server.
The wrapper I wrote just creates a radius user account via MySQL.
As long as your radius runs with MySQL, setting the right database config in captive-portal.php should be sufficient.

Okay great! I see that setting I will give that a shot. Will this setup work with the DNS forwarder, or does the DNS resolver need to be running.

AFAIK, the DNS resolver needs to run on pfSense in order to redirect to the captive portal.


ffmpeg: 2.7.1 -> 2.7.2

I tested with nix-build -A ffmpeg-full and nix-build -A ffmpeg.
cc @codyopel @Fuuzetsu

ffmpeg causes quite a rebuild (/me looking at travis)

@vcunat why the mass-rebuild label? It's basically KDE and few other packages. In the past we just merged without the staging roundtrip I believe.

I certainly have no strong opinion on this. It seems impossible (and likely useless) to draw a distinct line anyway.

I'm just going to press merge if that's fine with you then.


[python] - Fix for updating lower constraint only for increase strategy

What are you trying to accomplish?
The goal of this PR is to ensure that the changes for updating version bounds apply only to the "increase" strategy in Dependabot for Python dependencies. The current behavior incorrectly applies these changes to all versioning strategies, which is not intended.
Why: The previous fix applied to all versioning strategies, but it should specifically target the "increase" strategy to maintain the correct versioning behavior and avoid unintended changes to other strategies.
Issues this affects or fixes:

This PR addresses the issue where the versioning strategy changes were applied broadly instead of specifically to the "increase" strategy.

Anything you want to highlight for special attention from reviewers?
I chose this approach to ensure the changes only affect the "increase" strategy, aligning with the intended behavior. This ensures that other strategies remain unaffected and work as expected.
Note that the updating lower constraint will work for other strategies (widen, increase if only necessary) only if latest version is lower than the lower constraint which is unusual.
How will you know you've accomplished your goal?

The updated smoke tests for the "increase" strategy should run successfully.
Testing on a relevant repository should demonstrate that the changes are applied correctly to the "increase" strategy only.

Checklist

[x] I have run the complete test suite to ensure all tests and linters pass.
[x] I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
[x] I have written clear and descriptive commit messages.
[x] I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
[x] I have ensured that the code is well-documented and easy to understand.

I am not very familiar with the code base, or with Ruby. I dug through it at some point, but it's been a long time. So I lack the context to review the implementation, but the tests seem to verify the appropriate behavior for the widen strategy to me.

Thanks @sanderr for your time.

The previous changes which caused the bug are going to be reverted. Versioning strategy is going to be re-planned.
Previous PR: https://github.com/dependabot/dependabot-core/pull/10060
Revert PR:  https://github.com/dependabot/dependabot-core/pull/10194


User can delete a signed tag by deleting the repository.

When deleting a signed tag via UI, there will be a pop up dialog asking user to delete the target by notary first, however, when user is deleting the whole "repository", the signed tag can be deleted without any problems.

#3022

Fixed by #3021 .


hot reload always_scrape_classic_histograms and convert_classic_histo…

…grams_to_nhcb configs properly

Fixes https://github.com/prometheus/prometheus/issues/15464
always_scrape_classic_histograms was only applied during scrapePool.sync but not during  scrapePool. restartLoops, which is used by reload.
I noticed that convert_classic_histograms config has the same issue so this PR fixes it as well.
I don't see any existing test covering those reload behavior for each individual scrape configs. But I verified this PR locally and hot reload worked.

Please consider contributing test case as well, thank you!


An error information bar prompts when attaching one blob container with SAS generated by access policy

Storage Explorer Version: 1.17.0
Build Number: 20210129.3
Branch: main
Platform/OS: Windows 10/ Linux Ubuntu 18.04/ MacOS Catalina
Architecture: ia32/x64
Regression From: Previous release (1.17.0)
Steps to Reproduce

Expand one storage account -> Blob Containers.
Create a blob container -> Right click the blob container.
Click 'Manage Access Policies...' -> Add one access policy and save it.
Generate a SAS for the blob container by selecting the access policy.
Attach the blob container using the SAS.
Check no error information bar prompts.

Expected Experience
No error information bar prompts.
Actual Experience
An error information bar prompts.

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:63e00d21-901e-0008-0915-f65edf000000 Time:2021-01-29T08:04:54.8724938Z
Additional Context

This issue also reproduces for one ADLS Gen2 blob container.
A similar bug: 3996.

@v-xianya what permissions are you using for the access policy, and is it being used before the expiration of the policy/what is the expiration date?

I tried without latest main but cannot reproduce this issue.

@MRayermannMSFT @JasonYeMSFT
The access policy with permissions 'Read, Add, Create, Write, Delete, List'.
Verified this issue on build 202102020.9. Reproduce.

Verified this issue on build 20210204.2. Fixed.


Wrong Title

There is a Wrong Title in the https://github.com/ChristianLempa/videos/tree/main/nginx-reverseproxy#readme

Fixed! Thank you :)


Where can I find the archive of postgrest docs?

Ouch, I thought this was just going to need a link to the previous issue's solution, but the docs' repository now seems to have obliterated master's history for the 0.4 rewrite, so 0.3 docs can't even be found by digging through history.
There are no tagged releases of older docs either. The closest thing I can find is this old branch which might be a bit behind the last release of 0.3, but might have what you need, @sushantbajra .
@begriffs this is pretty alarming to me. I'm still using 0.3 because I run postgrest locally via the official docker images, which have not been updated to 0.4 yet (plus the change to a config file for 0.4 is a headache I don't even want to think about, since I configure production with environment variables on heroku).
Is there any particular reason why the docs are even in a separate repository?

Don't be alarmed, I'll find the history in the reflog and tag it with v<IP_ADDRESS>. Should have tagged it earlier, my mistake.
I'm using master now to hold the latest changes and will use proper versioning through Read The Docs (RTD), so docs for all versions will be preserved and easy to find. The challenge between 0.3 and 0.4 docs is that I migrated to a new documentation system. For best usability I should probably port the 0.3 docs to RTD so that it can be selected from the UI.
We could look into pulling the docs back into the main repo, it's simpler in many ways. It used to be in the main repo, then got separated for two reasons which may or may not be as important as we thought:

Might want to store big assets like pictures in there (for instance all those pictures for the Heroku docs in 0.3) and don't want to slow people or CI down during the git clone.
Didn't want to litter the root of the project with docs configuration, but might not be a big deal.

Alright, I am no longer alarmed 😌. Thanks @begriffs, and yay reflog!
I'd be down to help port the 0.3 docs to the 0.4 system. I have an idea to quickly resolve these "where did the docs go??" issues that I'll PR once you get the tag up.

OK, I pushed a branch called "v0.3.2" pointing at the newest docs for the old version. Thanks for your offer to try porting them to Sphinx/RTD, that would be super helpful.

Thanks @begriffs .

The old docs are now a first-class citizen at https://postgrest.com/en/v0.3.2/

Thanks @begriffs . I really appreciate that


if master also as worker node the console can not recognize master as worker node

Alluxio Version:
1.8.1 release
Describe the bug
start master also as worker node
from <master>:19999 can not find this worker node
To Reproduce
start master also as worker node
access <master>:19999 can not find this worker node
Expected behavior
can recognize this worker node even it is also as master node
Urgency
intermediate
Additional context
N/A

Hi @perrywang  thanks for reporting this issue! Could you elaborate on what you mean by "start master also as worker node"?
Do you mean that you are starting a worker node on the same node that the master is on? If so, that should work as lots of local development is performed with the master+workers on the same node.
Any additional steps to reproduce (such as a list of shell commands) or a stack trace from a log could be useful in pinpointing the root cause of the issue. Anything helps!

Hi @perrywang thanks for reporting this issue! Could you elaborate on what you mean by "start master also as worker node"?
Do you mean that you are starting a worker node on the same node that the master is on? If so, that should work as lots of local development is performed with the master+workers on the same node.
Any additional steps to reproduce (such as a list of shell commands) or a stack trace from a log could be useful in pinpointing the root cause of the issue. Anything helps!
when I use alluxio-monitor.sh it is reporting worker node working fine and worker.log seems also working fine. But just I use browser console to view workers it is not showing.

It is possible that the worker isn't showing up in the master UI because it can't register with the master in the first place. Another possibility is that the worker is starting up, the monitor is detecting it, but the worker shuts down after the monitor sees it is up. It is hard to say exactly what's happening.
If you could provide the master/worker logs (logs/master.log, logs/worker.log), a configuration (alluxio-site.properties), and/or the exact set of commands you're running so I can reproduce the issue, it will help solve this faster.

Also, while the web UI should always work, you can also try the master's REST API
curl -X GET http://<master_ip>:19999/api/v1/master/worker_info_list

Also, while the web UI should always work, you can also try the master's REST API
curl -X GET http://<master_ip>:19999/api/v1/master/worker_info_list

If the worker has successfully registered with the master, the master.log should contain a line similar to the following:
2019-04-02 01:05:52,796 INFO  DefaultBlockMaster - registerWorker(): MasterWorkerInfo{id=4062936956978226972, workerAddress=WorkerNetAddress{host=<IP_ADDRESS>, rpcPort=29999, dataPort=29999, webPort=30000, domainSocketPath=, tieredIdentity=TieredIdentity(node=<IP_ADDRESS>, rack=null)}, capacityBytes=11453246122, usedBytes=0, lastUpdatedTimeMs=1554192352796, blocks=[]}

It is interesting. I think it is related with how worker register its host address to master.
I am using vagrant (virtualbox) and private network to install master and worker. I set masters <IP_ADDRESS> and workers <IP_ADDRESS>.  And I run alluxio-start.sh all Mount. I did seen in the master log
2019-04-02 01:37:13,795 INFO  DefaultBlockMaster - registerWorker(): MasterWorkerInfo{id=6947831682232198818, workerAddress=WorkerNetAddress{host=<IP_ADDRESS>, rpcPort=29998, dataPort=29999, webPort=30000, domainSocketPath=, tieredIdentity=TieredIdentity(node=<IP_ADDRESS>, rack=null)}, capacityBytes=6442450944, usedBytes=0, lastUpdatedTimeMs=1554194233789, blocks=[]}
below is my ip addr command show,
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:a2:0e:2b brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global dynamic eth0
       valid_lft 50494sec preferred_lft 50494sec
    inet6 fe80::a00:27ff:fea2:e2b/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:90:64:49 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe90:6449/64 scope link
       valid_lft forever preferred_lft forever

you can see it is using eth0 address and ignore my configuration. and also I can't see worker in browser.
This is a big problem if the worker running on another node with two ip address. the master will get wrong ip of worker.

Thanks! This is helpful. If you're seeing the registerWorker in the master logs, then curl -X GET http://<master_ip>:19999/api/v1/master/worker_info_list should return a JSON object with at least one worker in it.
Is your vagrant setup using just one virtual machine? If so, I would run ./bin/alluxio-start.sh local Mount. That should work without modifications. The worker does an address lookup to tell the master where it is located. The master however, will never initiate a connection with a worker. As long as the worker can reach the master everything should work fine.
Otherwise, if they are on separate VMs then both machines need to have different IP addresses. You previously mentioned:

I set masters <IP_ADDRESS> and workers <IP_ADDRESS>

If you are running separate machines on the same network they need different IPs. Your master can be at <IP_ADDRESS> and your worker can be on <IP_ADDRESS>. You can also force a worker to register using a specific hostname/IP address by setting alluxio.worker.hostname

alluxio.worker.hostname

Thanks. @ZacBlanco. alluxio.worker.hostname is the working solution.
Thanks for your patience. Closing issue.


discovery Local support upstream health check in Admin #5591

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Reason
Originally used selector#handler to handle health checks on UpstreamCheckService. discovery module should be switched to discoveryupstream on UpstreamCheckService Up processing
Display of the effect after integration
The simulation currently has 2 upstreams

Forcing process killing simulates an upstream outage
kill -9 90824
UpstreamCheckService finds dropped upstreams

Display as [status = close] in the adminservice.

And sync to the Gateway
2024-07-16 15:37:14 [WebSocketConnectReadThread-123] INFO  org.apache.shenyu.plugin.sync.data.websocket.client.ShenyuWebsocketClient - server [ws://localhost:9095/websocket] handleResult({"groupType":"DISCOVER_UPSTREAM","eventType":"UPDATE","data":[{"selectorId":"1813106763444461568","pluginName":"divide","selectorName":"/http","upstreamDataList":[{"id":"1813114999073611777","dateCreated":"2024-07-16 15:34:36","dateUpdated":"2024-07-16 15:34:36","discoveryHandlerId":"1813106784365649920","protocol":"http://","url":"<IP_ADDRESS>:9890","status":0,"weight":50,"props":"{\"warmupTime\":\"10\"}"}]}]})
Restart the killed service again
UpstreamCheckService reverts to the Upstream health check console recovery state

And sync to the Gateway
2024-07-16 15:39:02 [WebSocketConnectReadThread-123] INFO  org.apache.shenyu.plugin.sync.data.websocket.client.ShenyuWebsocketClient - server [ws://localhost:9095/websocket] handleResult({"groupType":"SELECTOR","eventType":"UPDATE","data":[{"id":"1813106763444461568","pluginId":"5","pluginName":"divide","name":"/http","matchMode":0,"type":1,"sort":1,"enabled":true,"logged":true,"continued":true,"handle":"[{\"weight\":50,\"warmup\":600000,\"protocol\":\"http://\",\"upstreamHost\":\"localhost\",\"upstreamUrl\":\"<IP_ADDRESS>:9890\",\"status\":true,\"timestamp\":1721113459447},{\"weight\":50,\"warmup\":600000,\"protocol\":\"http://\",\"upstreamHost\":\"localhost\",\"upstreamUrl\":\"<IP_ADDRESS>:9879\",\"status\":true,\"timestamp\":1721115538399}]","conditionList":[{"paramType":"uri","operator":"startsWith","paramName":"/","paramValue":"/http/"}],"beforeConditionList":[],"matchRestful":false}]}) 2024-07-16 15:39:02 [WebSocketConnectReadThread-123] INFO  org.apache.shenyu.plugin.base.cache.CommonPluginDataSubscriber - subscribe select data for selector: [id:<PHONE_NUMBER>444461568, pluginName: divide, name: /http] 2024-07-16 15:39:02 [WebSocketConnectReadThread-123] INFO  org.apache.shenyu.plugin.sync.data.websocket.client.ShenyuWebsocketClient - server [ws://localhost:9095/websocket] handleResult({"groupType":"DISCOVER_UPSTREAM","eventType":"UPDATE","data":[{"selectorId":"1813106763444461568","pluginName":"divide","selectorName":"/http","upstreamDataList":[{"id":"1813114999073611776","dateCreated":"2024-07-16 15:34:36","dateUpdated":"2024-07-16 15:38:58","discoveryHandlerId":"1813106784365649920","protocol":"http://","url":"<IP_ADDRESS>:9879","status":0,"weight":50,"props":"{\"warmupTime\":\"10\"}"},{"id":"1813114999073611777","dateCreated":"2024-07-16 15:34:36","dateUpdated":"2024-07-16 15:34:36","discoveryHandlerId":"1813106784365649920","protocol":"http://","url":"<IP_ADDRESS>:9890","status":0,"weight":50,"props":"{\"warmupTime\":\"10\"}"}]}]})

Need to modify org.apache.shenyu.admin.service.impl.SelectorServiceImpl#create and org.apache.shenyu.admin.service.impl.SelectorServiceImpl#update.

SelectorServiceImpl#create push SelectorCreatedEvent can works on

SelectorServiceImpl#update push SelectorUpdatedEvent has on listener.  But I think it might be useful in the future. We're just not listening this Event now.


Profiles in V2.0

How do articles represent profiles? Here we analyze the 6 Open papers in V1.0 to see some typical profiles:
PMC2900066
This is a simple table with only one profile.
Table 1
Chemical components of Lantana camara fresh leaves essential oil

Components
IR a sam.
IR b lit.

PMC4044670
Another  single profile
Table 2
Components identified as constituents of essential oil of Oreganum vulgare (%) .

Constituents
RT (min.)
[%]
IR *
IR **

o-Cimene
7.974
0.99
1013
1022

p-Cimene
8.194
1.08
1019
1026

Limonene
8.388
0.26
1025
1031

γ-Terpinene
9.421
5.02
1053
1062

..
..
..
..
..

PMC3963878
This tables has 7 profiles which share common attributes (source, methods...) but are otherwise independent and could be given different Ids and denormalized.
Table 1
Chemical composition (in %) of essential oils of the seven aromatic plants tested.

Compounds
rt
A. conyzoides
E. camaldulensis
L. multiflora
H. spicigera
O. americanum
O. basilicum
Z. officinale

α-thujene
10.249
—
—
2.63
4.37
0.13
—
—

α-pinene
10.505
0.10
9.17
0.68
20.11
6.87
0.39
4.14

Camphene
11.106
0.80
0.19
0.23
0.09
2.77
—
12.69

Sabinene
11.935
0.07
—
0.86
10.26
0.65
2.58
—

..
..
..
..
..
..
..
..
..

PMC6253779
4 lightly coupled profiles
Table 1
Phytochemical composition (%) of essential oils of Satureja montana, S. cuneifolia, S. subspicata and S. visianii.

No.

PMC6259589
Another single profile
Table 2
Chemical constituents of the essential oil of A. conyzoides identified by GC-MS.

Compound
Retention time (min)
Retention index
Peak area (%)

α-Thujene
4.909
924
0.16

α-Pinene
5.100
931
0.30

β-Cubebene
22.312
1384
0.62

β-Elemene
22.396
1386
0.42

( E)-Caryophyllene
23.594
1414
14.23

α-Humulene
25.059
1450
2.80

Precocene I
25.517
1461
74.30

..
..
..
..

PMC6268859
Two independent profiles
Table 1
Major components identified in the volatile oils of L. camara and L. radula.

Peak no.
Constituent a
RI
L. camara (%)
L. radula (%)

1
α-Copaene
1374
1.1 ± 0.12
-

2
β-Elemene
1390
3.2 ± 0.51
-

3
Tetradecane
1399
1.0 ± 0.55
1.8 ± 0.26

4
E-Caryophyllene
1418
19.7 ± 3.32
25.3 ± 5.47

5
β-Gurjunene
1427
1.2 ± 0.15
-

6
α-Humulene
1451
9.3 ± 0.30
1.2 ± 0.06

7
β- E-Farnesene
1458
1.3 ± 0.20
Tr

..
..
..
..
..

Looking forward to discussing this with you, Peter!
Manny
On Aug 7, 2019, at 11:49 AM, petermr<EMAIL_ADDRESS>wrote:
Assigned #92 https://github.com/gilienv/EssOilDB/issues/92 to @mannyrules https://github.com/mannyrules.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/gilienv/EssOilDB/issues/92?email_source=notifications&email_token=ACJK2M4HGLD3YXBPBRVD2ADQDLOJNA5CNFSM4IJBIHB2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOS5VOLUY#event-2540365267, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJK2M5WOIQBYHJMM2KK4C3QDLOJNANCNFSM4IJBIHBQ.

On Thu, Aug 8, 2019 at 8:20 AM Manny<EMAIL_ADDRESS>wrote:

Looking forward to discussing this with you, Peter!

Have we agreed a time?


funkwhale: init at 1.2.1

Motivation for this change
A social platform to enjoy and share music
https://funkwhale.audio
Syncing with and streaming to with mobile devices and activitypub sharing of music libraries.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[x] (Module addition) Added a release notes entry if adding a new NixOS module
[x] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

IFD fixed and we have ourselves an update script to take care of all these nasty hashes.
Thanks for your help @piegamesde.

Today I got all services to run their respective executable and not instacrash, primarily by pinning two dependencies and iterating on a simple nixos test that requires them.
I also removed the frontend from the package output and only expose it via funkwhale.frontend now, which can be neatly referenced in the nginx vhosts root.
The module options are working quite nicely already. I have to test out what happens when the superuser information gets changed, since the setup script will call createsuperuser again.
One thing about the nixos test bugs me: The server component tries to connect somewhere, I don't yet know where, and I wonder if we want to patch that out :)
That's all for tonight.

It tries to fetch files from the frontend, so it requires a complete reverse proxying setup. Stay tuned.
Visible after setting FUNKWHALE_HOSTNAME to localhost, so I could evade the dns lookup.
 2022-01-08 04:50:38,924 django.request ERROR    Internal Server Error: /
 Traceback (most recent call last):
   File "/nix/store/fz0d0nq9x3ng0d9r6jm8spdzq1iy631v-python3.9-Django-3.2.9/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
     response = get_response(request)
   File "/nix/store/g856rbdpppa0wjw96p3b833azpa98pqz-funkwhale-1.2.0/lib/funkwhale/funkwhale_api/common/middleware.py", line 239, in __call__
     return serve_spa(request)
   File "/nix/store/g856rbdpppa0wjw96p3b833azpa98pqz-funkwhale-1.2.0/lib/funkwhale/funkwhale_api/common/middleware.py", line 38, in serve_spa
     html = get_spa_html(settings.FUNKWHALE_SPA_HTML_ROOT)
   File "/nix/store/g856rbdpppa0wjw96p3b833azpa98pqz-funkwhale-1.2.0/lib/funkwhale/funkwhale_api/common/middleware.py", line 112, in get_spa_html
     return get_spa_file(spa_url, "index.html")
   File "/nix/store/g856rbdpppa0wjw96p3b833azpa98pqz-funkwhale-1.2.0/lib/funkwhale/funkwhale_api/common/middleware.py", line 130, in get_spa_file
     response.raise_for_status()
   File "/nix/store/47w9wdpsz6arsd5zf7sic5d4sj7y5gkr-python3.9-requests-2.26.0/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
     raise HTTPError(http_error_msg, response=self)
 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost/front/index.html

Today I did the nginx config with help from @fleaz.
DynamicUser and peer based authentication seems problematic. It was working for me all while I was testing and then suddenly it failed to find the user matching the UID. Very odd.
Also we can't create the superuser multiple times, so we now touch ~/.${superUserName}_created in the state dir. That way the superuser creation only works on the initial setup. Pretty disappointing, given that paperless-ng has a manage_superuser option.
Learnt that we need to expose manage.py, to allow users to import music from the disk. Pretty disappointing workflow. Involves copying a UUID from the URL while browsing an empty library, created for the purpose of importing.
Aaaand Permissions get messy fast between funkwhale, nginx and my own user :disappointed:
The UX of the webclient seriously needs some love. Finding things like your own libraries is annoying.
All in all this seems ready to test, I might have some local changes on my laptop still, so maybe tomorrow.

Ready for review and further testing. @aanderse @davidak @piegamesde @andir

The tests are are failing due to a core dump in python, from what I can tell around pillow. :facepalm:

Updated to 1.2.2. Needed to pin uvicorn to stay compatible with asgiref. Fixed django-auth-ldap (#160012) which got broken in the latest python-updates cycle.
And still gunicorn is crashing in the NixOS test. Would love for more eyes on this.

Updated to 1.2.2. Needed to pin uvicorn to stay compatible with asgiref. Fixed django-auth-ldap (#160012) which got broken in the latest python-updates cycle.
And still gunicorn is crashing in the NixOS test. Would love for more eyes on this.

I will take a look when I have a chance.

At the moment, I'm getting something like:
$ nix --experimental-features nix-command build --no-link --keep-going --option build-use-sandbox relaxed -f /home/raito/.cache/nixpkgs-review/pr-152160/build.nix
error: build of '/nix/store/mr61ri5d703pm9fxpjn0i4fv1v8qlm9a-python3.9-azure-core-1.21.1.drv' on 'ssh://dc1-playground-builder' failed: error: builder for '/nix/store/mr61ri5d703pm9fxpjn0i4fv1v8qlm9a-python3.9-azure-core-1.21.1.drv' failed with exit code 1;
              last 10 log lines:
              > ERROR tests/test_settings.py::TestStandardSettings::test_setting_exists[log_level]
              > ERROR tests/test_settings.py::TestStandardSettings::test_setting_exists[tracing_enabled]
              > ERROR tests/test_settings.py::TestStandardSettings::test_setting_env_var[log_level]
              > ERROR tests/test_settings.py::TestStandardSettings::test_setting_env_var[tracing_enabled]
              > ERROR tests/test_settings.py::TestStandardSettings::test_init - ValueError: D...
              > ERROR tests/test_settings.py::TestStandardSettings::test_config - ValueError:...
              > ERROR tests/test_settings.py::TestStandardSettings::test_defaults - ValueErro...
              > ERROR tests/test_settings.py::TestStandardSettings::test_current - ValueError...
              > ERROR tests/test_universal_pipeline.py::test_pipeline_context - ValueError: D...
              > ========= 53 passed, 838 deselected, 7 warnings, 178 errors in 46.78s ==========
              For full logs, run 'nix log /nix/store/mr61ri5d703pm9fxpjn0i4fv1v8qlm9a-python3.9-azure-core-1.21.1.drv'.
error: builder for '/nix/store/mr61ri5d703pm9fxpjn0i4fv1v8qlm9a-python3.9-azure-core-1.21.1.drv' failed with exit code 1;
       last 10 log lines:
       > ERROR tests/test_settings.py::TestStandardSettings::test_setting_exists[log_level]
       > ERROR tests/test_settings.py::TestStandardSettings::test_setting_exists[tracing_enabled]
       > ERROR tests/test_settings.py::TestStandardSettings::test_setting_env_var[log_level]
       > ERROR tests/test_settings.py::TestStandardSettings::test_setting_env_var[tracing_enabled]
       > ERROR tests/test_settings.py::TestStandardSettings::test_init - ValueError: D...
       > ERROR tests/test_settings.py::TestStandardSettings::test_config - ValueError:...
       > ERROR tests/test_settings.py::TestStandardSettings::test_defaults - ValueErro...
       > ERROR tests/test_settings.py::TestStandardSettings::test_current - ValueError...
       > ERROR tests/test_universal_pipeline.py::test_pipeline_context - ValueError: D...
       > ========= 53 passed, 838 deselected, 7 warnings, 178 errors in 46.78s ==========
       For full logs, run 'nix log /nix/store/mr61ri5d703pm9fxpjn0i4fv1v8qlm9a-python3.9-azure-core-1.21.1.drv'.
error: 1 dependencies of derivation '/nix/store/xpyp12r4wy8hfk6f2ivhq72y4xdyijfr-python3.9-azure-servicebus-7.5.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/635cvg56hzciyaqwr1yihscmxa12s5wp-python3.9-kombu-5.2.4.drv' failed to build
error: build of '/nix/store/6b19zxn95i5h2rys6q344knv54qfr6c9-tensorflow-2.7.1.drv' on 'ssh://dc1-playground-builder' failed: error: builder for '/nix/store/6b19zxn95i5h2rys6q344knv54qfr6c9-tensorflow-2.7.1.drv' failed with exit code 1;
              last 10 log lines:
              > [3,369 / 5,838] Compiling tensorflow/core/kernels/cwise_op_div.cc; 467s local ... (32 actions running)
              > [3,369 / 5,838] Compiling tensorflow/core/kernels/cwise_op_div.cc; 1167s local ... (32 actions running)
              > ERROR: /build/source/tensorflow/compiler/mlir/tensorflow/BUILD:436:15: C++ compilation of rule '//tensorflow/compiler/mlir/tensorflow:tensorflow_ops_n_z' failed (Exit 1): gcc failed: error executing command /nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 ... (remaining 136 argument(s) skipped)
              > gcc: fatal error: Killed signal terminated program cc1plus
              > compilation terminated.
              > INFO: Elapsed time: 2337.271s, Critical Path: 1211.43s
              > INFO: 3430 processes: 691 internal, 2739 local.
              > FAILED: Build did NOT complete successfully
              > FAILED: Build did NOT complete successfully
              >
              For full logs, run 'nix log /nix/store/6b19zxn95i5h2rys6q344knv54qfr6c9-tensorflow-2.7.1.drv'.
error: 1 dependencies of derivation '/nix/store/4hnzmg4p0rrhx04pb3r1qkyg327xrijk-python3.9-celery-5.2.3.drv' failed to build
error: 2 dependencies of derivation '/nix/store/zbd00q5lwc6k6l8b65hd8ry37fcy5aa9-funkwhale-1.2.2.drv' failed to build
error: builder for '/nix/store/6b19zxn95i5h2rys6q344knv54qfr6c9-tensorflow-2.7.1.drv' failed with exit code 1;
       last 10 log lines:
       > [3,369 / 5,838] Compiling tensorflow/core/kernels/cwise_op_div.cc; 467s local ... (32 actions running)
       > [3,369 / 5,838] Compiling tensorflow/core/kernels/cwise_op_div.cc; 1167s local ... (32 actions running)
       > ERROR: /build/source/tensorflow/compiler/mlir/tensorflow/BUILD:436:15: C++ compilation of rule '//tensorflow/compiler/mlir/tensorflow:tensorflow_ops_n_z' failed (Exit 1): gcc failed: error executing command /nix/store/pja9g36cy32z3d51942jqk91a6l2d5nv-gcc-wrapper-10.3.0/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 ... (remaining 136 argument(s) skipped)
       > gcc: fatal error: Killed signal terminated program cc1plus
       > compilation terminated.
       > INFO: Elapsed time: 2337.271s, Critical Path: 1211.43s
       > INFO: 3430 processes: 691 internal, 2739 local.
       > FAILED: Build did NOT complete successfully
       > FAILED: Build did NOT complete successfully
       >
       For full logs, run 'nix log /nix/store/6b19zxn95i5h2rys6q344knv54qfr6c9-tensorflow-2.7.1.drv'.
error: 1 dependencies of derivation '/nix/store/dqjgh358vp6cl9hb2f0rnxy8ykwqj9g9-python3.9-tensorflow-2.7.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rkvfw69vzk77wxx9pmn32b3aipwx3pr4-python3.9-tensorflow-datasets-4.4.0.drv' failed to build
error: 2 dependencies of derivation '/nix/store/bxd2ix73im2m9ghpnsrfjdqpayjqky2z-review-shell.drv' failed to build
``` while reviewing, did you encounter these errors @mweinelt ? Or is it just my machine who is not powerful enough for TensorFlow?

Yeah, some python packages are broken on master right now, annoying. Alot of the required fixes are in #162538.

Yeah, some python packages are broken on master right now, annoying. Alot of the required fixes are in #162538.

Alright, will revisit this when things are better :).


Update oci-java-sdk-objectstorage to 2.3.0

Updates com.oracle.oci.sdk:oci-java-sdk-objectstorage from 1.37.2 to 2.3.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.oracle.oci.sdk", artifactId = "oci-java-sdk-objectstorage" } ]

labels: library-update, semver-major

Superseded by #60.


Replace of compressing module

Currently compressing file by x/zip. However x/zip implement CLI dependent.
So, I will break away from the CLI dependency by replacing it with jsr:@zip-js/zip-js.

@zip-js/zip-js compressing of bid_output folder.
But currently Microsoft IME file is garbled.
Zip Manager used ungarbled.
I will finding issue.


Fix issue #50 : scroll-up button that overlaps

Hello, i just fixed the issue #50  and also tested it and the button doesn"t overlaps anymore ! Thank you for merging this PR !

Hello, Can you please test it so you can see that it works ? I would love to have this PR merged before monday !
He're is how it's fixed, as you can see there is no longer problem with beetween the scroll up button and the other ones:

Thank's a lot @Bjorn-Ironsidee @NuclearReid  @jayabaldwin @Y1va

Thank you for that contribution, however we're only going to submit work done by us as its for a group project.
Appreciate the input though :)

lol


Using request.data in django strategy

Djangos request.GET is fine, but request.POST is not necessary populated with the data sent in a POST request. See https://github.com/omab/python-social-auth/blob/aa66b83d4848c09defa57384529eca83597a3692/social/strategies/django_strategy.py#L40 for the problem and http://www.django-rest-framework.org/api-guide/requests/#data for the django docs.
The idea is that POST is only populated if it's form-data.
Would it be an idea to change out the logic in the strategy to use .data if the request.method != 'GET'?
I'm submitting this as an issue now because I'm unsure if this is something you guys want or not. Is there any reason not to use .data? Have this only been biting me?

I think that request.data exists only in the request wrapper object in django-rest-framework, not in Django itself...

I am using a strategy like this now;
class SocialAuthDjangoStrategy(DjangoStrategy):
    def request_data(self, merge=True):
        if not self.request:
            return {}

        if self.request.method == 'POST':
            return self.request.data
        else:
            return self.request.GET

and it works as it should. It is simplified a little compared to the original since this is all I need, but it works..


OLS-254: Reorder functions

Description

handlers are much more important, so put them on top
verifications, info retrieval, response generators are below
no changes in program logic, so no changes in tests

Type of change

[x] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-254

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7a442ce) 96.08% compared to head (b059aa1) 96.08%.
Report is 8 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #421   +/-   ##
=======================================
  Coverage   96.08%   96.08%
=======================================
  Files          32       32
  Lines        1073     1073
=======================================
  Hits         1031     1031
  Misses         42       42

Files
Coverage Δ

ols/app/endpoints/ols.py
100.00% <100.00%> (ø)

ols/app/models/config.py
97.71% <100.00%> (ø)

ols/constants.py
100.00% <100.00%> (ø)

/lgtm
/approve


Asifbrohi

practicing merging.

Looks good man. Keep that niece at bay.


Use of uninitialized value in CA.pl

At least the following warings can be see during "make test"
Use of uninitialized value $1 in concatenation (.) or string at /home/travis/build/openssl/openssl/apps/CA.pl line 133.

Does this solve the issue?
diff --git a/apps/CA.pl.in b/apps/CA.pl.in
index 12c9452444..41b50b08c4 100644
--- a/apps/CA.pl.in
+++ b/apps/CA.pl.in
@@ -129,7 +129,8 @@ if ($WHAT eq '-newcert' ) {
     print "Pre-cert is in $NEWCERT, private key is in $NEWKEY\n" if $RET == 0;
 } elsif ($WHAT =~ /^\-newreq(\-nodes)?$/ ) {
     # create a certificate request
-    $RET = run("$REQ -new $1 -keyout $NEWKEY -out $NEWREQ $DAYS $EXTRA{req}");
+    my $nodes = $1 // '';
+    $RET = run("$REQ -new $nodes -keyout $NEWKEY -out $NEWREQ $DAYS $EXTRA{req}");
     print "Request is in $NEWREQ, private key is in $NEWKEY\n" if $RET == 0;
 } elsif ($WHAT eq '-newca' ) {
     # create the directory hierarchy

Marking as inactive, to be closed at the end of 3.4 dev barring further input


Fix test shutdown to ensure loop/threads are clean.

Description:
Ensures each test using hass.stop actually waits till the event loop has completed, then is closed. The stop command now also ensures the thread-pool executer has shut-down as well to free up those resources.
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

We now ensure the loop is closed, it has completed, and the
executer has completed. This ensure all threads are freed
up with any test calling hass.stop().

🐬


Add norfolk academy - Link included.

I love jetbrains products, it would be nice to get some free stuffs :)
Heres some links:
https://www.norfolkacademy.org/academics/upper-school - This includes some course offerings, CTRL+F "computer science" (also proves we offer high edu)

@liondadev First stage of verification passed, official domain is norfolkacademy.org as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@liondadev Pull request merged. Thank you.


"INTERNAL ERROR" when running "pxt staticpkg"

rendering docs/types/number.md
rendering docs/types/string.md
rendering docs/types/var.md
INTERNAL ERROR: TypeError: Cannot read property 'replace' of undefined
    at Object.renderMarkdown (/home/sgk/pxt/microbit/pxt/built/pxt.js:58890:32)
    at renderDocs (/home/sgk/pxt/microbit/pxt/built/pxt.js:81306:33)
    at /home/sgk/pxt/microbit/pxt/built/pxt.js:82945:34

@sgk  have you soved this issue ? thx


6.0 Feedback:  Robot Calibration blocked while a run is idle

Overview
If you upload a protocol and do not have your robot calibrated, you are not able to do calibration.
You can proceed to calibration if you cancel the run.

Current Behavior
Blocked from calibration during setup for run.
Expected Behavior
Should be able to Calibrate as you setup to run.
Steps To Reproduce
Upload a protocol to an uncalibrated robot.  Proceed to run on that protocol.  Be prompted to calibrate.
Operating system
Mac
Robot setup or anything else?
No response

Verified fixed


quote snmpv3 passphrases to cope with weird characters and spaces

fixes https://github.com/razorsedge/puppet-snmp/issues/33

@Seegras Thank you for your submission. Could you please also update the unit tests so that they will pass? Thanks!


Reduce usages of CGo

There are a lot of c codes hardly coupled with the go codes. https://dave.cheney.net/2016/01/18/cgo-is-not-go. It is better to use to go as much as possible. I think there are some scopes to reduce some cgo codes. Let me know what is your thought about reducing the uses of cgo.

Yes, that CGO is due to the library I'm relying on (Libretro) written in C. The only Golang port I found is using CGO :( Don't know how to get away with that.

There are some other cgo code i found while refactoring. Like one in the util. We can start replacing those first. And may be in future we can try to rewrite the libraries.

I will close this issue for now. If we feel we need to make changes related to this - we will reopen in this.


Refactor events

Resolves #440
Implements EVENTS.md
Contains:

Filter out bank module event of type message when tokens are transferred to a contract
New event type gov_contract_result for contract execute and migrate in the gov proposal handler

Left to do:

[ ] test new events in keeper
[x] fix TestIBCReflectContract by a new contract version that reads from the right event

fix TestIBCReflectContract by a new contract version that reads from the right event

Uh oh... is this broken in cosmwasm-plus??? and I just tagged. I will fix that

I fixed the ibc reflect contract in https://github.com/CosmWasm/cosmwasm/pull/1046 and copied it here so the test now works.
With my review comments above, this is ready to merge in my eyes.


Level 6

hi can someone help on how to start for  level6? i read some posts about creating and additional pending event, but is it really necesssary? or can it be done without a pending event? if not, can someone explain how the pending event works? thanks!

There are definitely ways around creating this, but having a Pending/Rest/Resting event can make the later levels easier and cleaner to solve imo.
How it works is basically once there is a Done, instead of creating a Serve for the next customer, you create a Pending event (with time = Done time + Resting time from the supplier). This Pending event will take over the responsibility of creating the Serve event for the next customer in place of Done.

Hi, I am one of those who created an additional event. This resulted in me having to somewhat restart from Level 3 though.
This was what my execute() produced for each type of event:
Arrive --> Wait / Serve / Leave
Wait --> Try
Try --> Try / Serve
Serve --> Done
So basically for Try, you check whether the customer is first in the queue, if it is then return Serve, else return Try
Nevertheless, this is not the way and I'm sure there are more efficient ways available!

There are definitely ways around creating this, but having a Pending/Rest/Resting event can make the later levels easier and cleaner to solve imo.
How it works is basically once there is a Done, instead of creating a Serve for the next customer, you create a Pending event (with time = Done time + Resting time from the supplier). This Pending event will take over the responsibility of creating the Serve event for the next customer in place of Done.

hi i was thinking how about instead of creating a pending event after done, why not creat a serve event which takes in the done time + rest time? is that possible or would it complicate things? thanks !

I think if you serve immediately the problem would be getting the next customer in queue or if there aren't any customer then you need to return another event

There are definitely ways around creating this, but having a Pending/Rest/Resting event can make the later levels easier and cleaner to solve imo.
How it works is basically once there is a Done, instead of creating a Serve for the next customer, you create a Pending event (with time = Done time + Resting time from the supplier). This Pending event will take over the responsibility of creating the Serve event for the next customer in place of Done.

hi @shotnothing i was thinking how about instead of creating a pending event after done, why not creat a serve event which takes in the done time + rest time? is that possible or would it complicate things? thanks !

That's a good question! I actually started out not wanting to make an additional class, but there were a few quirks about the logic that they expect. For example:
Set max waiting queue length = 2
Server 1: [ 1 2 3 ]
Customer 1 done at Server 1.
Remove 1 from the queue.
Create Serve event, for Customer 2, set in the future.
Server 1: [ 2 3 ]
Customer 4 arrives.
Using common sense they should be able to queue in Server 1, but the logic they expect is that Customer 4 is unable to wait and leaves, I suspect because they expect Customer 1 to be dequeued only at the end of the resting period.
Of course, its mostly up to implementation and you could artificially increase the reporting size of the queue by 1 during the resting period.
I also remember a few other compelling reasons that made me create a new event but I can't exactly remember, its been a while. Nonetheless, can try with your method first. Adding code is usually easier than deleting code, should be easier to duct tape the resting event into your existing implementation later.

I think if you serve immediately the problem would be getting the next customer in queue or if there aren't any customer then you need to return another event

You could just not add a new event  and process the existing done event.

PQ might work

Hii! I was amongst those who added in the pending event class as well. My feeling is that it really depends on your previous logics and how much of it you’re willing to change. For me a new pending class can solve the problem of returning actual Serve event only for the first customer inside the queue while protecting other customers by returning some ‘fake’ events for them so they’re not lost and forgotten in my PQ. Hope this helps!

Yup i used PQ and had my wait event run a pending event which decides whether to serve or push it to the next available server


VS2015 Community Edition won't start Node.JS after first build of project

Using Visual Studio 2015 Community Edition Release Candidate with nodejstools 1.1, web essentials and git addons, I get an error when I attempt to launch my Node.JS project repeatedly.
For the first time, the project builds and loads fine. After that, it crashes with no visible error. Turning the Node.js Exceptions On in Exception Settings dialog yelded this:
Error(ENOENT) occurred
Message: Error: ENOENT, no such file or directory 'C:\Users$(Username)\Documents\Visual Studio 2015\WebSites\ExpressApp1\node_modules\express.js'
in fs.js, line 797 in function fs.statSync.
Express is installed normaly via npm as local dependency, configured and has already run from this project once. This occurs within subsequent launches of any project, even new ones, Also, after sucesful run, web.config file is added by IIS. However, this tries to start the project at nonsensical port (53365) instead of the provided 3000. Re-building the project or closing/opening either project, solution or Visual studio did nothing, as well as reinstall of both Node.JS and nodejstools.

Does everything work fine if you run node app.js (or whatever your startup file is) in the command line?

Yes, I can run the project multiple times from command line using node server just fine. I have tried several other projects and all work fine. Only problem that I have noticed outside of Visual Studio is that I have to start my projects with specified port because the proces.env.port which was defined when starting the project from Web Matrix now defaults to "Undefined". However the problem persists even after setting the port number manualy.

If you are still running into this problem, please try updating to a more recent NTVS release and a more recent VS 2015 build. If this is still an issue, please let me know and we can reopen this.
Thanks.


phantomjs has been renamed to phantomjs-prebuilt

Update to use phantomjs-prebuilt

Updated to phantomjs-prebuilt 2.1.4


flatten cookies for header

Fix issue #77

Could you provide a unittest for this?

@jaapio I created a test can you please recheck?

I can. But I won't be able to approve your pr since I'm not a zf
maintainer.
Op do 8 dec. 2016 13:15 schreef tflori<EMAIL_ADDRESS>
@jaapio https://github.com/jaapio I created a test can you please
recheck?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zendframework/zend-http/pull/92#issuecomment-265726682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAuUbKsKb5B47_XcFHq_bQpqw2BUH7qks5rF_T1gaJpZM4KiQ37
.

@weierophinney it would be greate if you could review this pr. thanks in advance.

@ezimuel I modified the function not to use pass by reference.
I don't know why coveralls shows a decreased coverage status - the function I added is tested. Nothing else changed.

@tflori thanks for your contribution! I improved the unit test with a bi-dimensional cookie array.


Multiple View Holders of GenericAbstractItem

I need to include multiple viewholders into my list of GenericAbstractItem,how do i do that?These arent headers or footers,they are part of the list.

Please have a look on the MultiTypeGenericItemActivity
https://github.com/mikepenz/FastAdapter/blob/develop/app/src/main/java/com/mikepenz/fastadapter/app/MultiTypeGenericItemActivity.java#L60

Basically just define a parent class which is true for all your items (if non exists then just use IItem)
Define the logic how your model (model's) define your item
GenericItemAdapter<IconModel, GenericIconItem> itemAdapter = new GenericItemAdapter<>(new Function<IconModel, GenericIconItem>() {
            @Override
            public GenericIconItem apply(IconModel o) {
                if (o instanceof RightIconModel) {
                    return new RightGenericIconItem(o);
                } else {
                    return new GenericIconItem(o);
                }
            }
        });

And then fill the list.

That did the job,thank you @mikepenz

Is it possible to have two separate viewholder with different views in them?

2 ViewHolders --> 2 Items
Mike Penz

Mike Penz
Android | Backend | Open Source | Web Developer
mikepenz.com
lanora.eu
On Wed, Mar 1, 2017 at 10:14 AM, Jude Fernandes<EMAIL_ADDRESS>wrote:

Is it possible to have two separate viewholder with different views in
them?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mikepenz/FastAdapter/issues/351#issuecomment-283285978,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABaGiPgEvKqiB70qr0CsQlfRNP0f4y-vks5rhTcFgaJpZM4MORH4
.

ReceiverChat_ViewHolder
 public class ReceiverChat_ViewHolder extends RecyclerView.ViewHolder {
private TextView message;
private ImageView imageView;

public ReceiverChat_ViewHolder(View itemView) {
    super(itemView);
    message = (TextView) itemView.findViewById(R.id.message);
    imageView = (ImageView) itemView.findViewById(R.id.image_receiver);
}

public TextView getMessage() {
    return message;
}

public ImageView getImageView() {
    return imageView;
}

}`
ChatSender_ViewHolder
`public class ChatSender_ViewHolder extends RecyclerView.ViewHolder {
private TextView message;
private ImageView imageView;

public ChatSender_ViewHolder(View itemView) {
    super(itemView);
    message = (TextView) itemView.findViewById(R.id.message);
    imageView = (ImageView) itemView.findViewById(R.id.image_sender);
}

public TextView getMessage() {
    return message;
}

public ImageView getImageView() {
    return imageView;
}

}`
GenericChatMessageItem
`public class GenericChatMessageItem extends GenericAbstractItem<ChatMessage,
GenericChatMessageItem, ChatSender_ViewHolder> {

private static final ViewHolderFactory<? extends ChatSender_ViewHolder> FACTORY = new
GenericChatMessageItem.ItemFactory();

public GenericChatMessageItem(ChatMessage chatMessage) {
    super(chatMessage);
}

@Override
public int getType() {
    return R.id.fastadapter_generic_senderMessage_item_id;
}

@Override
public int getLayoutRes() {
    return R.layout.item_sender_message;
}

@Override
public void bindView(ChatSender_ViewHolder holder, List<Object> payloads) {
    super.bindView(holder, payloads);
    Log.i("bindSender", "Here");
    ChatMessage chatMessage = getModel();

    holder.getMessage().setText(chatMessage.getMessage());
        Log.i("imagebindSender", chatMessage.getImage() + " " + chatMessage.getId_chat_msg());

        if (chatMessage.getImage() != null) {
            Log.i("imagebindSender", chatMessage.getImage());
            Glide.with(holder.itemView.getContext())
                    .load(chatMessage.getImage())
                    .into(holder.getImageView());
        }
}

@Override
public void unbindView(ChatSender_ViewHolder holder) {
    super.unbindView(holder);
    holder.getMessage().setText(null);
    holder.getImageView().setImageDrawable(null);
}

@Override
public ViewHolderFactory<? extends ChatSender_ViewHolder> getFactory() {
    return FACTORY;
}

private static class ItemFactory implements ViewHolderFactory<ChatSender_ViewHolder> {
    public ChatSender_ViewHolder create(View v) {
        return new ChatSender_ViewHolder(v);
    }
}

}
ReceiverChatMessageItem
`public class ReceiverChatMessageItem extends GenericChatMessageItem {

public ReceiverChatMessageItem(ChatMessage chatMessage) {
    super(chatMessage);
}

@Override
public int getType() {
    return R.id.fastadapter_generic_receiverMessage_item_id;
}

@Override
public int getLayoutRes() {
    return R.layout.item_receiver_message;
}

@Override
public void bindView(ChatSender_ViewHolder holder, List<Object> payloads) {
    super.bindView(holder, payloads);
    Log.i("bindReceiver", "Here");

    ChatMessage chatMessage = getModel();
        Log.i("imagebindReceiver", chatMessage.getImage() + " " + chatMessage.getId_chat_msg());

        holder.getMessage().setText(chatMessage.getMessage());

        if (chatMessage.getImage() != null) {
            Log.i("imagebindReceiver", chatMessage.getImage());
            Glide.with(holder.itemView.getContext())
                    .load(chatMessage.getImage())
                    .into(holder.getImageView());
        }
}

@Override
public void unbindView(ChatSender_ViewHolder holder) {
    super.unbindView(holder);
    holder.getMessage().setText(null);
    holder.getImageView().setImageDrawable(null);
}
 }`

in the activity
 ` itemAdapter = new GenericItemAdapter<>(chatMessage -> {

        if (chatMessage.getUser_type() == 1) {
            return new GenericChatMessageItem(chatMessage);
        }
        return new ReceiverChatMessageItem(chatMessage);

    });`

The layout files each contain an image view and a text view but the ids for the the 2 image views or the 2  text views are not the same.

@judemanutd gist.github.com/Suleiman19/…
As you have mentioned you have 2 textview views and  imageview...this code actually works almost same way like the code you have written.......hope this helps!!!

@PN1019 link does not open

@judemanutd  try again now it's working

@PN1019  it worked thanks but this seems like the item is a header,i am doing a chat app so i want 1 view for sender and 1 for receiver but no headers in the list.Will this still work?

@judemanutd your ReceiverChatMessageItem should not extend the GenericChatMessageItem. Otherwise you could not specify a different viewholder. You should use ReceiverChatMessageItem extends  GenericAbstractItem<ChatMessage, ReceiverChatMessageItem, ReceiverChat_ViewHolder>. When you need the same superclass for both create one that is extending GenericAbstractItem without an viewholder requirement.

@FabianTerhorst  i got that part but then what how should i declare my GenericItemAdapter if i want to include two different view holders?I was confused about that part.Any help would be appreciated.
   ` private GenericItemAdapter<ChatMessage, GenericChatMessageItem> itemAdapter;
     final RecyclerView recyclerView = (RecyclerView) findViewById(R.id.chats);
     final LinearLayoutManager linearLayoutManager = new
     LinearLayoutManager(getApplicationContext());
     final FastAdapter<GenericChatMessageItem> fastAdapter = new FastAdapter<>();

    linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    fastAdapter.withSelectable(true);

    itemAdapter = new GenericItemAdapter<>(chatMessage -> {

        if (chatMessage.getUser_type() == 3) {
            return new ReceiverChatMessageItem(chatMessage);
        }
        return new GenericChatMessageItem(chatMessage);

    });

    recyclerView.setAdapter(itemAdapter.wrap(fastAdapter));
    recyclerView.setLayoutManager(linearLayoutManager);`

You could use GenericAbstractItem as a type or you are going to create an own class that is extending GenericAbstractItem.

@FabianTerhorst  when i try declaring the adapter like so
private GenericItemAdapter<ChatMessage,AbstractItem> adapter;
lint complains saying that abstract item is not within its bounds and i should implement IGenericItem

private GenericItemAdapter<ChatMessage, GenericAbstractItem > adapter;

@FabianTerhorst tried that lint throws the same error.


Where to get train_dense_crf_cap.json?

Hello, how can I get train_dense_crf_cap.json?

Hi, before running the inference of Phase 2, preprocess the data with:
python preprocessing/extract_relevant_history.py --include_cap --save_name crf_cap

I have add this line into "Direct inference" - "Phase 2" in README. Thanks for pointing out this out.


Question: How to create a script to process post data

Apologies if this is an amateur question.
I'm building an Anchor theme. I want to collect data from visitors.
<form action="/subscribe" method="post">
  <input type="text" name="email">
  <input type="submit">
</form>

How do I create a page that handles the post data?
<?php
echo $_POST["email"];
?>

Simply creating new page templates returns a 500 error. It seems to cause a problem with the router. How do I create pages that handle post data?

If I were you @davidapple I would use another service other than Anchor to handle users data. The admin interface won't be able to present the data correctly. Maybe Mailchimp is more suited for this? Or Formspree?

Closing this as I think we’ve adequately answered the question


EMG generator XSD

Review TAGs and attribute names.

Bitbucket: https://bitbucket.org/elen4/ceinms/ceinms/issue/5
Originally reported by: Claudio Pizzolato
Originally created at: 2014-06-10T01:56:42.666

We need to change the names of the tags in emgGenerator XSD. Maybe we should also change the name of the XSD itself. We need names that would work well with synergies as well.. tags like primitives and muscles.. or something like that

Original comment by: Claudio Pizzolato

should we change this before or after the "release" of the user guide? in the former case, we need to decide on something quickly :sweat:

Original comment by: elen4

Transform emgGenerator -> excitationGenerator. Fix #5
Extra work included:

removed obsolete InputDataInterpreter in Calibration
removed deprecated constructor from TorquesComputation in Calibration
removed hard coded EMG generators
updated manual

→ <>

Original comment by: elen4


remove ide mutations

This is antagonistic and serves no real benefit. Our lint and format commands have the final say in code style anyway, implemented at CI-time. It also encompasses all users & their tooling preferences because there's no way around the check(s)
As it stands, VSCode auto-installing extensions and changing its behavior is very off-putting and borderline antagonistic to contributors. Let people develop using their tools they know and are used to – our only care is that the end result aligns with what we want, and that's what the scripts and CI are for.

I suppose I'm fine with removing the prettier extension since it appears to be buggy.
Do we still want to remove the eslint one and insertFinalNewline though? Those still seem helpful

let's try this


Handle volume risk multiplier thoughtfully when kissing

When kissing, take the worse of the kissing and volume multipliers. In
particular, this means that

there is no bonus for not talking when you are kissing
kissing and loud talking multipliers are not multiplied together when
kissing

I guess I'm curious how there is such an activity as "kissing + loud talking" ... It seems like it should really be two activities: 1 that you log as kissing and the other that you log as loud talking. I'm curious what you have in mind when you say that you could select both. What's the example scenario?
Thanks!

I guess I'm curious how there is such an activity as "kissing + loud talking" ... It seems like it should really be two activities: 1 that you log as kissing and the other that you log as loud talking. I'm curious what you have in mind when you say that you could select both. What's the example scenario?
Thanks!

I guess I'm curious how there is such an activity as "kissing + loud talking" ... It seems like it should really be two activities: 1 that you log as kissing and the other that you log as loud talking. I'm curious what you have in mind when you say that you could select both. What's the example scenario?
Thanks!

I didn't have one in mind to start with (just wanted to address #620), but if pressed, I'd suggest a karaoke night date.

I guess I'm curious how there is such an activity as "kissing + loud talking" ... It seems like it should really be two activities: 1 that you log as kissing and the other that you log as loud talking. I'm curious what you have in mind when you say that you could select both. What's the example scenario?
Thanks!

I didn't have one in mind to start with (just wanted to address #620), but if pressed, I'd suggest a karaoke night date.

It's not so much that there's an activity where you should select both as
the calculator lets you select both. Possibly we should just remove the
talking dropdown?
On Fri, Jan 15, 2021 at 10:00 AM Jenny<EMAIL_ADDRESS>wrote:

I guess I'm curious how there is such an activity as "kissing + loud
talking" ... It seems like it should really be two activities: 1 that you
log as kissing and the other that you log as loud talking. I'm curious what
you have in mind when you say that you could select both. What's the
example scenario?
Thanks!
I didn't have one in mind to start with (just wanted to address #620
https://github.com/microcovid/microcovid/issues/620), but if pressed,
I'd suggest a karaoke night date.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microcovid/microcovid/pull/644#issuecomment-761093505,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABM25LOEOVO726TEYNTNLFDS2B7EVANCNFSM4WB2E7SA
.

It's not so much that there's an activity where you should select both as
the calculator lets you select both. Possibly we should just remove the
talking dropdown?
On Fri, Jan 15, 2021 at 10:00 AM Jenny<EMAIL_ADDRESS>wrote:

I guess I'm curious how there is such an activity as "kissing + loud
talking" ... It seems like it should really be two activities: 1 that you
log as kissing and the other that you log as loud talking. I'm curious what
you have in mind when you say that you could select both. What's the
example scenario?
Thanks!
I didn't have one in mind to start with (just wanted to address #620
https://github.com/microcovid/microcovid/issues/620), but if pressed,
I'd suggest a karaoke night date.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microcovid/microcovid/pull/644#issuecomment-761093505,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABM25LOEOVO726TEYNTNLFDS2B7EVANCNFSM4WB2E7SA
.

Catherio approved giving kissing the same multiplier as loud talking, if you want to include that here (ok in a follow-up as well)

Catherio approved giving kissing the same multiplier as loud talking, if you want to include that here (ok in a follow-up as well)

My two cents: I'm in favor of removing the conversation volume when selecting kissing. And I'll let y'all make a final call.

My two cents: I'm in favor of removing the conversation volume when selecting kissing. And I'll let y'all make a final call.

I removed the conversational volume question in the kissing scenario, but then the only precaution left is the indoor/outdoor/ventilation one, which doesn't even do anything (it just tells you that it's ignoring the value).
What about hiding the entire Precautions section if you're kissing?

I removed the conversational volume question in the kissing scenario, but then the only precaution left is the indoor/outdoor/ventilation one, which doesn't even do anything (it just tells you that it's ignoring the value).
What about hiding the entire Precautions section if you're kissing?

That sounds right to me. I'd suggest we remove the warning about "outdoor doesn't apply when kissing" and re-add some notice that explicitly says "no precautions apply when kissing" ... so the user understands why everything else disappeared.
Thoughts?
(Maybe just removing them is obvious enough)

That sounds right to me. I'd suggest we remove the warning about "outdoor doesn't apply when kissing" and re-add some notice that explicitly says "no precautions apply when kissing" ... so the user understands why everything else disappeared.
Thoughts?
(Maybe just removing them is obvious enough)

I don't think it's necessary to explain. I think new additions to the bare minimum reading path need to achieve/satisfy at least one of these:

address surprise (make it easy to quickly answer natural questions)
be a sufficiently common source of surprise to justify making everyone else read it
drive helpful changes in behaviour
build future intuition about how to model

I don't think kissing satisfies any of these.

I don't think it's necessary to explain. I think new additions to the bare minimum reading path need to achieve/satisfy at least one of these:

address surprise (make it easy to quickly answer natural questions)
be a sufficiently common source of surprise to justify making everyone else read it
drive helpful changes in behaviour
build future intuition about how to model

I don't think kissing satisfies any of these.

Makes sense to me. The reason this was here in the first place was because
we didn't have kissing, only "cuddling" or "close" where the other
multipliers make sense.
On Mon, Jan 18, 2021 at 9:18 AM Jenny<EMAIL_ADDRESS>wrote:

I don't think it's necessary to explain. I think new additions to the bare
minimum reading path need to achieve/satisfy at least one of these:

address surprise (make it easy to quickly answer natural questions)
be a sufficiently common source of surprise to justify making
everyone else read it
drive helpful changes in behaviour
build future intuition about how to model

I don't think kissing satisfies any of these.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microcovid/microcovid/pull/644#issuecomment-762378936,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABM25LJ5XOMWYOHT75RRBCDS2RUM5ANCNFSM4WB2E7SA
.

Makes sense to me. The reason this was here in the first place was because
we didn't have kissing, only "cuddling" or "close" where the other
multipliers make sense.
On Mon, Jan 18, 2021 at 9:18 AM Jenny<EMAIL_ADDRESS>wrote:

I don't think it's necessary to explain. I think new additions to the bare
minimum reading path need to achieve/satisfy at least one of these:

address surprise (make it easy to quickly answer natural questions)
be a sufficiently common source of surprise to justify making
everyone else read it
drive helpful changes in behaviour
build future intuition about how to model

I don't think kissing satisfies any of these.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microcovid/microcovid/pull/644#issuecomment-762378936,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABM25LJ5XOMWYOHT75RRBCDS2RUM5ANCNFSM4WB2E7SA
.

Current version complete removes precautions section including the header during the kissing scenario and reworks translation string to specifically be about the close case and not the intimate case. Also made it show up for the other ventilation-related bonuses.
PTAL?

Current version complete removes precautions section including the header during the kissing scenario and reworks translation string to specifically be about the close case and not the intimate case. Also made it show up for the other ventilation-related bonuses.
PTAL?


refactor: Prefer Node.js typings

Codecov Report

Merging #160 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #160   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        18
  Lines          417       418    +1
  Branches        27        27
=========================================
+ Hits           417       418    +1

Flag
Coverage Δ

#unittests
100.00% <100.00%> (ø)

Impacted Files
Coverage Δ

src/product/ProductAPI.ts
100.00% <100.00%> (ø)


Initial view too small to display contents

After dragging in asset the view is too small to show all the content.  The window is not resizable so you must scroll to see the rest of contents and inspect button.

Related #2
The issue has to do with Window::setSize in Tauri setting the entire window size, including the menu bar size, which isn't predictable because Window::outerSize and Window::innerSize incorrectly return the same values. I added a hacky workaround that calculates the difference between the HTML body size and Tauri window size on startup, then adds that to when the window size is being set.
TLDR; Should be fixed, I'm going to close this for now, let me know if you run into the same issue