off-by-one: block transfer fix

In case of payload_len == x * block_size wakaama did send an extra / erroneous block1 with length == 0 after it already did send the actual last block with CoAP header more=0

Just waiting for all the checks to pass, then I think we can merge this.


Strange rank data from New page

I am seeing strange newRank data on stories such as this one (newRank going from 31 to 1), then from 60 to >91.
https://social-protocols-news.fly.dev/stats?id=33608886

Fixed in commit f795e3e3b22689b777a75f8d0a86097f520a8e12


Handle unavailable robots on boot

It seems that robots which are not connected to the cloud when home assistant starts are not picked up properly.
Today I had to restart home assistant to change the state of my robot from unavailable to docked because it wasn't connected to wifi when home assistant was started.
I'll try to debug this and provide better information.

Thanks for reporting!
I'll test this myself and get back to you.
I know that the API is fairly slow to update the state of the robot. That's the reason for the integration assuming the next state when doing something, eg. when starting a cleaning the library will assume that the robot has started instead of listening to the API for one polling cycle. Therefore, it happens that states may jump back and forth and eventually settling on the correct state.
The polling interval is 1 minute and it could take a minute or two for the state to settle. However, it should of course settle on the correct state eventually.

I've released a new version of the integration 1.3.1 that changes how the integration fetches and updates data from the API. For instance, the integration will no longer assume the next state, it should better handle that naturally now.
I'm closing this issue but if you still observe this bug then feel free to comment and I'll re-open it.


Problem in training hover control policy with different quad_params

First, thank you for your develop to this simulation. While using the ppo_hover_train.py code, I found that if hummingbird_params is used instead of crazyflie_params, it cannot learn the hover task. I continued the training from 1M to 10M.
I don't understand how changing only the physical parameters of the drone can affect the result so much. What would you recommend to change or update at this point?

Interesting! I'm not exactly sure why this is the case... what control abstraction are you using? What's the simulation rate for the environment? What reward function are you using?
Does the policy learn any behavior at all after 10M steps? If so, what is that behavior?
Unfortunately it's hard to debug why it isn't working with limited information. You might have to play around with different hyperparameters of the learning algorithm to get it to work.

Thank you for your answer. I used configuration as follow:
reward_function = lambda obs, act: hover_reward(obs, act, weights={'x': 1, 'v': 0.1, 'w': 0, 'u': 1})
env = gym.make("Quadrotor-v0",
control_mode ='cmd_motor_speeds',
reward_fn = reward_function,
quad_params = quad_params,
max_time = 5,
world = None,
sim_rate = 100,
render_mode='None')
After 10M steps agent not learning hover task. According to ppo_hover_eval.py, agents not reach to final position. Agents attitude/result is shown this figure:

And then, I changing both the control abstraction and its hyperparameters of the learning algorithm in the simulation settings, but the results did not change.

You could try changing the reward function weights too.
Also, for higher abstractions (like cmd_ctatt for instance), the multirotor environment has lower level controllers to track those references. You can change the gains for those lower level controllers here. This shouldn't be the problem though for cmd_motor_speeds.

I changed both reward function weights and low level controller parameter and additionally used higher abstractions such as cmd_ctbr.

reward_function = lambda obs, act: hover_reward(obs, act, weights={'x': 1, 'v': 0.1, 'w': 0.1, 'u': 0})
env = gym.make("Quadrotor-v0",
control_mode ='cmd_ctbr',
reward_fn = reward_function,
quad_params = quad_params,
max_time = 5,
world = None,
sim_rate = 100,
render_mode='None')
self.k_w = 2 updated to this line.
According to these update results obtained is shown as follow:

As a result, we can consider the hover task of the RL agent as learned according to the hummingbird parameters, although a little bit position error remains. Thanks.

Looks good, nice job! Thanks for sharing.


TODO Statments are not highlighted in the scroolbar

Describe the bug
Just like we see small and thin horizontal lines in the scrollbar of the editor for errors (red) and warnings (yellow), we should be able to see a similar line (probably of blue color) for TODO comments which we can see in IntelliJ Light Theme but not in Monokai Pro.
To Reproduce
Steps to reproduce the behavior:

Write a Todo comment anywhere in the editor (E.g.  // TODO: This is a comment)
In IntelliJ Light Theme, we will see a thin blue horizontal line on the scrollbar.
If we switch to Monokai Pro, no such corresponding line will be there.

Screenshots

Application:
All JetBrain IDEs

I have created a pull request to fix this issue. Please merge that request and close this issue.

Thanks, and sorry for the delay. The changes look good.


Relations aliasing and specialization

Is there the possibility to specialize a relation defined in a parent class inside a subclass?
By "specialize" I mean actually to create something like an alias of the parent relation.
I mean, if I have:
class Container
  has_many :things, class_name: 'Thing', inverse_of: :container
end

class Thing
  belogs_to :container, class_name: 'Container', inverse_of: :things
end

class SpecificContainer < Container
   # Here I want to specialize the has_many :things relation of Container with a brand new name.
   # At the same time I want to make the parent relation completely inaccessible (in both writing and reading)
end

class SpecificThing < Thing
   # Here I want to specialize the belongs_to :container relation of Thing with a brand new name.
   # At the same time I want to make the parent relation completely inaccessible (in both writing and reading)
end

If I'm missing something or if I wasn't clear enough don't hesitate to ask for clarification.
Thanks in advance and sorry for the bother.

This is not possible via built in functionality of Mongoid, but you could do aliases to the relation name yourself if you wanted. As for not making the parent relation name inaccessible, that is not possible as Mongoid's internals wouldn't be smart enough to figure out the change and use the alias in the subclass.


One Unit Test fail on Windows Platform

One unit test doesn't pass on Windows Platform because "println()" method adds "\r\n" at the end of the line while on Mac OS X and Linux Platforms only "\n" is added.
This pull request fixes the problem whatever platform.

Hi, @mgreau how do you want to proceed?

@tmatsuo Hi, I've updated the PR and notes, let me know if you want to accept this PR, thanks.


feat: Added Prefix-Filters API functionality with Integration Tests to Transit Python-SDK.

PR summary
Transit service needed update to include the new Prefix Filter APIs.  This includes unit and integration tests as well as related help documentation
Fixes: new feature
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?
Current Transit Gateway Connection APIs do not support new prefix filter feature.
What is the new behavior?
Prefix filters are now supported by Transit Gateway Connection APIs
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

:tada: This PR is included in version 0.17.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Feature] Support function compress

What type of PR is this：

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

Which issues of this PR fixes ：
Fixes https://github.com/StarRocks/starrocks/issues/20507
Problem Summary(Required) ：
syntax
compress(input [,method])

in which, the input is a string value to be compressed, and the method is the compression method. By now, StarRocks support the following compress method:

SNAPPY
ZLIB
ZSTD
LZ4

the parameter should be case-insensitive. The default value of method is ZLIB.
Checklist:

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

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

Bugfix cherry-pick branch check:

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

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

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

@imay Hi, could you help me with reviewing this?

should add some sql-tests in the test/ directory

Done

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

Hi, @Cai-Yao , I am preparing the doc for this function. I am wondering what is the data type of the returned value. BINARY? VARBINARY?

I will continue to complete the PR recently. I didn’t handle the PR before due to personal matters.


Where can I find log file from LOG_IF, utilizing pywraplp

Apologize if this isn't the right place to post this, but when I clicked on "Modeling question" in the form, it brought me to the Google ortools group. When I tried adding a topic there it said I didn't have permission. I didn't see a way to join.
What version of OR-tools and what language are you using?
Version: 7.5
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) : COIN-OR CBC & the BOP solver
What operating system (Linux, Windows, ...) and version?: Linux and Windows (two different models, two different requirements/dev environments)
What did you do?
Steps to reproduce the behavior:
The main similarity between the two models I created is that they are both MIP problems. I was finding with my code that after running solve, and then trying to verify the solution the kernel dies.
So:
self.solution_indicator = self.solver.Solve() self.verify_solution = self.solver.VerifySolution(1e-7, True)
I tested line by line and the solver finishes and returns the ABNORMAL status (4) and I figured out the kernel was actually dying when VerifySolution was called. I do not know why, but I did see that in here  that there are log functions from logging.h in the base folder. I see it is Google's glog logging package from C++. I also did some digging and found a list of where the log file is supposed to go. See here. I cannot find it. I would like this output. Do you know where I can find the log file?
For these particular models it seems since it is abnormal perhaps I should not be calling VerifySolution, but for places where info is getting logged, it would be great to look at the logging information for help debugging!
#ifdef OS_WINDOWS   // On windows we'll try to find a directory in this order:   //   C:/Documents & Settings/whomever/TEMP (or whatever GetTempPath() is)   //   C:/TMP/   //   C:/TEMP/   //   C:/WINDOWS/ or C:/WINNT/
What did you expect to see
I expected the VerifySolution function to output what errors it encountered per its definition in linear_solver.cc.
What did you see instead?
My kernel died.
Anything else we should know about your project / environment
I cannot share my model, sorry!

The C++ layer outputs the log to stderr.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mar. 18 févr. 2020 à 23:10, mlh621<EMAIL_ADDRESS>a écrit :

Apologize if this isn't the right place to post this, but when I clicked
on "Modeling question" in the form, it brought me to the Google ortools
group. When I tried adding a topic there it said I didn't have permission.
I didn't see a way to join.
What version of OR-tools and what language are you using?
Version: 7.5
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP,
Gurobi) : COIN-OR CBC & the BOP solver
What operating system (Linux, Windows, ...) and version?: Linux and
Windows (two different models, two different requirements/dev environments)
What did you do?
Steps to reproduce the behavior:
The main similarity between the two models I created is that they are both
MIP problems. I was finding with my code that after running solve, and then
trying to verify the solution the kernel dies.
So:
self.solution_indicator = self.solver.Solve() self.verify_solution =
self.solver.VerifySolution(1e-7, True)
I tested line by line and the solver finishes and returns the ABNORMAL
status (4) and I figured out the kernel was actually dying when
VerifySolution was called. I do not know why, but I did see that in here
https://github.com/google/or-tools/blob/stable/ortools/linear_solver/linear_solver.cc
that there are log functions from logging.h in the base folder. I see it is
Google's glog logging package from C++. I also did some digging and found a
list of where the log file is supposed to go. See here
https://github.com/google/glog/blob/master/src/logging.cc. I cannot
find it. I would like this output. Do you know where I can find the log
file?
For these particular models it seems since it is abnormal perhaps I should
not be calling VerifySolution, but for places where info is getting logged,
it would be great to look at the logging information for help debugging!
#ifdef OS_WINDOWS // On windows we'll try to find a directory in this
order: // C:/Documents & Settings/whomever/TEMP (or whatever GetTempPath()
is) // C:/TMP/ // C:/TEMP/ // C:/WINDOWS/ or C:/WINNT/
What did you expect to see
I expected the VerifySolution function to output what errors it
encountered per its definition in linear_solver.cc.
What did you see instead?
My kernel died.
Anything else we should know about your project / environment
I cannot share my model, sorry!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1889?email_source=notifications&email_token=ACUPL3N3DRWOCQWOGUMS5XLRDRMHBA5CNFSM4KXNNSA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOOUDXA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3NWQTANZPU7F7RGIV3RDRMHBANCNFSM4KXNNSAQ
.

Ok, thanks for that. However, I had created my own logging class to capture both stdout and stderr. I know my logging works because on other models that are not infeasible I can go and see what I am printing out. When it runs into and issue with VerifySolution my log file is empty and nothing is printed out either. The kernel just dies.
`class Transcript(object):
""" Save console output and errors.
    Once import, run sys.stdout = Logger() at start of code.
    At end of code, use stop() function.

    Inspired by a few answers combined here:
    https://stackoverflow.com/questions/14906764/how-to-redirect-stdout-to-both-file-and-console-with-scripting
"""
def __init__(self, log_dir, f_name):
    self.log_dir = log_dir
    self.f_name = f_name
    self.terminal = sys.stdout
    self.error_message = sys.stderr

    # Set up log location if it doesn't exist
    if not os.path.isdir(self.log_dir):
        os.makedirs(self.log_dir)

    print("Log file:", self.log_dir+f_name+".log")
    self.log = open(self.log_dir+f_name+".log", "a")

def write(self, message):
    """ Write the console and error messages to log file. """
    self.terminal.write(message)
    self.error_message.write(message)
    self.log.write(message)

def flush(self):
    """ This flush method is needed for Python 3 compatibility.
        This handles the flush command by doing nothing.
        You might want to specify some extra behavior here.
    """

def stop():
"""Stop transcript and return print functionality to normal"""
sys.stdout.log.close()
sys.stdout = sys.stdout.terminal
# sys.stderr = sys.stderr.error_message
`
I use this class to set up my logging file before setting up my model and calling solve.
See the attached file for an example when the log file works. It is empty when the model has the issue. Github wouldn't let me upload an empty file.
And just to be sure to understand correctly. VerifySolution works when I have a model that is fine. It just doesn't log anything and doesn't work when I have what solver.Solve() returns something that is not optimal or feasible.
Why isn't VerifySolution outputting the errors? I can see where it is supposed to print in the C++ function.
working_log_file.log

For some reason the code above is not displaying correctly. See the regular text vs. when the code starts. It goes together.

I am running my code within a Jupyter notebook. I noted that the output from the solver, which is not printed within the notebook/console, is displaying within the Anaconda prompt that is opened and runs when running Jupyter locally.
This is exactly the output I'd like to save, but which does not get saved when I use my logging class above to capture stderr and stdout.
Anyone know how to capture this into a file?

@mlk621 have you made any progress there?

@Mizux @lperron first of all thanks for your time and patience and this great project you contribute to! Could you tell me if there are any plans to use Python exceptions instead of killing a kernel and relying on stderr? Would such a change be feasible in the near future? Then the error messages would be exactly where needed and the development experience would vastlly improve! I understand that such projects always have too limited resources for too many wishes. So thanks for uour efforts!


Deprecate older toolchain APIs

These are leftover accessors for the toolchain APIs for toolchains. Most of these types have been deprecated already.

@bot-gradle test QF

OK, I've already triggered QuickFeedback build for you.

See also #13882

See also #13882


add discriminative loss for mlp and y-hat

This code has been working great for me. Currently, the discriminative regularization in this codebase uses the loss from the batch norm layers of the ConvolutionalSequence, but the paper covers the more general case of taking loss from elsewhere in the classifier, as shown below:

I'd like to add losses at the higher layers - MLP and y-hat. I'm curious if anyone else is interested in working on this with me - the discriminative regularization parts are some of trickier parts of building the training computation graph, and y-hat currently doesn't have a named node in the classifier graph.

I think that would be a good idea. I won't have time to work on it, but if you have questions or would like guidance I can sporadically chime in (and of course review the PR).


update webcat_utils with CLI (and other changes)

@ebgoldstein - I've updated the webcat_utils to (what I believe) is a rudimentary functional form. There are a few thins to hash out but I wanted to get your opinion on the functionality before making any other changes. See the readme for instructions on using the CLI.

Closing this for now as I'm going to turn it into a package...


events: Implement a qlog Event Subscriber

Problem:
qlog is a standardized logging format that allows easy sharing of data and the creation of reusable visualization and debugging tools. The schema (still in draft form) is specified in https://github.com/quicwg/qlog. s2n-quic does not currently output in this format.
Solution:
Implement an Event Subscriber that outputs in the qlog format, by implementing the event::Subscriber trait and matching up the available events to their qlog equivalents.

Does this change what s2n-quic sends over the wire? No
Does this change any public APIs? No

Since the qlog spec is currently in draft, this should be a separate crate from the main s2n-quic as I don't want to break applications when things change. Probably something like s2n-quic-qlog.


python310Packages.aioweenect: init at 1.1.1

Description of changes
Library for the weenect API
https://github.com/eifinger/aioweenect

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 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
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 200837 run on x86_64-linux 1

2 packages built:

python310Packages.aioweenect
python39Packages.aioweenect


Loading indicator not visible on Android

loadingEnabled is set to true, however, loading indicator is not visible on Android. Works fine on iOS

+1

+1

+1

Old issue, closing. Please open a  new one if you still encounter this.

+1


Floating keyboard on iPad

Hi! Thanks for the great work 👍
I'm using (a fork of) your library in this NativeScript plugin and in a few apps. It works brilliantly.
One of my clients asked whether or not it would be possible to make those grey blocks to the left an right of the keyboard (see the screenshot below) transparent, so it would make the keyboard "float". I've tried a few things myself but couldn't figure out how to do it, so I was hoping anyone here would have a suggestion.

Hi there @EddyVerbruggen!
Wow, it seems that fork must be doing something really weird to display the keyboard incorrectly, because that's not the appearance of MMNumberKeyboard on an iPad.
I'm sorry, but I have no knowledge of what NativeScript is or what that your fork is doing with the code. Supporting this is out of the scope of this project.
I'd encourage you to use MMNumberKeyboard with UIKit directly.
Good luck! 😉
Matías.

Haha yeah that’s why I forked it: to alter the appearance on iPad because a customer liked it better that way ;)
Thanks for your answer!


⚠ ClamAV has degraded performance

In d5dae30, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 85 ms

Resolved: ClamAV performance has improved in 10a1e6a after 536 days, 17 hours, 47 minutes.


The results of multiple ,with pt file runs are different in c++

thx for your code,i wanna to use pt to inference,but The results of multiple ,with pt file runs are different in c++,what the reason may be?

Hi, I am afraid we cannot help you without knowing how you use it in c++. I suggest you print the c++ model's parameters to see if the weights are loaded correctly.

loaded

thx very much!


Blocking not preventing users from interacting with posts

Steps to Reproduce
I cannot provide steps to reproduce, as I have absolutely no idea how users are achieving this, however over the past few days I have noticed accounts being able to like posts despite the user who posted it having them blocked. It is likely the case that if they can interact with posts, such as liking, they can also see the posts and that completely defeats the purpose of being able to block users. I'm hopeful that this can be addressed quickly before it spreads, because if it spreads it could become very problematic very quickly.
See here and here, the user has the accounts "nofiltergpt.bsky.social" and "healingminds.bsky.social" blocked, and yet they were somehow able to like those posts.
Attachments
No response
What platform(s) does this occur on?
iOS, Android, Web (Desktop), Web (Mobile)
Device Info
Windows 11, Vivaldi (chrome based) v7.0.3495.20
What version of the app are you using?
Build version: 1.95.0; Bundle info: c9d86de (prod); Bundle date: 24112719; Platform: web; Platform version: undefined
Additional Information
No response

Looks like they're both spambotting. The restriction on seeing posts and submitting interactions is clientside[^1], so spambots aren't affected by them. That said, Bluesky should be filtering the list of likes against blocks across that interaction for everyone just like how it's done with replies, in order to make them fruitless for spammers.
Relatedly, I noticed that disallowed interactions (for example replies that aren't permitted) still increase the displayed reply count.
[^1]: It makes sense in context. Not ideal, but also not fully preventable with ATProto's approach, and still effective against most humans.

Chiming in to say that i too have seen "phantom likes" and "phantom replies" that can't be accessed because I blocked the users. I think it's misleading to have them be tallied because you can't see anything upon clicking.


Problems copying and pasting from MS Word

When I copy text from an MS Word document into the editor then it initially sorts the order in reverse. e.g. if my text contains a sentence followed by several bullet points then it pastes the bullet points in reverse order (the last one first) then followed by the sentence. (see image 1).
If I select the text in the editor, delete it and re-paste then it pastes it across correctly (see image 2)

The issue seems relates to Windows 10 Pro (64-bit) on a Microsoft Surface Pro 4 tablet on IE11, Firefox 51.0.1,, Chrome (56.0.2924.87).
It does, however, work correctly on Microsoft Edge (38.14393.0.0)
It also seems to work ok on Windows 10 on a PC and on Windows 7 on a PC.
Thanks
Lee

No progress on this. I am experiencing the same issue. Additionally the html is inserted before any existing marking up on the page.

Hm, that is strange. Is this using the latest Summernote? I have a feeling something has been changed making this behaviour happen.

It looks like this is an issue with Summernote, as per this https://github.com/summernote/summernote/issues/1964

the problem still exists but only in Chrome

I'm looking at fixing issues with all the plugins in the next few days, as the development of AuroraCMS has gotten to the point that Summernote is the next step in fixing editing.

Great, thank you for your answer!
I tried to fix, without success. I am very impatient, the problem is really blocking.

Yeah, when it comes to regex things can get confusing real fast.

I especially feel that the childNodes are not in the same order as Chrome or FF ..
https://github.com/summernote/summernote/blob/34394a4fe7c58414fab356948a1fa4b81c794406/src/js/base/core/range.js#L22

That may be something to look at in the Summmote Core API. Before I modify my plugins I had planned on fixing the ARIA/A11Y issues within Summernote and PR those.

when do you think you can take a look at this ?

I just created a PR on the main repository that includes some fixes to help with some of my plugins, so I can tinker here, but until that PR is merged then the plugin won't be updated repository wise until then.
I'm about to check through open issues on the Summernote issue tracker to check for fixes that need to happen that could also be affecting plugins, particularly cleaner.
I'm also planning on have a look through how other editors are doing their importing of documents from various editors.


Format the source code

I've configured the automatic formatting according to the instructions outlined in issue #5

Hi, are you able to resolve the merge conflicts, please? I'll then merge it.

Hi, are you able to resolve the merge conflicts, please? I'll then merge it.

Thank you @Sudha247 , i have been able to resolve the merge conflicts

Thanks! LGTM.


feat(LinearAlgebra/Matrix/Determinant/TotallyUnimodular): iff_fintype

add a lemma relating the definition of Matrix.IsTotallyUnimodular to Fintype rather than Fin.

bors r+


Not able to pick character options

Not even the SRD options are available
Nor are any options from compendiums I add in the settings. This is true for all sections of the creation tool

Seems the Module will not work with any Oathbreaker compendiums, KCCC or KCCL or the Heliana's Modules
Unsure if it works with content grabbed from DDB yet

I have a similar issue. Did you find a workaround?


Handle non-integer builder.boostFactor

We should handle non-integer  builder boost factor especially considering our docs reference the formula that can easily result in a non-integer output.
Possible solutions:

round or truncate to integer value, possibly w/ warn log
throw friendly error and shutdown, include documentation update to highlight that

Looks good to me now, applied suggestions from @g11tech and fixed example to use an integer value as --builder.boostFactor does not support floating point numbers

Originally posted by @nflaig in https://github.com/ChainSafe/lodestar/pull/6295#pullrequestreview-1822218092

Should probably do this for the next release for the full feature to be implemented properly.


Debug: Remove try except block

I noticed that sometimes dag.test() does not raise an exception even when an Airflow task fails, leading to silent failures in CI jobs without any notification. To address this, I’ve added an explicit assertion to check that the DAG run state is "success" when dag.test() does not raise an exception.
Added the tool.pytest.ini_options section in pyproject.toml, including the minversion option and custom markers.
Fixed bug in the sleep logic while waiting for the load balancer to become ready
Failed detected CI: https://github.com/astronomer/astro-provider-ray/actions/runs/11560564529/job/32177695161?pr=85
closes: https://github.com/astronomer/oss-integrations-private/issues/22

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

Project coverage is 98.22%. Comparing base (0d99128) to head (c80556e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
+ Coverage   96.09%   98.22%   +2.13%
==========================================
  Files           5        5
  Lines         563      564       +1
==========================================
+ Hits          541      554      +13
+ Misses         22       10      -12

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


Completion triggers parsing

I've noticed that if one runs completion, runs gc, and then runs completion again, the number of retained trees increases (by 40 in my case). This looks like a bug: completion should not be triggering parsing.

This looks like a bug: completion should not be triggering parsing.

This was fixed by memoizing documntation


Odd results

This is in on the DILI iccees, the query is
{"message":{"query_graph":{
  "edges": {
    "e0": {
      "object": "n1",
      "predicates": [
        "biolink:correlated_with"
      ],
      "subject": "n0"
    }
  },
  "nodes": {
    "n0": {
      "ids": [
        "MONDO:0005359"
      ],
      "is_set": False,
      "name": "drug-induced liver injury"
    },
    "n1": {
      "categories": [
        "biolink:DiseaseOrPhenotypicFeature"
      ],
      "is_set": False,
      "name": "Disease Or Phenotypic Feature"
    }
  }
}
}}

i.e. phenotypic features correlated with DILI.
There are things coming back that I'm not sure are phenotypic features?  e.g. sex, racePCA and ethnicity.
  The node normalizer claims that this is a chemical substance, and the description from mesh says:
"a commercially-available herbomineral formulation; contains Prativisha (Aconitum palmatum), Cowrie bhasma, Shankh bhasma, Maricha (Piper nigrum), Vidanga (Embelia ribes), Triphala & Sunthi (Zingiber officinale); do not confuse with Gas-X"
The identifier for race is also wrong, and the one for ethnicity claims to be 'retired'.

Moved to https://github.com/NCATS-Tangerine/icees-api-config/issues/30


Fix grammar

Hey @kumarharsh thank you so much for this. Sorry but past maintainers couldn't maintain it anymore and now we The Guild are maintaining this (see more here https://github.com/dotansimha/graphql-yoga/issues/670) and this is fixed now : ) Would love your feedback on our new docs https://www.graphql-yoga.com


Label mark should take multiple values

The Label mark currently only takes a single x, y and text, ideally it should take many, which would allow the notion of selection and other Mark behaviours

Addressed in #217

This is addressed in #217 as pointed out by @dmadeka


C2001 error on chinese windows and vs2019 when using cmake.

Version:  Branch 1.x(commit 20756b1) or early
Platform: Windows 10 Pro 2004(Chinese)
Compiler: MSVC2019

On chinese windows, cmake project has an error when compile test-idna.c.

If I take advice of #2581, and add following line in cmakelists.txt:
list(APPEND uv_cflags /utf-8 )

This will compile successfully.

Maybe we can add the following line in cmakelists.txt ?
check_c_compiler_flag(/utf-8 UV_LINT_UTF8_MSVC)
set(lint-utf8-msvc $<$<BOOL:${UV_LINT_UTF8_MSVC}>:/utf-8>)
list(APPEND uv_cflags ${lint-utf8-msvc} )

@sanjusss Would you mind opening a PR with that suggestion?

Its a bad idea, /utf-8 option modify execution-charset at the same time, /source-charset:utf-8 option may be better

Its a bad idea, /utf-8 option modify execution-charset at the same time, /source-charset:utf-8 option may be better

It should be a good idea because libuv need utf-8 parameter for filesystem APIs. (On Windows, these utf-8 parameters are reencoded to utf-16 and passed to wide-character Win32 APIs) If you insist on using your local encoding for execution charset, you will encounter some weird problem.


TCP PID always 4

Please see attached screenshot. TCP protocol always has PID 4 , expected is 3492

Hi @mkurkute , this is a known shortcoming documented in the Usage section of the readme, which I've pasted below. Unfortunately there's no practical fix for this problem, because the layer of the network stack at which packets are captured is below the layer at which packets are matched to applications' sockets. So if you use the PID annotations, you have to treat it as a fuzzy signal. (the outbound packets tend to be marked with the correct PID, since they tend to be issued to NDIS in the actual application thread, although even this is not guaranteed.)
[From README.md:]
The output pcapng file will have a comment on each packet indicating the PID of the current process when the packet was logged. WARNING: this is frequently not the same as the actual PID of the process which caused the packet to be sent or to which the packet was delivered, since the packet capture provider often runs in a DPC (which runs in an arbitrary process). The user should keep this in mind when using the PID information.


Update sky.py

Fix the "The number of FixedLocator locations" error

#469 is the correct fix; this one removes one of the radial grid points

#469 is the correct fix; this one removes one of the radial grid points

Closed by #469.

Closed by #469.


CLI / wasm

How do I compile to wasm?  Does cyber CLI have menu? Tried -h, --help, didn't work. The CLI section in doc is very lacking.
thanks

It's cyber help, but I suppose -h and --help should be aliases too. I will also update the CLI docs.
For building wasm, see the build.md. That is for standalone wasm which won't have any interop with web. zig build web-lib will produce the wasm with interop like the playground. In the future it will contain JS promise to Cyber futures and maybe DOM access, so I'd check back in a week or so.

I have added CLI instructions to the docs. Closing, thanks.


5-0-2-stream-sum-of-squares exercise in branch completed doesn't contain an answer.

5-0-2-stream-sum-of-squares exercise in branch completed doesn't contain an answer.

How to get permission to push my own branch and create a correspondent pull request?

Hi. Thanks a lot. We will fix it soon.


Exclude Virtual Directory

Hi there,
I currently have an asp.net core 1.1.1 application hosted on a Windows IIS shared server.
http://www.foo.com

My hosting company has a virtual directory for stats that points off my domain
http://www.foo.com/stats

The issue I'm facing is that /stats thinks it's a route from my asp.net core application. I've tried to exclude the directory through IIS web.config. I'm unsure how to make that virtual directory just process without asp.net core interferring with it?
Can web.config use  to exclude directories?
*Startup.cs
 app.UseFileServer();
            app.UseDefaultFiles();
            app.UseStaticFiles();

            app.UseIdentity();

            app.UseMvc(routes =>
            {
                // Areas support
                routes.MapRoute(
                    name: "areaRoute",
                    template: "{area:exists}/{controller=Home}/{action=Index}/{id?}");

                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });

Web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <clear />
        <rule name="Redirect to https" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
        </rule>
        <rule name="Redirect domain.com to www" patternSyntax="ECMAScript" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^foo.com.au$" />
          </conditions>
          <action type="Redirect" url="https://www.foo.com.au/{R:0}" />
        </rule>
        <rule name="Convert to lower case" stopProcessing="true">
          <match url=".*[A-Z].*" ignoreCase="false" />
          <action type="Redirect" url="{ToLower:{R:0}}" redirectType="Permanent" />
        </rule>
      </rules>
    </rewrite>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="dotnet" arguments=".\foo.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
</configuration>

cc @Tratcher

This issue was moved to aspnet/AspNetCoreModule#123


feat: Mock Api for log event

@rish691 can you add a description, and also link the github issue associated with embedded log events?


is there any evaluation on the difficulty of RocAolphaGo to human ?

We've tested a few policy-networks as standalone players (in other words, no value net or tree search), and we appear to get >65% wins against standard pachi. A very coarse estimate, then, puts it at about a 2k rating (based on Fig 4 of the Silver et al paper).


Fix the Content Visibility in the website for Mobile Users.

As a Contributor to GSSoc'23 I want to address this issue
Issue
As you can see below many parts of the text section is not visible for mobile devices.

Solution
Adding a bit of shadow to the text or changing the position will help the issue to be fixed.

Please assign me this issue so that I can resolve it under GSSOC-23


propose obsolete chaperone-mediated protein transport

GO:0072321   chaperone-mediated protein transport
This is compounding a function and a process. The term is unclear anyway. It has been used to annotate things upsteam of nucleocytoplasmic transport.
I'm not sure that any transport is really chaperone -mediated? chaperones only participate, they don't mediate?

Actually it has 19 annotations, mainly bacterial (only a few human, rat)
But  maybe there is a bacterial process that should be  described this way (but doubtful considering the activity of a chaperone is not to transport?)

What would you use instead to annotate the process described in the paper cited for the def? Diagram in figure 1 ...
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2873164/

GO:0051205    protein insertion into membrane
so
chaperone activity part_of GO:0051205    protein insertion into membrane
A chaperone is  stopping misfolding/aggregation during insertion.
If it is doing both insertion and chaperoning it would also  have
GO:0032977    membrane insertase activity

So lots of processes are chaperone-mediated in that a chaperone (or multiple chaperones are involved). Ribosome assembly, nucleosome assembly, many transport processes. It's just one part of the process though...it seems odd to say "chaperone-mediated"  for a process every time a chaperone is involved.

ping...

Actually, you dealt with it already in the newer ticket so this is now a duplicate...closing.
https://github.com/geneontology/go-annotation/issues/3622

thanks !


Convert Default Context to https

Addresses #60. Converts base type default context to https.
Most of schema.org still points to http://schema.org, so I'm not totally sure the protocol on this. However, the site defaults to https now.

Perfect, thanks!

It seems like all the constants are still using http instead of https for example ItemAvailability::OutOfStock.

@icedevelopment this is caused by the schema RDFA file https://raw.githubusercontent.com/schemaorg/schemaorg/master/data/schema.rdfa which uses http for everything. I would say that they do this to don't introduce a BC.
And because these values are used by the readers I wouldn't recommend to change them.

Ok I see. Thanks for the quick reply.


Add support for ASP.NET Core

In ASP.NET Core 3, Newtonsoft.Json can replace default serializer by installing Microsoft.AspNetCore.Mvc.NewtonsoftJson package and configuring it with AddNewtonsoftJson() method in Startup.fs or Startup.cs
If Thoth can provide similar interface to replace ASP.NET serializer, it'll take away a lot of pain in configuring Thoth JSON in F# web applications written with ASP.NET Core.

Are you using ASP.NET Core directly or via Giraffe?
Because we already provide this kind of support for Giraffe:
https://thoth-org.github.io/Thoth.Json/#Giraffe

@MangelMaxime I meant the stock ASP.NET Core with MVC not Giraffe.

@nirvinm Ok, sorry I am not using .Net daily and so learning a bit of it when people ask for new features :)
I am ok with experimenting for adding support of stock ASP.NET Core.
Do you know how to hooks a custom JsonConverter to ASP.NET Core? Or do you know any documentation about it?
If you want to give it a try I can create a new repo (to host the new library) so you can send a PR to it and work from here together?

@MangelMaxime
Have a look at this
https://github.com/aspnet/AspNetCore/blob/471e4710a818849eaf22c5977281d10fd6758616/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonResultExecutor.cs
Looks like we need to implement IActionResultExecutor that'll convert the result to Json and write it to the Response stream.
Yes it would be great if you can create a new package like Thoth.Json.AspNetCore which will replace the stock serializer with Thoth. I can help you implementing it.

Ok, thank you for the info.
I will create the repo tomorrow and ping you when it's available :)

Hello @nirvinm The repo is available here

@MangelMaxime Thanks for creating the repo. I'm not an expert either in this area, so give me a couple of days so I can try implementing it.

Kamino closed and cloned this issue to thoth-org/Thoth.Json.AspNetCore


Integrate travis

Travis supports CD capability.
http://docs.travis-ci.com/user/deployment/npm/
Instead of forgetting to publish manually, this should be enabled. Here's our GitFlow workflow:
Development occurs in the develop branch.
New Pull Requests must be to to be merged against this branch. However, Pull Requests will only be reviewed If the pull request can be merged and the tests passes. Also, the milestone must be set to the associated Issue.
After a new release has been planned, all the merged pull requests can be released.
On a new release, Tagging is added, the version is bumped in package.json and the Develop branch will be merged to Master, triggering the npm publish on Travis.

@charithsoori It looks like this is solved. Could you close it or remove the hacktoberfest label?

Done.


Date Calculator showing wrong result in some instances when only one field is changed

The calculator app shows difference between yesterday and today as same

Open calculator and change to date calculation.
By default, From and To are populated to Today's date.
Change From to yesterday.

You will notice that the date difference is still "Same dates" which is incorrect. See screenshot. It looks like the bug repros when you change only one of the fields - either From or To. When both are changed, it appears to be working correctly.

@grochocki Hey, I tried what you referenced in last comment. But , for me it is working fine. Can you give some more clarity on this issue as it seems working fine for me?

Yea, I originally had a hard time reproducing the problem myself. Try this (which seems to work for me):

Open Calculator, navigate to "Date Calculation" page, and then close the app (the app remembers the last mode you used and will launch into that mode)
Change "From" to yesterday.
Notice that the reported difference is still "Same dates", despite the answer being "1 day".
If you change "To" to anything, including setting the same value, the difference is displayed properly.


Python 3.12, versioneer build failure

versioneer.py attempts to use configparser.SafeConfigParser which has been deprecated for a long time, and now removed in Python 3.12, causing build to fail.
Upgrading versioneer to a newer version would seem likely to fix this: https://github.com/python-versioneer/python-versioneer/issues/200

Moved to Poetry Dynamic Versioning with V2.0.0 release


the Upgrade to Space Cloud Pro is avaliable！！

the Upgrade to Space Cloud Pro is avaliable！
i use space cloud miss-control opensource v0.17.0
when i chick https://console.spaceuptech.com/mission-control respone
is error page
How can we solve it?

Hey. We haven't released the pro version yet. Also where did you get that link? It doesn't really exist.
We should be releasing the pro version around this weekend. I'll update you here once it's out.

thks! How to configure persistent data with open source version v0.17
Now there is a problem. Every time the container is restarted, the previously configured data will be lost

Make sure you install SC using this guide: https://docs.spaceuptech.com/install/

The enterprise version of Space Cloud has been officially released!
Visit https://console.spaceuptech.com for more details.


Issue #616: Remove ESLint plugin json

Plugin has not detected any warnings yet, however it adds 10X overhead to eslint run time.
resolves #616
Contributor License Agreement adherence:

[x] This Contribution is under the terms of Individual Contributor License Agreements (and also Corporate Contributor License Agreements to the extent applicable) appearing in the Apereo CLA roster.

Really it's just slowing down on all the json files it needs to lint in the mock portal.  I'd rather just add
--ignore-pattern angularjs-portal-mock-portal

@davidmsibley that works as well. :+1:
PR has been updated with ignore pattern


move lai & pl as install extras

Before submitting

[x] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[x] Did you write any new necessary tests?

What does this PR do?
Fixes #26
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

pending on https://github.com/Lightning-AI/utilities/pull/137


Allow creating a policy for an existing S3 bucket

what

Fix creating a S3 bucket policy when using an existing S3 bucket.

why

The code was only considering the bucket object managed by this module.

references

Closes #152.

/test all

@nitrocode I can't make complete sense out of the errors pointed by CI. Would you give me a hint at how to fix these?

Try the following to kick off the build
git commit --allow-empty
git push -f

@nitrocode No luck. The log complains it can't push to my repo, or so it looks like:
+ git push
remote: Permission to continuumvip/terraform-aws-cloudfront-s3-cdn.git denied to cloudpossebot.
fatal: unable to access 'https://github.com/continuumvip/terraform-aws-cloudfront-s3-cdn/': The requested URL returned error: 403

Should the bot really be trying to do that?

Yes it should as that's how the Auto Format works. It clones your repo, checks if formatting is necessary, and then pushes up any changes.
You can format the code yourself and it will bypass that bot if you like or you can give your fork permission to the cloudposse bot.

(...) or you can give your fork permission to the cloudposse bot.

Cool, that makes sense. I have invited the bot to the repository as a contributor, it's pending the invite. Can you please accept it and let me know so we can try triggering CI again? Thanks!

Anything I can do to help on this PR? Would looove to pull these changes in :)

@pearsonhenri I think we need Cloudposse to accept the invite to their bot account so it can push to the fork, or a volunteer to set up their linting environment locally and contribute with the necessary changes -- sorry I don't have time to do the latter. Right now this is basically how I'm using this module and it's fine:
module "my_cdn" {
  # source = "cloudposse/cloudfront-s3-cdn/aws"
  # version = "0.59.0"
  source = "github.com/continuumvip/terraform-aws-cloudfront-s3-cdn?ref=2f24a73"
  ...
}

/test all

@emyller you can run the formatting code yourself by doing the following:
make init
make pr/auto-format

Then commit your changes and push the result and that should get this passed that annoying auto-format bit.
Apologies for the delay, please ping me directly once you've done the above steps or post in #pr-reviews in the SweetOps Slack and somebody else will get to it.

/test all

Then commit your changes and push the result and that should get this passed that annoying auto-format bit.

Thanks @Gowiem. Can you please re-add your review?

/teset all

/test all

Thanks for the contribution @emyller! Released as 0.62.0.

Yay thanks y'all!


linux-raspberrypi: bump to Linux version 5.4.72

Tested on CM3, dunfell branch
## Booting kernel from Legacy Image at 00080000 ...
   Image Name:   Linux-5.4.72-v7
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6062056 Bytes = 5.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 2eff9200
   Booting using the fdt blob at 0x2eff9200
   Loading Kernel Image
   Using Device Tree in place at 2eff9200, end 2f002f3f

Starting kernel ...

I also verified that the bleeding tooth proof of concept does not work anymore https://github.com/google/security-research/security/advisories/GHSA-h637-c88j-47wq

@agherzan Is there something I can do to get this merged into the dunfell branch?

Doing now a backport MR.

It will come in through https://github.com/agherzan/meta-raspberrypi/pull/754


Some questions about the default install environment.

I think these lines are not appropriate. When develop or modify the tuner in the nni/src/sdk/pynni and tools directory, the default command source install.sh does not meet this demand. I suggest that it should mention make dev-install in the README.md though it doesn't work sometimes.
When I install the nni environment, I find that bash is the default shell while I use zsh as my productive tool. So I often get confused by the install output.
Another question is that  I find there are a lot of the same line in the file ~/.bash_completion when I install the nni for many times.

@Crysple  please double check whether the installation still needs source ~/.bashrc.

When I install nni in my environment and reload my bash, I often meet with the problem below.
: command not found
: command not found
: command not found
: command not found
: command not found
bash: /home/XXX/.bash_completion.d/nnictl: line 31: syntax error near unexpected token `$'\r''
'ash: /home/XXX/.bash_completion.d/nnictl: line 31: `__nnictl_remain_args()


Renamed CorrelationKeyFactory method parameter

Current method parameters looks inconsistent, can look like method with "properties" parameter set something different than method with businessKey parameter.
"properties" is list of business keys so I think that renaming it will make methods functionality and their relation more understandable.

merged into master, thanks @sutaakar


Move preload.php example to starter app

Follow-up #5974
@kenjis per our discussion on slack.
Checklist:

[x] Securely signed commits

@samsonasik Thanks!


Update to @atomist/rugs 1.0.0-m.5 once it's released

This will finish slack rendering migration to @atomist/slack-messages

Done


inner nav padding fix

https://github.com/AugurProject/augur/issues/4632

feature peek, saw some padding issues with market list section.

thats not related to this change but ill put a fix on this branch


chore(RHTAPWATCH-546): Updated go toolset version to 1.20

Updated Go toolset for UBI 9 to version 1.20.10 which contains the fix for CVE-2023-44487.
Jira-Url: https://issues.redhat.com/browse/RHTAPWATCH-546
Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Tested locally
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key (if applicable)
[ ] I have updated labels (if needed)

@hmariset have you verified this works by running all the available tests?

@hmariset have you verified this works by running all the available tests?

@amisstea yes, I have run all the tests. The tests in splunk folder are failing when building image due to the issues I have with my system. All other tests are passing.

#109 got merged, please rebase and upgrade the image used in CI as well

@ifireball @amisstea I have rebased the code and have run the unit tests, it's working fine.

@hmariset missing update to the image used in CI.

@hmariset missing update to the image used in CI.

@ifireball updated the image in CI as well now. Please check again


add support for hygon tpm/tcm

esys: add SM4 algorithm support
add ecc encrypt/decrypt support
add support for udev to create tcm devices

/test all


Fixed broken link

thanks for the pull request - but this branch is no longer maintained, so merged your other pull request for the stable branch into the actively maintained branch 'stable' :) - thank you very much!


strange results with polynomial kernel

Hello,
For some reason I get very strange classifications with polynomial kernel. I have 966 training instances and 518 test instances. With polynomial kernel I have only negative classifications. With any other kernel I have different results with small variance (accuracy is approximately 35%).
The problem is I don't understand why polynomial kernel gives these non-meaningful results. How I can debug it?

Did you do a grid search to find the optimal kernel parameters?


converting pcategories and privacy page code to tailwindcss

For #659
converting pcategories and privacy page code to tailwindcss

@s2sharpit can you give a ss or preview these pages?

https://informatician-git-tailwindcss-s2sharpit.vercel.app/


In kubernetes calico removes existing ipPool routes when pool disabled with calicoctl

When existing pool is disabled all internode routes are removed with only routes to pod addresses on the node and other enabled ipPool routes.
Expected Behavior
When ipPool is disabled using calicoctl that stops calico from assigning new pods addresses from said pool, but all existing assigned addresses are routed and reachable.
Current Behavior
The moment the ipPool is disabled all internode routes are removed immediately thus denying all internode communication.
Possible Solution
Normal and expected behaviour is as designed, leave the routes on until ipPool is deleted.
Steps to Reproduce (for bugs)
Not sure this is reproducible, but what I did was:

Install calico with migration manifest, adding "can-reach" method for ip autodetect.
Migrate using migration job manifest all pods and nodes from flannel 0.12
Update calico manifests using standard calico install - the only difference is ipip is enabled and liveness and readiness probes now check on bird daemon (diff showed only these as different)
Added ipip pool to move off vxlan
All hell broke lose.
Removed said ipip pool,  all went back to normal

Context
Tried to update existing flannel enabled cluster to same configuration of freshly installed calico ipip cluster.
Your Environment
Small on premise kubernetes cluster of 12 nodes

Calico version = 3.14.1
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes 1.17.6
Operating System and version: Debian 10.4

This is what a node in the cluster looks with single pool configured:

This is what happens when another pool is added:

Now to disable the first pool (used for all the pods):

Even if currently used pool is re-enabled, routes are still missing:

And if new pool is disabled:

routes re-appear when all other pools are removed:

I think this is probably a bug specifically with VXLAN IP pools, which are implemented in Felix rather than in confd / BIRD (that's why disabling the IPIP pool doesn't remove the routes).

@prezhdarov FWIW, you should just be able to modify your existing IP pool to use IPIP instead of VXLAN without needing to disable it. Just modify ipipMode: Always and vxlanMode: Never.


Bug: Field Type Multiselect not displayed after update

All my Field Type Multiselect it aren't displayed in the frontend after the update from 0.8.7 to 0.9.3.
My configuration:

Frontend:

Version used: 0.9.3

Fixed. Caused by an old version of the Moderation Addon. It works form me with Moderation 1.4


Segmentation fault on Python 3.6 when running GStreamer on OSX

Issue
I want to run an image processing pipeline that uses GStreamer to grab images from various video sources - files, RTSP, TCP GST streams, UDP streams, etc. I am trying to run the following code:

import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
Gst.init(None)
source = Gst.ElementFactory.make("videotestsrc", "source")

This last line fails with SIGSEGV when I run it on OSX.
I have tried on my machine, on a colleague's machine, running 10.12 and 10.9 respectively - same error. I tried running it on three different skews of Raspberry Pi and two different Linux machines - works like a charm! So it seems like it is an OSX only issue. Working with the team maintaining pygobject, we have isolated the issue to just the conda implementation of pygobject.
This is a copy of my Stack Overflow post: https://stackoverflow.com/questions/49415335/segmentation-fault-on-python3-6-and-gobject-on-osx
And of my gitlab issue on the pygobject tracker:
https://gitlab.gnome.org/GNOME/pygobject/issues/183
To reproduce

brew install gstreamer gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-plugins-base
conda create -n StackOverflowDisposableEnvironment python=3.6
conda install pygobject
export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0/

Thanks for the detailed report! I think this is very unlikely to make a difference, but FYI in a little while we will push out an update of the package to the newest released version, 3.28.2.

Getting the  issue segmentation fault 11 when using Gst.ElementFactory.make with PyGObject-3.36.1


Getting exception when trying to use secrets manager: TypeError: s3_key_response_put() missing 1 required positional argument: 'headers'

I am trying to run localstack. I am installing on a docker the following packages:
RUN pip3 install 'moto[all]' flask-cors h11 hypercorn quart readerwriterlock cbor2 cachetools crontab localstack jsonpatch boto
RUN \
  (SERVICES=s3,secretsmanager,sqs,sns localstack start --host 2>&1 | tee /tmp/log &) ; \
  for waitForDone in `seq 1 300`; do \
  sleep 1; \
  (tail /tmp/log | grep '^Ready\.$') && exit 0; \
  done; \
  if [ $waitForDone -eq 300 ]; then echo "TIMEOUT waiting for localstack"; exit 1; fi; \
  rm /tmp/log ; \
  killall localstack ; \
  exit 0

It installs currently moto[all] version 3.1.0
Then, when running in golang the following code:
_, _ := ds.s3Client.PutObject(
	context.TODO(),
	&s3.PutObjectInput{
		Key:    "key",
		Bucket: "bucket",
		Body:   Body:   bytes.NewReader([]byte("{}")),
	})

Throws the following excpetion:
2022-03-15 07:48:47,110:API: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 324, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 313, in execute
    application_iter = app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/moto/moto_server/werkzeug_app.py", line 240, in __call__
    return backend_app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2091, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2076, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/patch.py", line 35, in proxy
    return new(target, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/aws/request_context.py", line 163, in convert_to_flask_response_call
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/moto/core/utils.py", line 127, in __call__
    result = self.callback(request, request.url, dict(request.headers))
  File "/usr/local/lib/python3.9/dist-packages/moto/core/utils.py", line 261, in _wrapper
    response = f(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/moto/s3/responses.py", line 1082, in key_response
    response = self._key_response(request, full_url, self.headers)
  File "/usr/local/lib/python3.9/dist-packages/moto/s3/responses.py", line 1170, in _key_response
    return self._key_response_put(request, body, bucket_name, query, key_name)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/patch.py", line 35, in proxy
    return new(target, *args, **kwargs)
TypeError: s3_key_response_put() missing 1 required positional argument: 'headers'
2022-03-15 07:48:47,110:API: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 324, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 313, in execute
    application_iter = app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/moto/moto_server/werkzeug_app.py", line 240, in __call__
    return backend_app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2091, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2076, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/patch.py", line 35, in proxy
    return new(target, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/aws/request_context.py", line 163, in convert_to_flask_response_call
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/moto/core/utils.py", line 127, in __call__
    result = self.callback(request, request.url, dict(request.headers))
  File "/usr/local/lib/python3.9/dist-packages/moto/core/utils.py", line 261, in _wrapper
    response = f(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/moto/s3/responses.py", line 1082, in key_response
    response = self._key_response(request, full_url, self.headers)
  File "/usr/local/lib/python3.9/dist-packages/moto/s3/responses.py", line 1170, in _key_response
    return self._key_response_put(request, body, bucket_name, query, key_name)
  File "/usr/local/lib/python3.9/dist-packages/localstack/utils/patch.py", line 35, in proxy
    return new(target, *args, **kwargs)
TypeError: s3_key_response_put() missing 1 required positional argument: 'headers'

I mitigated the issue by reverting moto[all] to version 3.0.7.
I am pretty sure that the commit that caused this issue was https://github.com/spulec/moto/pull/4929/files#diff-a14f7ca014b23638947c5f417dacb9a4d59eef3aee9a8041e2c855e8587643cdL1176
I'd be happy to contribute a fix if that is welcome by you :)

Hi @toshetah, it's probably better to raise this with Localstack. That commit is definitely the reason it fails now, but the root cause is the fact that Localstack calls Moto's internal methods with the wrong variables.
See this file: https://github.com/localstack/localstack/blob/5e6162ff4c0880634d4fceacc525a4249f038fb5/localstack/services/s3/s3_starter.py
All these @patch-ed methods would need updating, not just the s3_key_response_put-method.

Looks like LocalStack are already on this, judging from this PR: https://github.com/localstack/localstack/pull/5706
They are using a fork of Moto behind the scenes, so it may be worth using that instead to ensure full compatibility with Moto: https://pypi.org/project/moto-ext/


pythonPackages.block-io: fix incorrect dependency version

Motivation for this change
This should also be backported to 19.03 to fix the build
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@dotlambda could you backport it to 19.03 ?

done in 0ef2bffe5bef00d7870821e8802f1da503bdade5

Thanks !


Cheatcode Documentation Revision

Hi,
I have made some revisions to the cheatcodes section following this discussion on Twitter with Bjerg.
Why did you make these changes?
I felt that there wasn't sufficient documentation surrounding the forge-std 'cheatcodes', which was weird considering they're meant for DX improvements.
What did you do?

Refactored parts of the document to make it easier to read
Added in a section explaining how to exclude the cheatcode address from fuzz testing (this and the precompile addresses personally cost me 3 days of dev time when I was learning Foundry, luckily a fellow dev explained what I needed to do)
Added a link to the Forge Standard Library 'cheatcodes' directly from this document
Added a link to the forge-std GitHub for those who want to see how the 'cheatcodes' work under the hood, to avoid confusion

What is controversial about this?
Calling the forge-std functions 'cheatcodes' is a bit controversial since technically they're just fancy wrappers, so I tried to make that clear in my revision.
Explaining how to use vm.assume to exclude the cheatcode address might be a bit controversial since it's not technically in the same theme as cheatcodes (the topic) but this is the most prominent mention of the cheatcode address (0x7109709ECfa91a80626fF3989D68f67F5b1DD12D) and so where someone encountering an error with this address would end up when searching the docs.
Let me know what you guys think.
Cheers,
Arby

Okay have done these lmk if there is anything else.
Arby

@all-contributors add @The-Arbiter for docs


FRED History is Empty in Live Trading

Expected Behavior
We can query FRED historical dataset via History
Actual Behavior
Works as expected in backtests. However a recent update to LEAN (~1-2 weeks) makes the history request empty when deploying to live servers.
Reproducing the Problem
from AlgorithmImports import *

class SleepyAsparagusKangaroo(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2018, 1, 1)
        self.SetEndDate(2018, 1, 15)
        self.SetCash(100)

        # Subscribe to FRED data
        fredData = [ Fred.CBOE.VIX ]
        self.fredSymbols = [ self.AddData(Fred, dataset, Resolution.Daily).Symbol for dataset in fredData ]

        self.TestMethod()

    def OnData(self, data):
        return

    def TestMethod(self):
        df = self.History(self.fredSymbols, timedelta(days=30), Resolution.Daily)
        self.Log(df)
        self.Quit()
        return

Logs
In backtests (works as expected):
                           datasourceid  value
symbol         time
VIXCLS.Fred 2S 2017-12-05          2010  11.68
...

In live trading (empty dataframe regardless of the time period requested):
Empty DataFrame
Columns: []
Index: []

System Information
QC Cloud; LEAN master v14221

Hey @AdamWLabs! Thanks for the report, this has been fixed in lean version 14233


Sync update form NLPIR

Update dll from this commit:
https://github.com/NLPIR-team/NLPIR/commit/c635f15d8e0a48ea72424bd1e0c38aaef7248d01

KeyExtract
NewWordFinder
SentimentNew

key_extract header, win32 , win64
new_word_finder, win64
sentiment_new, win32, win64

request :

key_extract, linux 32 ,linux 64
new_word_finder, linux32, linux64
sentiment_new, linux32, linux64
from https://github.com/NLPIR-team/NLPIR @Dr-Kevin-Zhang

Update linux64 for key_extract, new_word_finder, now need:

key_extract, linux 32
new_word_finder, linux32
sentiment_new, linux32, linux64


BinArray: Add repack functionality.

This change is

Pull Request Test Coverage Report for Build 63

87 of 87 (100.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 58:
0.0%

Covered Lines:
542

Relevant Lines:
542

💛  - Coveralls

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

binflakes/types/array.py, line 287 at r1 (raw file):

    __rmul__ = __mul__

    def repack(self, to_width, *, from_msb, length=None, start=0, start_bit=0):

IMO more logical order for arguments is start=0, start_bit=0, length=None (yeah, I know it doesn't matter in the user's code because they are named-only, but the declaration will look nicer)

Comments from Reviewable

Review status: 1 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending.

binflakes/types/array.py, line 287 at r1 (raw file):
Previously, mkow (Michał Kowalczyk) wrote…
IMO more logical order for arguments is start=0, start_bit=0, length=None (yeah, I know it doesn't matter in the user's code because they are named-only, but the declaration will look nicer)

Done.

Comments from Reviewable

Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Array API: port straightforward functions in fields

Is Your Feature Request Related to a Problem? Please Describe

[ ] fields.iternorm
[ ] fields.cls2cov
[ ] fields.multalm
[ ] fields.getcl
[ ] fields.effective_cls

Describe the Solution You'd Like
No response
Describe Alternatives You've Considered
No response
Additional Context
No response

Blocked by #269


Change lua/jj to lua/telescope-jj

Having the code at lua/jj makes this package use require("jj"). It should be lua/telescope-jj for require("telescope-jj") to not interfere with any future jj plugin.

Makes sense - I’m out of town for the next week so I’ll take a closer look when I am back. Thanks for the help I appreciate it!

I've opened a PR to do this change: https://github.com/zschreur/telescope-jj.nvim/pull/7


Fix Shoot resource finalization for Kubernetes < v1.14

What this PR does / why we need it:
For Kubernetes < v1.14 the deletionTimestamp is updated (moved to the future) in each DELETE request - ref kubernetes/kubernetes#83771. Our finalization logic uses the deletionTimestamp to check whether a finalizationGracePeriod is passed since the initial deletion and if yes - then finalize the resouces, otherwise delete the resources again. These subsequent deletions move the deletionTimestamp forward and in this way the finalizationCheck never becomes true.
Steps to reproduce:

Create a Shoot with Kubernetes version < 1.14 (for example 1.13.11)
Create a deployment with a finalizer in the Shoot.
Trigger Shoot deletion.
Ensure that the deployment deletionTimestamp is periodically moved forward and it cannot be finalized. I.e the Shoot deletion is blocked.

The PR prevents subsequent DELETE request if the resource already has deletionTimestamp.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/cc @vpnachev
Release note:

An issue with unsuccessful finalization of Shoot resources for Kubernetes < v1.14 is now fixed.

We have to file one more DELETE request after the finalizers patch as CRDs and namespaces are not removed from store when deletionTimestamp is set and the finalizers are patched to [] for Kubernetes < v1.15.
Ref kubernetes/kubernetes#84354


Unable to deserialize gateway ready event due to missing fields

Hello, I was just testing the hello world example (https://github.com/twilight-rs/twilight/blob/main/examples/gateway-request-members.rs) and ran into an issue with the ready event not being deserializable. twilight expects two fields to be present that were not in my case, the following changes fixed it for me:
diff --git a/twilight-model/src/gateway/payload/incoming/ready.rs b/twilight-model/src/gateway/payload/incoming/ready.rs
index 3808e9d1e7..19e354620b 100644
--- a/twilight-model/src/gateway/payload/incoming/ready.rs
+++ b/twilight-model/src/gateway/payload/incoming/ready.rs
@@ -5,7 +5,8 @@ use serde::{Deserialize, Serialize};

 #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
 pub struct Ready {
-    pub application: PartialApplication,
+    #[serde(skip_serializing_if = "Option::is_none")]
+    pub application: Option<PartialApplication>,
     pub guilds: Vec<UnavailableGuild>,
     pub resume_gateway_url: String,
     pub session_id: String,
@@ -43,10 +44,10 @@ mod tests {
         ];

         let ready = Ready {
-            application: PartialApplication {
+            application: Some(PartialApplication {
                 flags: ApplicationFlags::empty(),
                 id: Id::new(100),
-            },
+            }),
             guilds,
             resume_gateway_url: "wss://gateway.discord.gg".into(),
             session_id: "foo".to_owned(),
diff --git a/twilight-model/src/guild/unavailable_guild.rs b/twilight-model/src/guild/unavailable_guild.rs
index f4689e53e3..6198e5af91 100644
--- a/twilight-model/src/guild/unavailable_guild.rs
+++ b/twilight-model/src/guild/unavailable_guild.rs
@@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
 #[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
 pub struct UnavailableGuild {
     pub id: Id<GuildMarker>,
+    #[serde(default)]
     pub unavailable: bool,
 }

diff --git a/twilight-standby/src/lib.rs b/twilight-standby/src/lib.rs
index c61dbcd2b9..d285811062 100644
--- a/twilight-standby/src/lib.rs
+++ b/twilight-standby/src/lib.rs
@@ -1366,10 +1366,10 @@ mod tests {
     #[tokio::test]
     async fn test_wait_for_event() {
         let ready = Ready {
-            application: PartialApplication {
+            application: Some(PartialApplication {
                 flags: ApplicationFlags::empty(),
                 id: Id::new(1),
-            },
+            }),
             guilds: Vec::new(),
             resume_gateway_url: "wss://gateway.discord.gg".into(),
             session_id: String::new(),

And a similar issue with PRESENCE_UPDATE, missing field guild_id, payload: {"t":"PRESENCE_UPDATE","s":3,"op":0,"d":{"user":{"username":"SimonK","id":"834727964247457802","global_name":null,"discriminator":"3218","avatar_decoration":null,"avatar":"0ed452de979d05d3be21f7a6549ba4ac"},"status":"offline","last_modified":1685661311926,"client_status":{},"broadcast":null,"activities":[]}}

I wasn't able to pinpoint what exact fields needed fixing for the presence update but I got it to work by adding #[serde(default)] to all pub guild_id: Option<Id<GuildMarker>> fields: https://github.com/rksm/twilight/commit/1ac78cb1fca1a402b57940cca174d186e015b88a

And one more: 2023-06-03T01:05:25.614067Z  WARN midjourney_api_v2: error receiving event gateway event could not be deserialized: source=missing field application_id at line 1 column 101, event={"t":"INTERACTION_CREATE","s":3,"op":0,"d":{"nonce":"1664800419089616897","id":"1114359151653568552"}}
It seems the fields token, type and application_id are all optional: https://github.com/rksm/twilight/commit/f5a7f561b8c14908abaed50740c318564a4255a5

And one more: 2023-06-03T01:05:25.614067Z WARN midjourney_api_v2: error receiving event gateway event could not be deserialized: source=missing field application_id at line 1 column 101, event={"t":"INTERACTION_CREATE","s":3,"op":0,"d":{"nonce":"1664800419089616897","id":"1114359151653568552"}}
It seems the fields token, type and application_id are all optional: rksm@f5a7f56

Hmm that seems to go against what the documentation tells us https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure

For the background, I'm using twilight to interact with the midjourney bot. When posting a new /imagine interaction, the InteractionCreate event that comes back just contains an id and none field. twilight parses this as
InteractionCreate(
    InteractionCreate(
        Interaction {
            app_permissions: None,
            application_id: None,
            channel: None,
            channel_id: None,
            data: None,
            guild_id: None,
            guild_locale: None,
            id: Id<InteractionMarker>(1114365312637337740),
            kind: None,
            locale: None,
            member: None,
            message: None,
            token: None,
            user: None,
        },
    ),
)

For the background, I'm using twilight to interact with the midjourney bot. When posting a new /imagine interaction, the InteractionCreate event that comes back just contains an id and none field.

Does that mean that you are using it with a user token instead of a bot token?

Yes, I do.

We generally only support the bot API, any other usage will be largely unsupported. As it is not documented and is against the Terms of Service of Discord.

So what about the remaining deserialization issues?

So what about the remaining deserialization issues?

Do they happen when you connect with a bot token?

I have no idea but this is about #[serde(default)] annotations of already optional fields. This stuff breaks because those fields are expected but not present.

Because they are documented to always be present when connecting with a bot user:
https://discord.com/developers/docs/topics/gateway-events#ready-ready-event-fields
https://discord.com/developers/docs/resources/guild#unavailable-guild-object
https://discord.com/developers/docs/topics/gateway-events#presence-update-presence-update-event-fields
If you run into issues while connected with a bot account let us know.

Sorry to hear that. Anyway, thanks for your time.

Userbotting is against ToS of both Discord and Midjourney, and is grounds for a permanent ban

signed Midjourney dev

Maybe put a reasonable UI on it then?


Fix javascript error when entering cell edit mode

Hiya @steveswinsburg - any reason why those lines needed to be commented out?  The Javascript unfortunately relies on that data-studentUuid so it can identify the target cell when handling the Wicket  AJAX events :tired_face:

Sorry that was my bad on last nights commit, good catch. Will merge shortly.
On 31 Mar 2015 11:10, "Payten Giles"<EMAIL_ADDRESS>wrote:

Hiya @steveswinsburg https://github.com/steveswinsburg - any reason why
those lines needed to be commented out? The Javascript unfortunately relies
on that data-studentUuid so it can identify the target cell when handling
the Wicket AJAX events [image: :tired_face:]
You can view, comment on, or merge this pull request online at:
https://github.com/steveswinsburg/gradebookNG/pull/31
Commit Summary

Reinstate data-studentUuid and CSS class gb-student-cell on student
cell so javascript can identify rows and sync with anonymous wicket events

File Changes

M
tool/src/java/org/sakaiproject/gradebookng/tool/pages/GradebookPage.java
https://github.com/steveswinsburg/gradebookNG/pull/31/files#diff-0
(4)

Patch Links:

https://github.com/steveswinsburg/gradebookNG/pull/31.patch
https://github.com/steveswinsburg/gradebookNG/pull/31.diff

—
Reply to this email directly or view it on GitHub
https://github.com/steveswinsburg/gradebookNG/pull/31.


Refactoring of GraphHopperStorage to fix #111

This pull request is a major rewrite of some core parts of GraphHopper (storage and access of CHGraph, old name LevelGraph). This fixes #111. E.g. GraphHopperStorage now contains graphs like base graph and a ch graph which will allow for the physical separation of edges and shortcuts.
Currently there are the following steps before we can merge this:

[x] merge master into this
[x] rename LevelGraph* to CHGraph*
[x] separate node_ch_refs for CHGraphImpl to avoid base graph going through shortcuts
[x] test with none CH algo on prepared graph should pass now
[x] make base graph see only its edges (no shortcuts). edge count for level graph and base graph should change (e.g. getAllEdges.count)
[x] all tests should pass now
[ ] fix all TODOs in the source code, and can we add edges count to locationindextree.calcChecksum? And can we avoid requiring the GraphHopperStorage and use a Graph instead in DijkstraBidirectionCHTest.createFactory
[ ] fix some bugs uncovered while refactoring, but do this in different issues
[x] separate shortcut DataAccess in CHGraphImpl

Later we can also have multiple ch graphs but for that we should create a new issue besides #339
Some bugs uncovered while refactoring:

[ ] setNodesHeader returns wrong used header size
[ ] internalEdgeDisconnect -> use N_EDGE_REF for nodes.setInt
[ ]  bug if next is called after setAdditionalField? if (extStorage.isRequireEdgeField()) iter.setAdditionalField(extStorage.getDefaultEdgeFieldValue());
[x] bug in test testFindShortcuts_Roundabout regarding skipped edges of shortcut 6,4
[ ] bug in alledgeiterator detach => reverse can be incorrectly set if detach(false) and reverse=true
[x] bug in alledgeiterator found: while iteration edgepointer can get bigger than valid edges and if it would be compacted then even array index out of bounds would get thrown
[ ] here it should be getNodes instead of getCapacity! removedNodes = new GHBitSetImpl((int) (nodes.getCapacity() / 4));
[ ] shouldn't we throw an exception in CHGraphImpl instead of returning? public final void setLevel( int nodeIndex, int level ) { if (nodeIndex >= baseGraph.getNodes()) return;

(where marked they are fixed in the pull request but not master yet)

Thanks Peter for providing also a summary of API changes in changelog, it helps studying the code changes.

If you find something you do not understand, please let me know!
Also this is now different and needs to be changed:

call GraphHopperStorage.getBaseGraph(). To do routing with potentially shortcuts you call GraphHopperStorage.getGraph(encoder)

to "GraphHopperStorage implements now the Graph interface and delegates all necessary methods to the underlying base graph. To do routing you call getGraph(LevelGraph.class or Graph.class) where the parameter Graph.class currently returns the base graph and the behaviour is identical to GraphHopperStorage itself" (this is the convenient change I mentioned in the other issue)

The additional refactoring for #339 will be done in a separate step. Now finalizing before like improving readability and performance checks.
Also to all: as all tests pass please review.
While refactoring I found some bugs

[x] (fixed in branch+master) bug in test testFindShortcuts_Roundabout regarding skipped edges of shortcut 6,4
[ ] bug in alledgeiterator detach => reverse can be incorrectly set if detach(false) and reverse=true
[x] bug in alledgeiterator found: while iteration edgepointer can get bigger than valid edges and if it would be compacted then even array index out of bounds would get thrown
[ ] here it should be getNodes instead of getCapacity! removedNodes = new GHBitSetImpl((int) (nodes.getCapacity() / 4));

(where marked they are fixed in the pull request, only the first is also fixed in master too)
An open question is: move the BaseGraph implementation back into GraphHopperStorage to make everything simpler?

An open question is: move the BaseGraph implementation back into GraphHopperStorage to make everything simpler?

And what about chGraph?

And what about CHGraph?

CHGraph will stay separate. But moving BaseGraph back would have the advantage of avoiding the method delegation in GraphHopperStorage to the BaseGraph. Although I like the separation of storage and traversal stuff... but CHGraph currently also mixes storage and traversal :)

Ok you're probably right here.

You mean moving it back into GraphHopperStorage? Just asking again as I'm still unsure ... probably I'll let if for now as it is until we find a reason pro or contra?

You mean moving it back into GraphHopperStorage?

Yes. I'm a bit sceptical about GraphHopperStorage hosting both types of graphs.
With the change it will be Base itself and still contain the CH?

I'm a bit sceptical about GraphHopperStorage hosting both types of graphs.

What do you mean? Or what do you think could improve the situation? Keep in mind that we'll need in the near future multiple chGraphs managed by the GraphHopperStorage. But via ghstorage.getGraph(class) it should be very simple to extend for more purposes or even other algorithms.

With the change it will be Base itself and still contain the CH?

Yes, this would be a bit uglier design-wise but simpler.

I'm fine with current PR implementation.

With the change it will be Base itself and still contain the CH?
Yes, this would be a bit uglier design-wise but simpler.

Here I had second design thoughts but as you said it'll be simpler, so it's ok.

Well I suppose (depending on ram) it could work.
Sorry not having something usable in mind right now.

Some numbers for the area 'Germany': 15% less storage and therefor RAM - as expected :) !
Routing same speed. But strangly CH routing is 20% slower, also preparation is 18% slower. To be investigated

:+1:
What algorithm, bidirectional Dijkstra ?

Yes, to better compare CH and none-CH I've picked bidir dijkstra in both cases -> See the measurement class (or graphhopper.sh measurement area.pbf)

Although I only slightly improved the speed situation I'll merge this request soon as there are many advantages.
disadvantages, higly likely due to the additional EdgeAccess layer:

12% slower CH preparation
12% slower CH routing

advantages:

10% less storage/RAM used
5% faster routing, but highly likely via an unrelated change https://github.com/graphhopper/graphhopper/commit/3b197460a3a9aabb1dd5e8f47e47ef58bf49e668
separated edges from shortcuts storage, as well as CH entries (nodesCH) from normal traversal entries (nodes), allowing us to add multiple CH profiles in the near future
making other speed-up techniques easier pluggable in the future
better architecture via composition (EdgeAccess, CHGraphImpl and BaseGraph) instead of extension (LevelGraphStorage extends GraphHopperStorage)

I follow your code changes so :+1: for that.

@devemux86 thanks for the feedback!
BTW: It would be now also possible to revert the speed we lost with #338 but we would need to introduce two integers for additional ch refs in the normal edges DataAccess storage, and the levels per node could be removed. Leading to a slight RAM increase of ~0.5GB = (2-1)*0.5GB for the world wide case. Then we could entirely avoid the LevelEdgeFilter for normal edges too, giving us a rough boost of 15-20%
BTW2: The levels should not be removed (although no longer needed right now). Instead we should just avoid to load them into RAM. Because when edge weights change and we need to recreate the CH profile the levels could then be reused and the CH preparation could be a lot faster then - at least from what I know from papers.

Peter I started playing with latest GH code.
I see with this PR old graphs do not work, right?

Yes, because there is now a separate shortcuts and edges storage. Any problems I didn't think about with this :) ?

I try all the cases (e.g. loading a CH graph with a non CH config) and I see the same error message, let me conclude my tests and come back.

Yes I think something is not right (or I'm doing wrong!).
I have created a CH graph and I'm able to load it with graphHopper.setCHEnable either true or false.

That is like it should be :)
You can now run without performance lost normal routing algorithms even if CH is enabled, which means you can also load the graph without the ch datastructure and everything should work - at least in theory ;)

Oh I missed that step.
I support all possible GH cases in graph loading (via exception catch) - so it was strange to me.
It seems now that I can loosen the checks, thanks for the tip.

Since now we cannot be notified if a graph has CH or not, we need to always use graphHopper.setCHEnable at reader in order to be sure that we actually use the CH in CH graphs.
Since this set works with non CH graphs also, that would be not a problem.
On the contrary the false set means that we may loose CH in those graphs.
Is this thought correct?

Ah, okay. I see what you mean.

Because the setCHEnable(true) works also with non CH graphs

That is a problem which we should indeed fix! Either we automatically detect CH and configure everything accordingly like we do partially for the flagEncoders, or we should throw an exception. Feel free to create an issue!

On the contrary, the setCHEnable(false) means that we may loose CH in those graphs.

That is not such a big problem IMO as the results should be still correct, but yes this should be fixed probably at the same time.


'Book' weight not in weight table.

The OpenSans font used in test.js has a weight of 'book' which is not in the weight table.
This appears to be equivalent to 300 weight: http://www.webtype.com/info/articles/fonts-weights/

Fixed in #13.


Circle and Square marker shapes not working

Are we able to add  \n for the text parameter?
Preferably if we can do f-string text alignment https://www.geeksforgeeks.org/string-alignment-in-python-f-string/

Fixed in the latest version.


my first presentation

reference: https://github.com/BUPT/awesome-chatbot/issues/81
Scene Text Recognition from Two-Dimensional Perspective
Poster
No new friends

nice to meet you again

@824zzy we should not merge unrelated files do our repository.
Like this .idea/ directory.

Sure, those useless files are auto-created by Pycharm. I have already
deleted them and add .idea/ to gitignore.
Huan LI (李卓桓<EMAIL_ADDRESS>于2019年4月6日周六 上午12:19写道：

@824zzy https://github.com/824zzy we should not merge unrelated files
do our repository.
Like this .idea/ directory.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BUPT/conversational-ai-club/pull/113#issuecomment-480336177,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM8Cdyc7ITt-Xx_qwnrQEi69CiKnoQwNks5vd3eUgaJpZM4ce_lZ
.


fatal error: map: No such file or directory

hi,
when i try to make -B all ,I get the following error.
/opt/intel/sgxsdk/bin/x64/sgx_edger8r lib_migration.edl --search-path /opt/intel/sgxsdk/include --search-path ../../sgx-utils/libs/lib_la --trusted-dir ./generated --untrusted-dir ./generated
GEN  =>  generated/lib_migration_t.c
CC   <=  generated/lib_migration_t.c
/opt/intel/sgxsdk/bin/x64/sgx_edger8r lib_migration.edl --search-path /opt/intel/sgxsdk/include --search-path ../../sgx-utils/libs/lib_la --trusted-dir ./generated --untrusted-dir ./generated
GEN  =>  generated/lib_migration_t.h
In file included from trusted/marshalling.cpp:54:0:
../../sgx-utils/libs/lib_la/trusted/tla.h:49:15: fatal error：map：No such file or directory.
 #include <map>
               ^
compilation terminated

My os :
Linux version 3.10.0-957.27.2.el7.x86_64 (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) )
release:
CentOS Linux release 7.6.1810 (Core)
I tried compiling a xxx.cpp with  #include <map>  and then compiling with the command g++ xxx.cpp -std=c++11, everything is ok.
How can I solve this problem?

Hi, and thanks for your interest.
The problem seems to be that newer SGX SDKs changed the name of the standard libraries. I pushed this commit https://github.com/SSGAalto/sgx-migration/commit/4dd8c4d9d9ffac1155a3161e9a0321b0f4a4377a . Can you verify that this works for you?
Please remember that this was a research project, so I just made sure that it compiles and could not verify that it still works properly. But I can work with you if you encounter more issues.
Cheers,
Frity

Hi Fritz,
Thanks for your reply.It works. I have compiled it successfully.
However, I haven't had time to run the test at this time. If there are follow-up problems, I hope you can help me.
Thanks again very much for your reply！

I have another question. When I read the sgx-migration paper, the paper involves the source computer and the destination computer. Does this mean that data migration can be performed between two computers?

If you look at the sample app, it uses simple TCP to determine where to send the data so it already supports migration between systems. Keep in mind that the Migration Enclave should be local while the destination can be remote.
I suggest you create a new issue if you have more problems so that I can close this one.


Scenario: Successful Registration

Child issue for #19
Given I am on the New Tours Login Page
When I click the Register Menu Link
	And I am redirected to the New Tours Registration Page
	And I enter Bob in the First Name Field
	And I enter Smith in the Last Name Field
	And I enter bobsmith in the Username Field
	And I enter passw0rd in the Password Field
	And I enter passw0rd in the Confirm Password Field
	And I click the Submit Button
Then I am redirected to the New Tours Registration Confirmation Page
	And I verify the Registration Header exists

Part of an example project for showing how you should create stories and tasks to track your automated tests. Using Sentinel successfully is part of a larger process in which tests should be tied to tickets, which should be tied to code commits.


Avoid nuking KMS customer keys in our env

Thanks for review! Merging now to avoid KMS nukes in our test accounts.


Do not expose port 9418 in Dockerfile

Gerrit is running on port 29481

Thank you for pointing this out.  This is the native git:// transport port, but since we're doing it all by SSH/HTTP...  yeah, we don't need the port.