ERROR: Requested column 1, but database file - only has fields 1 - 0. （predict_sites.py ）

I'm trying to predict the m6A site of Arabidopsis DRS data with nanom6A, but I received the following message while performing "predict_sites". ! What files should I check for? or any other information should I provide? Thank you very much!
#######################################3
2.start mapping
[M::mm_idx_gen::7.6291.09] collected minimizers
[M::mm_idx_gen::11.9201.20] sorted minimizers
[M::main::11.9201.20] loaded/built the index for 7 target sequence(s)
[M::mm_mapopt_update::12.6121.19] mid_occ = 87
[M::mm_idx_stat] kmer size: 14; skip: 5; is_hpc: 0; #seq: 7
[M::mm_idx_stat::13.148*1.17] distinct minimizers: 20096618 (62.37% are singletons); average occurrences: 2.019; average spacing: 2.949
[M::main] Version: 2.17-r941
[M::main] CMD: minimap2 --secondary=no -ax splice -uf -k14 -t 20 data/Arabidopsis_thaliana.TAIR10.dna.toplevel.fa result.feature.fa
[M::main] Real time: 13.242 sec; CPU: 15.442 sec; Peak RSS: 1.737 GB
Could not build fai index result.feature.fa.fai
gene annotation

***** ERROR: Requested column 1, but database file - only has fields 1 - 0.
[INFO][SAMSequenceDictionaryProgress]done: N=0
parse bam
3.m6A site to genome sites
0it [00:00, ?it/s]
mkdir: cannot create directory ‘plot_nano_plot’: File exists
0it [00:00, ?it/s]

And I received the following 2 warnnings while performing "predict_sites"...
2.start mapping
[M::mm_idx_gen::3.7101.30] collected minimizers
[M::mm_idx_gen::4.2812.67] sorted minimizers
[M::main::4.2812.67] loaded/built the index for 7 target sequence(s)
[M::mm_mapopt_update::4.7312.51] mid_occ = 87
[M::mm_idx_stat] kmer size: 14; skip: 5; is_hpc: 0; #seq: 7
[M::mm_idx_stat::4.9772.44] distinct minimizers: 20096618 (62.37% are singletons); average occurrences: 2.019; average spacing: 2.949
[M::worker_pipeline::5.2593.05] mapped 3630 sequences
[M::main] Version: 2.17-r941
[M::main] CMD: minimap2 --secondary=no -ax splice -uf -k14 -t 20 data/Arabidopsis_thaliana.TAIR10.dna.toplevel.fa result.feature.fa
[M::main] Real time: 5.306 sec; CPU: 16.089 sec; Peak RSS: 2.051 GB
gene annotation
********* WARNING: File data/Araport11_GFF3_genes_transposons.201606.6.bed has inconsistent naming convention for record:
Chr1	3630	3759	AT1G01010:five_prime_UTR:1	.	+
***** WARNING: File data/Araport11_GFF3_genes_transposons.201606.6.bed has inconsistent naming convention for record:
Chr1	3630	3759	AT1G01010:five_prime_UTR:1	.	+

***** ERROR: Requested column 10, but database file - only has fields 1 - 0.**
[INFO][SAMSequenceDictionaryProgress]done: N=3630**
parse bam
3.m6A site to genome sites
100%|?????????????????????????????????????????????????????| 3627/3630 [00:08<00:00, 406.47it/s]

Please check the ref bed file.

Please check the ref bed file.

Thank you!

Sorry to bother you again.There is no genome file( anno.bed and anno.fa) in my data. Can it be mapping to the transcriptome reference  for evaluation? What should I do if I can do that? Looking forward to your reply. Thank you very much!

It is feasible in principle.


Registration does not work

Hi there, if you mean registration with facebook or google, yes, that part isn't implemented yet (as is written in the readme: https://github.com/nmaro/staart).
Does registration with username/password work for you?

@nmaro, thanks for the quick response.
I tried to register in your blood and it does nothing. http://staart.nmr.io/register
In addition, I look forward to an active example with Facebook / Google. Thanks for the project!

Sorry. now i see that the errors from register validation shows only in the console.

True story! That's a bug, it should show the error message in the form. I'll update the example when I'm home.

Thanks for reporting

Error messages are now appearing. And created two new issues for facebook and google: https://github.com/nmaro/staart/issues/4 https://github.com/nmaro/staart/issues/3


[Bug] Stopped working after the update

Не работает на символы. Пропала автоматика. Работает только «Enter padding fo selection» на обычных элементах.
=====
Does not work for characters. Automation was lost. Only "Enter padding fo selection" works on ordinary elements.
Video

Thanks for reaching out @redview13.
That is very weird. It seems to be working for me. Have you tried restarting Sketch?

Yes, I tried to restart the Sketch and reinstall the plugin.

Rollback to version 1.0.2. It helped.

I seem to be having the same issues as well on 1.0.3.

+1

+1, it's broken now.
On 20 February 2018 at 13:54, moksa<EMAIL_ADDRESS>wrote:

+1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/DWilliames/paddy-sketch-plugin/issues/32#issuecomment-366954620,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwlFePZc6xiC9rnBco4kS-ZtsWN7cvqks5tWrJ3gaJpZM4SKEWj
.

--
Dmitry Lyapustin
Lead product designer at Sola
+370 675 17 870
sola.ai  •  sola.foundation  •  lyapustin.com

+1, having this exact issue now as well. Rolled back to 1.0.2 and nothing changed; still broken.

Okay all — I think I may know what was causing it...
Please download a sneak peak of the next version: https://github.com/DWilliames/paddy-sketch-plugin/archive/v1.0.4.zip and let me know if that fixes it for you.

Working. But there is a nuance (shown in the video).
Video

Good catch @redview13! I've just fixed this now.

@DWilliames Cool! Everything works in the latest version (1.0.4). Thanks for the much needed plugin!)

I just pushed a release (v1.0.4) that should now fix this. 👍
I will close this issue for now, assuming that the fix is stable — if you find that it hasn't been fixed, then please re-open this issue.
Cheers!


Add support for derived keys

Do you read our minds?)
We just discussed it with @iPaulPro today)
Yes, we want to use this for our projects.
but it's not entirely clear how it will look
We have discussed several possible implementations but we are both not experts at encryption, so this is not obvious to us.
It's good if it would develop in open source because:  it will give more developers a chance to adopt these new standards quickly

We did it @AeonSw4n


First user experience updates OBM

In our first obm test we'll us a very simplified tutorial that only has one single screen.

Describe text should be move a little bit to the left
Start tracking text should be moved a little bit down (this would improve the separation of the two)
end tutorial link should be removed

Clicking the green buttons sends out CTA that is handled in the lib.

The tutorial will be show to users on first login based on if they are included in the experiment or not. The data about user inclusion is in a obm param in /me request answer.

As the green button is pressed by everyone that sees the tutorial page theres no point in measuring that.

Screen implemented. Now waiting for #1643


Missing include for std::set in sync.cpp

Originally posted by @victorsk2019 in https://github.com/dogecoin/dogecoin/issues/3512#issuecomment-2050228101
Just a quick note that I also ran test on another Linux installation in VirtualBox and got following compilation error:
sync.cpp:60:14: error: ‘set’ in namespace ‘std’ does not name a template type
   60 | typedef std::set<std::pair<void*, void*> > InvLockOrders;
      |              ^~~
sync.cpp:14:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
   13 | #include <boost/thread.hpp>
  +++ |+#include <set>
   14 |
sync.cpp:72:5: error: ‘InvLockOrders’ does not name a type; did you mean ‘LockOrders’?
   72 |     InvLockOrders invlockorders;
      |     ^~~~~~~~~~~~~
      |     LockOrders
sync.cpp: In function ‘void push_lock(void*, const CLockLocation&, bool)’:
sync.cpp:123:18: error: ‘struct LockData’ has no member named ‘invlockorders’; did you mean ‘lockorders’?
  123 |         lockdata.invlockorders.insert(p2);
      |                  ^~~~~~~~~~~~~
      |                  lockorders
sync.cpp: In function ‘void DeleteLock(void*)’:
sync.cpp:172:18: error: ‘struct LockData’ has no member named ‘invlockorders’; did you mean ‘lockorders’?
  172 |         lockdata.invlockorders.erase(invitem);
      |                  ^~~~~~~~~~~~~
      |                  lockorders
sync.cpp:175:5: error: ‘InvLockOrders’ has not been declared
  175 |     InvLockOrders::iterator invit = lockdata.invlockorders.lower_bound(item);
      |     ^~~~~~~~~~~~~
sync.cpp:176:12: error: ‘invit’ was not declared in this scope; did you mean ‘int’?
  176 |     while (invit != lockdata.invlockorders.end() && invit->first == cs) {
      |            ^~~~~
      |            int
sync.cpp:176:30: error: ‘struct LockData’ has no member named ‘invlockorders’; did you mean ‘lockorders’?
  176 |     while (invit != lockdata.invlockorders.end() && invit->first == cs) {
      |                              ^~~~~~~~~~~~~
      |                              lockorders
sync.cpp:179:18: error: ‘struct LockData’ has no member named ‘invlockorders’; did you mean ‘lockorders’?
  179 |         lockdata.invlockorders.erase(invit++);
      |                  ^~~~~~~~~~~~~
      |                  lockorders
make[2]: *** [Makefile:6600: libdogecoin_util_a-sync.o] Error 1
make[2]: Leaving directory '/home/me/projects/fromgit/dogecoin/PR-3512/dogecoin/src'
make[1]: *** [Makefile:9882: all-recursive] Error 1
make[1]: Leaving directory '/home/me/projects/fromgit/dogecoin/PR-3512/dogecoin/src'
make: *** [Makefile:695: all-recursive] Error 1

This error was fixed by adding #include <set> in sync.cpp (as message advises).
config_vbox.log

@victorsk2019
I see in your config.log that this is gcc 13.2, but I cannot find your boost version in there. Which version of boost are you using? You can find this with:
$ grep "define BOOST_VERSION " /path/to/include/boost/version.hpp
#define BOOST_VERSION 108200

$ grep "define BOOST_VERSION " /path/to/include/boost/version.hpp
#define BOOST_VERSION 108200

I get #define BOOST_VERSION 108400

Conditions for this to occur:

boost > 1.78
configuring with --enable-debug

I have reproduced this on gentoo x86_64 with boost 1.84 and macOS arm64 with boost 1.82.
The cleanest fix would be to write unit tests for #3313 and use that, as that fully takes care of this issue.

Fixed by #3313


[dashboard] Scrolling table viz overlaps next chart

If you have a chart on dashboard, which isn't fully displayed - e.g. need scrolling to see other records, it overlaps the next item on the dashboard (eg. a title, or another chart). Upon some investigation, we determine it is specifically a bug with chart that have descriptions. If you toggle the chart description off and then on again, all works well, but when you refresh the bug is back.
In case the table has pagination, the pagination bar is overflowing - see screenshots.
There is a workaround which minimizes the impact when user adds empty row below the chart, but then they see the grey text "empty row" so it's still not ideal. (instead of scrolling over chart or title, it's over the grey text"empty row").
How to reproduce the bug
described above
Screenshots
without toggle (correct)

(with toggle description - overflow)

Another example of the same issue:

Environment
latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Hello @zuzana-vej I was looking back into this issue and I cannot reproduce it right now. Could you please try again with the latest master? If you still encounter the issue please provide more information such as browser and version used. Thanks!

Here are exact steps to repro this:
Chart has description. If you just toggle the description it will be ok and it will shift the title of the next section down. If you leave the description toggled, and then refresh the page, it will load the chart with description toggled and the bottom of the table will overlap the next section.
If you put white background to the header which is below the chart, it will not overlap, but it will have half of the last row unreadable which is even worse.
Step 1: toggle chart description --> no problem.
Step 1b: if you untoggle & toggle --> no problem.

Step 2: Keep toggled and refresh page (ctrl+R). Overlap - --> problem with overlap.

Browser Google Chrome Version 98.0.4758.102 (Official Build) (x86_64)
Latest master - released from master on 02/17

Thanks for the fix!


copy user from vars to propage it in send middleware

Cf. issue #2030.
Tests were done with this test bot. I'm checked the test cases as well with the Bot Framework emulator as with Teams.

Hi there!
My company is using this small code change in production, it's working properly 👌
I hope it will be integrated in the next release 🙏
Chris

This PR works properly in production for my customers, via a fork.
It is a shame it was not merged and now closed 😞


⚠ Bofrost.lu has degraded performance

In 3385814, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 836 ms

Resolved: Bofrost.lu performance has improved in 5f8ddd5 after 6 minutes.


[Update] [tool_agent] [README.md]

from swarms.agents.tool_agent import ToolAgent

I believe  this PR has aged out.


⚠ TiendaEnLinea has degraded performance

In 5e8fb09, TiendaEnLinea (https://www.fahorro.com/) experienced degraded performance:

HTTP code: 500
Response time: 10419 ms

Resolved: TiendaEnLinea performance has improved in be10abe.


Add content ids to governments

In preparation for publishing them to the Publishing API.

Should we add a default to this field, or will Whitehall be changed to set a content_id when a new government is created?

I haven't quite figured out the how, but I'll look next at ensuring new governments get content ids, as well as making the field NON NULL in the database.


removeRange not remove text but duplicte the selected text(on decorate text)

i try to remove decorate text but instead of removing Modifier.removeRange duplicate the selected text.
this is my code:
props = the props that get in  decorateText component
removeVar(props){
        const contentState = this.state.editorState.getCurrentContent();
        const blockKey = props.children[0].props.block.getKey();
        const start = props.children[0].props.start;
        const end = props.children[0].props.start + props.decoratedText.length;
        const selectionState = SelectionState.createEmpty(blockKey);
        const updateSelection = selectionState.set('focusOffset', start).set('anchorOffset', end)
        let nextState = Modifier.removeRange(contentState, updateSelection, 'forward');
        nextState = EditorState.push(
            this.state.editorState,
            nextState,
            'insert-characters'
     );
}

not sure what is the problem.
btw i try to change it to replace but it add the text and then add the selected text.

did anyone got an idea whats the problem?

Nice to see others suffering my misery. THanks for closing guys!

@HodayaGruzman I had a similar issue. Let's say we have a string like abcd and we want to remove cd - anchorOffset should be set to 2, focusOffset to 4 and direction to backward.
My problem wast that I had anchor and focus offsets the other way around, maybe that's the case here.


tests: improve tests

Please describe the changes this PR makes and why it should be merged:
This pr aims to improve the test coverage. Unit tests are important to ensure things work as they are expected to and to help prevent us from introducing regressions.
This also aims to set up nyc as a coverage tool to keep the tests in check in the future.

Note to self: Merge src/commands/Command.ts into master separately outside of the squash to help preserve history clarity.

Accidentally merged too early.


Fallback to 'left' css property when transitions is not supported. [IE9]

Fixes hide/show in IE9

I'm sorry but I am not going to merge it. Adding over 280 lines to a 350 line project to support IE9 is a bit too much for me.
It's open source and MIT licensed so you're welcome to fork me and I'll add a link in my README to you if people want IE9 support.


Added Config json file allowing data constants to be configured

You can create a file called data-config.json within the database directory. You only need to supply the values that differ from the defaults that were set before. When the file is not there one will be created for you.
The following can be set in the json
DocMaxRoom
DocHeader
Padding
ColFileGrowth
EntrySize
BucketHeader
PerBucket
HTFileGrowth
HashBits
InitialBuckets

do you think it makes sense to add the read configuration sync.RWMutex ?

Well ideally the data config is set at instantiation of a new database and then never touched again. I would assume there would only be a single thread at this stage so a mutex is unnecessary. Though I just popped in here so I could be mistaken.
Another thing I'm realizing is that if two embedded db instances are running, the json config from the first could be overwritten by the second. This would than need a mutex as suggested. I could append the dataconfig to the db object and pass it into all relevant data methods, or I could make all of the data methods functions of the dataconfig struct. Both seem ambitious so any other ideas would be great. I should also ask if the above scenario even possible or do other things get in the way of multiple embedded db instances?

Would you please make the InitDataConfig and the result dataConf specific to a DB? In that way more than one embedded DB instances can have their own distinct configuration.

Ok. Hopefully I will have time this week

no hurry at all & thanks!

Very excited about this!!

I touched a lot of stuff so please review this carefully. I am also having issues monkey patching an embedded method which is causing an error to be thrown on the data test, though it does still pass. Also, I pushed this before running the db tests again because they take a while, I can run the test tonight when I don't need my computer for a while.
You will also notice I changed the dataConfig struct to a Data struct which you may feel is not a appropriate name for the struct. I look forward to your feedback.

ammazing, thank you!

sorry, i have plenty of things to finalise in preparation for a long vacation, i may not have time to take a look at this one until next week or the week after.

looks incredibly good, many thanks once again for your help.
merry Christmas and happy new year too!

almost forgot. if I may trouble you once again, could you please write down the configuration options and their impacts in https://github.com/HouzuoGuo/tiedot/wiki/Performance-tuning-and-benchmarks?


Multiple open files containing same function names

If I have 2 files open simultaneously and they contain functions with the same names I get a dublicate name error. The files are not connected. I have only tested with identical files with different names.
Most errors go away if I change the name, but main is a bigger problem. Since this is the only entry point it is the only function that doesn't need to be used. But when I have a main function in each file, I get a dublicate name error, but if I change the name of one, I get a Unused definition (Redundancy Error).
I have tested with the files both in the same folder, and separate folders.

Are the files using different namespaces?
Flix / VSCode uses the "workspace" metaphor. All files in a workspace are considered to be part of the same project and hence cannot declare the same names twice.
Consequently, an entire project cannot have more than one main.

To avoid ununsed def, you can always stick a pub in front or rename with an underscore.

I have not declared an explicit namespace of the files no. But e.g. for writing a lot of Flix test programs, having the assumption that all files are part of the same project, this meaning that they intertwine, does not hold.

I have not declared an explicit namespace of the files no. But e.g. for writing a lot of Flix test programs, having the assumption that all files are part of the same project, this meaning that they intertwine, does not hold.

I have not declared an explicit namespace of the files no. But e.g. for writing a lot of Flix test programs, having the assumption that all files are part of the same project, this meaning that they intertwine, does not hold.

I am not sure how the compiler can know what files to include and exclude.
For example, in Java you typically have a src folder and everything in that folder is in scope. (You cannot have two classes with the same name).

That is a valid point. The solution is to encapsulate the file in a namespace, as you usually encapsulate it in a class in Java.
I tried this, and while it allows for multiple main functions, the run main feature of the plugin does not work under these conditions.

I think there are two issues at tension:

We have a principle that states that every Flix program has a single entry point and no code is executed before it.
We want to be able to "click" on a piece of code in VSCode, run it, and see its output.

Not sure how to reconcile that.
Perhaps we should have some "Run This Function" code lens (?). This would require some compiler trickery...

I am closing this. The discussion continues in: https://github.com/flix/flix/issues/977


Unpush a background file

Hello,
Thank you for that incredible creation!
Can I know if it is possible to unpush a picture after you push one?
Thank you so much!
Alexis

I found how to unpush a picture:
var slides = $("#test").vegas('options', 'slides'); slides.shift();
🥇


Add Rust secure examples

This adds the code for secure examples in Rust, in addition to making a few tweaks to the examples.  Namely, an import that had a spurious self:: now refers directly to the imported postgres crate, and the function trait bound on the execute_txn method has been changed from FnMut to Fn to better reflect the semantics of this function.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/5c0d168c3fb18791ded439767dccf2fac45bf401/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/cde1b5c46dd33270002916b9f7400c7c3d8d8a56/

@couchand PTAL once TC puts up the AWS preview link

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/eb3cf2e8e55fa3a098db7c0d8c1c1016c4421ae1/

Ok I updated it with a comment referring to the impending API changes.  Once that all settles I'll try to remember to come back and fix this up.

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/4a8d7178e3d89160df1f83655c28bb9e0736f02a/

TFTR @nvanbenschoten
@sploiselle it's ready to go from my end, thanks!


docs: Add rdegges.com to the showcase

Adding my website to the showcase.

 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.

Hello @rdegges,
thank you for adding your website to the showcase of Hugo. I've merged your contribution as 0d9c0677f6303155601d934fcc90926688b9f156 (master) and 30cd1a1f6c81945dd937e4f499495f7b43e26366 (v0.16.docs).
The website should be updated within the next minutes.
Cheers,
Digitalcraftsman


Bad method call

Hello,
I have this validation rule 'unique_with:results, subject_id, period_id', 'level_id', but then I keep getting
Method Illuminate\Validation\Validator::validateLevelId does not exist.
I have level_id in my table. I realized when I take off the level_id from the rules it works, but I need the level_id as part of the combination.
Thanks in advance.

Sorry my bad. The level_id is out of the rules string. Should be
'unique_with:results, subject_id, period_id, level_id'


text diff: Reindented line shows up as either deleted or added

$ printf 'foo\nbar\nbaz\n'>a
$ printf 'foo\n  bar\nbaz\n'>b
$ difft a b
b --- 1/1 --- text
1 foo
2   bar
3 baz
$ difft b a
a --- 1/1 --- text
1 foo
2   bar
3 baz

Expected behavior: The diff clearly shows that the line has changed, and is neither added or deleted.
version is 0eba3ecabe84f52520f3b3e960d3e3f6fd09e528 (current master)
I wonder if the difference is only invisible because it is displayed inline, with the changes highlighted in bold, and of course bold whitespace does not look any different.

Confirmed fixed, thank you very much!


Request: cutting new release

Looks like https://github.com/LukasMasuch/streamlit-pydantic/pull/35 fixes a pydantic-settings import issue.
Any chance we can cut a new release to make this change accessible?
This is a duplicate of https://github.com/LukasMasuch/streamlit-pydantic/issues/41, https://github.com/LukasMasuch/streamlit-pydantic/issues/43

Cc @LukasMasuch @szabi

While waiting on a release, one can add this to one's requirements.txt:
git+https://github.com/LukasMasuch/streamlit-pydantic.git  # For pydantic v2 fixes with pydantic-settings


Add interpolation support to values_fill argument of pivot_wider

Interpolation like pivot_wider(..., values_fill=!!myval) does not work.  I tried to provide a patch but my macro skills are lacking, sorry.

Thank you for reporting this! I'll take a look when I get a chance.


RuntimeError: dictionary changed size during iteration

Error
IndexError: pop from empty list
  File "rediscluster/connection.py", line 323, in get_connection_by_node
    connection = self._available_connections.get(node["name"], []).pop()

RuntimeError: dictionary changed size during iteration
  File "proj_code/authentications.py", line 121, in authenticate
    payload = cache.get(key)
  File "ddtrace/contrib/trace_utils.py", line 48, in wrapper
    return func(mod, pin, wrapped, instance, args, kwargs)
  File "ddtrace/contrib/django/patch.py", line 138, in traced_cache
    return func(*args, **kwargs)
  File "django_redis/cache.py", line 87, in get
    value = self._get(key, default, version, client)
  File "django_redis/cache.py", line 27, in _decorator
    return method(self, *args, **kwargs)
  File "django_redis/cache.py", line 94, in _get
    return self.client.get(key, default=default, version=version, client=client)
  File "django_redis/client/default.py", line 220, in get
    value = client.get(key)
  File "redis/client.py", line 1207, in get
    return self.execute_command('GET', name)
  File "ddtrace/contrib/redis/patch.py", line 82, in traced_execute_command
    return func(*args, **kwargs)
  File "rediscluster/utils.py", line 101, in inner
    return func(*args, **kwargs)
  File "rediscluster/client.py", line 395, in execute_command
    r = self.connection_pool.get_connection_by_node(node)
  File "rediscluster/connection.py", line 325, in get_connection_by_node
    connection = self.make_connection(node)
  File "rediscluster/connection.py", line 224, in make_connection
    if self.count_all_num_connections(node) >= self.max_connections:
  File "rediscluster/connection.py", line 279, in count_all_num_connections
    return sum([i for i in self._created_connections_per_node.values()])
  File "rediscluster/connection.py", line 279, in <listcomp>
    return sum([i for i in self._created_connections_per_node.values()])

ENV
django-redis==4.12.1
redis==3.0.1
redis-py-cluster==2.0.0

Runtime
CPython 3.7.7

It was fixed on redis-py-cluster==2.1.0


Keyboard shortcuts

Added shortcuts

Cmd + [ goes back
Cmd + ] goes forward
Cmd + W closes the window

Still needs testing as referred to in https://github.com/ashokfernandez/kiste/issues/12


Rocktmq is not friendly to cloud native.

I want deploy rocketmq  on kubernetes, but I ran into many problems.
Feature request
dLegerPeers config
The config dLegerPeers=n0-rocketmq-broker-01:40911;n1-rocketmq-broker-02:40911;n2-rocketmq-broker-03:40911 get index out of range exception,  because the code use - separator.
For valid dns consider refer to https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names.
It seems that the dependency has been fixed, but it has not been updated: https://github.com/openmessaging/openmessaging-storage-dledger/commit/1cef542b7b631fe0dd66df14a1fd8d37eeeda867
advertised port
Some port is hard code, can't modify by config. And don't have config such as advertised.listeners in Kafka.
https://github.com/apache/rocketmq/blob/9f95a972e10e0681bc3f2d00e9957aa212e897b5/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java#L266
https://github.com/apache/rocketmq/blob/d1b4e47c26576cf4fa543bbdd8c6f09643220bed/broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java#L185
Accessing from outside k8s is very troublesome, the client get host:port from Nameserver, but it is the inner container svc:port.
The office operator (https://github.com/apache/rocketmq-operator) also not did this well.
So we must config hostPort/nodePort == containerPort == listenPort(in config). Same for the vipChannel port listPort-2.
So advertised.listeners is needed.
Is there  plan for improvement ?

You can submit related issues to the rocketmq-operator project. Also welcome to submit relevant code to help rocketmq embrace cloud native.
Issues are generally used for bug reports and feature requests, so if you have any questions about  Apache  RocketMQ, it is recommended to discuss it on the mailing list first, the mailing list address. I will close the Issue first, but please feel free to reopen it if you have any other issues.


user12986714: Watch (?-i:6WL-gG3-Hzg)(?#youtu.be)

user12986714 requests the watch of the watch_keyword (?-i:6WL-gG3-Hzg)(?#youtu.be). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

(?-i:6WL-gG3-Hzg)(?#youtu.be) has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


siabazi.com bypass

Domain
https://siabazi.com
Link
https://siabazi.com/titles/7127/the-terminator
Version
1.0.0
What browsers are you seeing the problem on?
Chrome
What OS are you seeing the problem on?
Linux
(Optional) Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

this does not appear to be a shorter site. what would you like bypassed?


[2861] Age range course details bug

Context
https://trello.com/c/djMr10zg/2861-ageism-age-range-awol
Age ranges were not displaying because trainee.course_education_phase was nil. This was because the user had been able to bypass the education phase page in the course details set up from the check details page
Changes proposed in this pull request
The course details link on the review draft page and the one on the check details page pointed to two different pages.
PR changes so that they point to the same page - /publish-course-details/edit
User is now forced to choose the education phase
Guidance to review
Ensure bug cannot be replicated

 Ageism, age range awol


Creating CoreDataStack without dispatching

Hi everyone! I need a way to construct CoreDataStack SQLite type without dispatching. Is it possible right now?

Hi @Aranoledur nope thats not available by design.
Thanks https://github.com/bignerdranch/CoreDataStack/issues/31

If you really do need to do it synchronously, you can use a semaphore (or something like XCTestExpectation in a unit test) to wait while the stack is being created, but as @rcedwards says, it's implemented this way because you generally don't want to block the main thread while CoreDataStack starts up.


Does user RBAC as Reader can be the caller for Azure Invoice Download API

A post from https://github.com/Azure/vagrant-azure/issues/164, customer replied that "Role is given as "Reader" which should be "Owner" instead otherwise it would give permission error on deployment."
Please confirm

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

ID: 5a56e729-7981-9a51-9c5c-00ea13a8d888
Version Independent ID: 01fb14e5-e8a4-49e0-5908-b6069566a8de
Content: Get Azure usage with Azure Billing APIs
Content Source: articles/billing/billing-usage-rate-card-overview.md
Service: billing
GitHub Login: @tonguyen
Microsoft Alias: erikre

@HannahHsiao  Thanks for your feedback! We will investigate and update as appropriate

Unable to resolve @tonguyen - adding @Erikre for visibility and confirmation

Adding @bandersmsft


document that Files API only supports Diego deployed apps

Files API (http://apidocs.cloudfoundry.org/226/files/retrieve_file.html) does not document that it does not work for DIEGO deployed apps, and what API endpoint to use as alternative.
When called with the guid of an app deployed to DIEGO, this API returns:
{
  "code": 190001,
  "description": "File error: Request failed for app: cf-cli-ref-guide, instance: 0 and path:  as the instance is not found.",
  "error_code": "CF-FileError"
}

Dies, thanks for reporting this, we have documented that Files API is for non-Diego app only.
Docs will be updated once changes flow through our pipeline.
Thanks


:sparkles: *: migrate to use cluster-aware apiextensions-apiserver clients, listers and informers

*: remove old skip annotations for the automated refactor

go.mod: bump to newer kcp-dev/client-go

*: manual edits to use cluster-aware apiextensions client
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
*: autogenerated changes to use cluster-aware apiextensions client
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
/assign @ncdc @sttts @p0lyn0mial

/approve


SMF waits PFCP response from UPF forever

This PR needs new pfcp to build.

@mariakagi
Please update pfcp to v1.0.4.


feat(doc-core): optimize home page style

Description
优化默认首页的样式。
浅色模式:

暗黑模式:

Related Issue

Types of changes

[ ] Docs change / Dependency upgrade
[ ] Bug fix
[ ] New feature / Improvement
[ ] Refactoring
[ ] Breaking change

Checklist

[ ] I have added changeset via pnpm run change.
[ ] I have updated the documentation.
[ ] I have added tests to cover my changes.

浅色模式下 Feature Card 的样式可以再调整下

页面背景已经是渐变色了，Card 背景用纯色可能会更舒服一点
目前有灰色边框，无边框可能会更简约

ok


Invalid JSON in profile windows-11--firefox-128-0

FYI this profile has invalid JSON:
https://github.com/ulixee/browser-profile-data/blob/a64cb50bd037176ee9c267a5779e6235ce8afb31/profiles/windows-11--firefox-128-0/http-xhr.json#L6317
This is the only profile that had this issue.

Thanks!


The relevance of RecoveringParseRunner?

This piece of code is one of the more complex in the current code; understanding what it does is all the harder that the test code for this parser consists of... String test outputs.
Which is not a good thing, of course. This means the mechanics are not tested, and they need to be.
Also, a lot of code in matchers themselves, or dedicated visitors, or even input buffers (see MutableInputBuffer), exist solely for the purpose of this runner.
The only benefit that I can see is that it allows to not stop at the first parsing error...
Do you use it at all? If yes, how? Another problem I have is figuring out actual use cases for it!

Scrapped in 2.0.x.


Need copy constructor for absl::FixedArray

I'm trying to use absl::FixedArray as a function's return value and value in hash map, instead of std::vector. The size of the array is not known at compile time, while InlinedVector needs a predefined capacity. The burden of using InlinedVector is that passing InlinedVector<int, 5> to a function expecting InlinedVector<int, 10> is not compatible.
The comment in the fixed array code is "Copy and move construction and assignment are deleted because (1) you can't copy or move an array..." I agree that move construction is not needed, but copy construction is simply a copy of all elements. e.g. absl::FixedArray(other.begin(), other.end())
absl::FixedArray<int> GetIds() {
  absl::FixedArray<int> ids(5);  // some number decided at runtime, but the size is fixed
  return ids;
}

error: use of deleted function 'absl::FixedArray<T, inlined>::FixedArray(const absl::FixedArray<T, inlined>&)'

Many of us are out until after the new year, so you may not receive an in-depth response until then. @JonathanDCohen probably has the most knowledge here.

This has been on the todo list for a while and just hasn't been done yet.  I can write this up this week although I'm not sure if it will get upstreamed until after the new year.

Thanks @JonathanDCohen and happy holidays!


Boot loop

Hi,
I installed chimeraos on intel nuc hades canyon. After restarting a white screen shows up with text "searching for available updates" and gets stuck for a couple of minutes then restarts the device again to the same window to infinite loop.

ok i managed to make it work. for unknown reason i had 2 nvme drives in the nuc. so installing the os on the first disk didn't work. changed to the second it worked


Serial flash support?

Hello. And what about support for running a program from serial flash memory, for example from Winbond 25Q32BVSIG.
Thanks

Thanks for your note.  It is a fascinating idea!  But I do not have time to contribute to it.  It is not a difficult problem once you have the flash memory driver sorted out.
-br

On Sep 23, 2017, at 10:25 AM, Colesnicov Denis Petrovich<EMAIL_ADDRESS>wrote:
Hello. And what about support for running a program from serial flash memory, for example from Winbond 25Q32BVSIG.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/billroy/bitlash/issues/54, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF-xoxclhd7kpqYfZxikPbmjsxAUIg8ks5slTESgaJpZM4Phmkv.

Hello. Do you need to implement some interface or the existing library already? Personally, I want to try this one,  Marzogh/SPIFlash, as soon as I get the most mentioned flash chip. But otherwise for arduino there are a lot of libraries that allow communication with serial memory ...
Sorry for my bad english :)


Update certified copies enumerations

Adds enumerations for Certified Copies for story GCI-989
Type of change
New Feature

api-enumerations will need to be on the develop branch


Create documentation for the MET TC app

I realized that the MET TC app, being new, is not included in the METexpress User's Guide, so we need to make sure to add it there before the 4.1.2 release.
Time Estimate
~1 day.
Sub-Issues
Consider breaking the task down into sub-issues.

[ ] Add a checkbox for each sub-issue here.

Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee

[ ] Select engineer(s) or no engineer required
[ ] Select scientist(s) or no scientist required

Labels

[ ] Select component(s)
[ ] Select priority
[ ] Select requestor(s)

Projects and Milestone

[ ] Select Repository and/or Organization level Project(s) or add alert: NEED PROJECT ASSIGNMENT label
[ ] Select Milestone as the next official version or Future Versions

Define Related Issue(s)
Consider the impact to the other METplus components.

[ ] METplus, MET, METdatadb, METviewer, METexpress, METcalcpy, METplotpy

Task Checklist
See the METplus Workflow for details.

[ ] Complete the issue definition above, including the Time Estimate and Funding Source.
[ ] Fork this repository or create a branch of development.
Branch name: feature_<Issue Number>_<Description>
[ ] Complete the development and test your changes.
[ ] Add/update log messages for easier debugging.
[ ] Add/update unit tests.
[ ] Add/update documentation.
[ ] Push local changes to GitHub.
[ ] Submit a pull request to merge into development.
Pull request: feature <Issue Number> <Description>
[ ] Define the pull request metadata, as permissions allow.
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
[ ] Iterate until the reviewer(s) accept and merge your changes.
[ ] Delete your fork or branch.
[ ] Close this issue.

MET Cyclone (formerly MET TC) now has its own section in the METexpress User's Guide, complete with images.


Bug: incorrect flags in HW zones if HuntHelper map isn't open

Hi,
I found a problem with the flags from HW zones being slightly off.
The reason for this is that the variable _mapZoneMaxCoordSize only gets updated if the HuntHelper map window is open.
Thanks for all your work.

Thanks for tracking it down, fixed it.

Wow, that was fast. Thank you!


Datastore query filter failing on simple indexes

Hey,
I am trying to query datastore on a single variable (doc_id) and I always get the following error:

error:  ApiError: Bad Request - a filter value must be indexed
  at new util.ApiError (/opt/app/api/src/node_modules/gcloud/lib/common/util.js:105:10)

The piece of code is coffeescript but I dont think that is a problem to anyone here:
datastore = gcloud.datastore.dataset()
query = datastore.createQuery 'subs'
query.filter 'doc_id', '=', object._id
datastore.runQuery query, callback

I have already tried to create the index using the CLI but I always get that it is not necessary because its not a complex index and single indexes are automatically created. Does anyone have an idea?
Thanks

@pcostell

This error occurs in the backend if the query filter's property has excludeFromIndexes = True.
@stephenplusplus any changes to gcloud recently that would set this on query filters?
What's object._id in this example?

@pcostell
its an hex string.. the particular case was: "56d9ef9f2764e71200083a73"

any changes to gcloud recently that would set this on query filters?

I don't believe so. We still allow a user to set excludeFromIndexes with dataset.save. Did you save data with that option set?

@stephenplusplus no, I did not use any particular option set. I just set the key and store my json document on data.

It may be helpful to see the actual proto that is getting sent to Datastore. @stephenplusplus do you have instructions for how to grab this from the query?

@s4lesman try running your code against this gcloud:
$ npm install --save stephenplusplus/gcloud-node#spp--1180

It will output the format of the query (pre-protobuf encoding), which you can just copy-paste in here.

{"namespace":null,"kinds":["subs"],"filters":[{"name":"doc_id","op":"=","val":"56d9ef9f2764e71200083a73"}],"orders":[],"groupByVal":[],"selectVal":[],"autoPaginateVal":true,"startVal":null,"endVal":null,"limitVal":-1,"offsetVal":-1}
and

{
  "read_options": {},
  "query": {
    "projection": [],
    "kind": [
      {
        "name": "subs"
      }
    ],
    "filter": {
      "composite_filter": {
        "filter": [
          {
            "property_filter": {
              "property": {
                "name": "doc_id"
              },
              "operator": "EQUAL",
              "value": {
                "entity_value": {
                  "property": [
                    {
                      "name": "_bsontype",
                      "value": {
                        "string_value": "ObjectID"
                      }
                    },
                    {
                      "name": "id",
                      "value": {
                        "string_value": "VÙï'dç\u0012\u0000\b:s"
                      }
                    }
                  ]
                },
                "indexed": false
              }
            }
          }
        ],
        "operator": "AND"
      }
    },
    "order": [],
    "group_by": []
  }
}

@stephenplusplus I see that it is indexed false, maybe thats why.. any idea how I can enforce the index?

I'm wondering if object._id returns an object that needs to be unpacked for just the value ID value. Maybe try object._id.valueOf()?

@stephenplusplus at first I was warned about the not indexed but then that triggered it.. I agree with you, I'm going to play around with the data here. But I am positive thats the issue. Thank you so much. You guys are amazing @stephenplusplus & @pcostell

Thank you! I'm glad it all worked out. Come back with any other questions.


added error cell type handling and made "view all data" operation async

Thank you for your contribution.
Before submitting this PR, please make sure:

[x] PR description and commit message should describe the changes done in this PR
[x] Verify the PR is point to correct branch i.e. Release or Beta branch if the code fix is for specific release , else point it to master
[x] Latest Code from master or specific release branch is merged to your branch
[x] No unwanted\commented\junk code is included
[x] No new warning upon build solution
[x] Existing unit test cases are passed
[ ] New Unit tests are added for your development
[x] Sanity Tests are successfully executed for Existing Functionality
[x] After creating pull request there should not be any conflicts
[ ] Resolve codacy comments
[ ] Builds and checks are passed before PR is sent for review
[ ] Resolve code review comments

Regression Suite executed successfully


CairoMakie 0.8.11 blocks/freezes/hangs in Pluto

For some reason, CairoMakie hangs with version 0.8.11 whereas it doesn't with version 0.8.10. The following code will block inside a Pluto notebook (Pluto version 0.19.9):
begin
    using Pkg
    Pkg.activate(; temp=true)
    Pkg.add(; name="CairoMakie", version="0.8.11")
    using CairoMakie
end

lines(1:10, 1:10)

If I open a notebook with version to 0.8.10, then it will show the figure. This issue exist in Julia 1.7.3 and Julia 1.8.0-rc3.

Duplicate: https://github.com/JuliaPlots/Makie.jl/issues/2166


Update Documentation assets with Switcher Management v2 new UI style

Is your feature request related to a problem? Please describe.
Switcher Management v2 has introduced many UI improvements and style changes.
Currently, the documentation showcases v1 UI. There is no behavior or feature replacement, the UI change was necessary as Angular >15 has re-modeled Material libraries.

Fixed by #397


Uniswap price manipulation allows profiting from risk manager swaps

Severity: High
Difficulty: Low
Description
The lack of swap price guarantees allow anyone to perform unfair swaps from the risk manager and profit from the arbitrage opportunities created.
Anyone can trigger a swap through uniswap with the risk manager funds:
https://github.com/keep-network/coverage-pools/blob/09aa12565ab46a954ab2cb969209e6721bd6b631/contracts/SignerBondsUniswapV2.sol#L193-L239
There is no proper mechanism to ensure that the swap will be done at a fair market price. If an attacker shifts the spot price on the uniswap pair, he will make the the risk manager perform an unfair swap. The attacker can then benefit from the arbitrage opportunities created to make a profit.
Note that the isAllowedPriceImpact is supposed to prevent slippages, but does not protect against an unbalanced pool.
Exploit Scenario
The risk manager has 10 ether. Eve uses a flash loan to shift the spot price on the uniswap pool. The pool has a large amount of Ether, and few collaterals. getAmountsOut(10 ether, ..) returns 0. Eve calls swapSignerBondsOnUniswapV2 to trigger the swap. She then sells back all the collaterals bought, and profit from the arbitrage opportunity created to make a profit
Recommendations
Short term, consider to:

Restrict the call to swapSignerBondsOnUniswapV2 to trusted users
Use a price Oracle to ensure the swap is done at a fair price

Long term, design your contracts such that you avoid arbitrary users to perform assets swaps on behalf of contracts.

@pdyraga I added a fix suggested by you.
I think we can close this issue, after we merge the fix.


Update reference-connect-sync-attributes-synchronized.md

92 | mobile |X |X | | |This attribute will not sync if user/admin has previously updated it in O365
Despite AADC confirming attribute is exported and synced, the value is not actually updated in Azure AD.  It can be changed directly in Exchange Online Admin Center or Microsoft 365 Admin Center.  It will not write back to AD so may need to be updated on-prem also.

@davidkench : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@davidkench : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @billmath - Could you review the proposed update to your article? I made a formatting fix to the table in the event that the pull request is approved.

Hi @billmath - Could you review the proposed update to your article? I made a formatting fix to the table in the event that the pull request is approved.

Okay I got feedback from engineering.  They want to work on the wording, so I am going to create a backlog item and work on adding this.  We can close this PR for now.
#please-close


Can't Login!

Tried DevTrack: Login to GitHub in the command palette and got this 👆
Any ideas?

Just updated the extension so restart VS Code and see if that fix's it! Let me know if it works.


Hooks after database and table creation

Would it be possible to get hooks which get called after the database and or table has been created? I would like to execute some extra some logic and execute some queries when needed.

Closing this as a duplicate of #839.


Cant install requirements

Hey, cool repo. Just wanted to let you know that I got the error below, when I run pip install -r requirements.txt. Not sure if others get this.
My python version: 3.8.5
My pip version: 20.0.2
Collecting pytorch-lightning==0.6.0
  Using cached pytorch-lightning-0.6.0.tar.gz (95 kB)
Collecting PyYAML==5.1.2
  Using cached PyYAML-5.1.2.tar.gz (265 kB)
Collecting tensorboard==2.1.0
  Using cached tensorboard-2.1.0-py3-none-any.whl (3.8 MB)
Collecting tensorboardX==1.6
  Using cached tensorboardX-1.6-py2.py3-none-any.whl (129 kB)
Collecting terminado==0.8.1
  Using cached terminado-0.8.1-py2.py3-none-any.whl (33 kB)
Collecting test-tube==0.7.0
  Using cached test_tube-0.7.0.tar.gz (20 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from -r requirements.txt (line 7)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1)
ERROR: No matching distribution found for torch==1.2.0 (from -r requirements.txt (line 7))

The versions mentioned in the requirements.txt are compatible with >=Python3.5 and <=Python3.7. So if you use python3.8 then the corresponding versions of the libraries will not be compatible.

Oh yes, it works with python3.6.9. It may be a good idea to add that in README.
Also, if building wheel fails, do pip install wheel.


chore: use latest miniflare

Also, there is a conflict with having wrangler as a dev dependency and trying to run, so remove it. Global install is preferred.

I think you can use:
npx wrangler

The latest version of miniflare + wrangler make the error: #8. Therefore, miniflare + wrangler are installed by the fixed version

Removing wrangler from devDependencies is fixed the issue #8. Thanks @ericlewis.


Don't require consistent snapshots

#269 seems like there are unrelated changes in it, so to keep things as tightly scoped as possible, in this PR I'm going to support non-consistent snapshots, and ensure all the non-consistent fixtures are passing in our existing test cases.

This one is tricky to get right. The goal of ensuring all our existing test coverage also applies to the non-consistent fixtures mean that I had to try and refactor the UpdaterTest into two overall variants: one that looks only at the consistent fixtures, and one that looks at the non-consistent ones.
I decided ultimately to keep using data providers in UpdaterTest, but with deterministic and  helpful (I hope) keys that can be used to override the data sets in subclasses when needed. And it is needed, since non-consistent snapshots will often have different version numbers for their metadata than the consistent snapshots.
As part of this, I also discovered PHPUnit's @testdox annotation, which helps make a lot clearer what is being tested, even when data providers are involved. I think it makes sense to always use this format, honestly, so I've made those changes (along with some other changes in the tests to improve that form of documentation).


Suggestion: LevelUp Gemmy and earn rewards for milestones

Can you describe this feature request in more detail? How would Gemmy level up and what kind rewards are there?

Sure. Gemmy can be leveled by writing notes, e.g. more notes more XP or by the words (number).
Rewards according to the same principle. For Example:
First Note Award.
First external PlugIn installed.
Or maybe an Award for a Note with 100.000 Words or for 1000 Note in the Vault.


String between two slashes and variables treated as Regex

I don't know if this is expected behaviour but I would like to know if there's a way to stop it.
Let's assume I have this test string in PHP:
$test = '/en/'.$var.'/some-page/'.$var2;
some-page is still a string but it's highlighted as a regex

Regexes in PHP are just strings. Since we don't know whether a string will be used as a regex or not, we highlight any string that looks like a regex, as a regex. I guess it's annoying when it's wrong but it seems the most useful behavior. One way to prevent that would be just to make your strings not look like regexes like '/'.'en/'


Docs component grid laid out with CSS Grid

Summary
The component grid on Components and APIs
https://facebook.github.io/react-native/docs/components-and-apis.html
has a set height for each item. This causes content to overflow their
containers.
Before:

After:

I've quickly fixed this with CSS Grid. There is much more room for
improvement, but this prevents it being visually broken.
Tested by locally rendering. Jest passes OK.
Test Plan
Run docs website locally. Visually confirm correct rendering.

The CircleCI failure seems to be related to a robolectric error. As you can see in the changed files for this PR, I would not have edited or even looked at anything to do with Android unit testing frameworks.

Thanks for contributing!

@TheSavior Hey, this doesn't seem to have been merged. Is there an issue with the PR? The docs still look broken. Apologies there may be things about the project management process of RN that I don't understand.

Looks like it is fixed on the docs for 0.49: https://facebook.github.io/react-native/releases/0.49/docs/components-and-apis.html

Awesome, thank you for pointing that out. Sorry for wasting your time!


bpf: lxc: remove CB_FROM_TUNNEL upgrade toleration for IPv6

This workaround was added by https://github.com/cilium/cilium/pull/29304 to deal with up-/downgrade troubles between v1.14 and v1.15.
As the comment says, we can now remove this workaround for the 1.16 devel cycle.

/test


v2.0.0 Delete Entities (delete_data.md) Doc Update

Is there an existing issue for this?

[X] I have searched the existing issues.

Issue
Deleted entities can still be retrieved immediately after the deletion if the consistency level is set lower than Strong.
How to set consistency level?
Suggestion
No response
Anything else?
No response

@LiAI-tech You might find this blog useful: https://milvus.io/blog/2022-1-27-milvus-2-0-a-glimpse-at-new-features.md#Consistency-level

@claireyuw Thanks.That explains a lot!


Cross compiled cardano-launcher fails to execute with message "libffi-6.dll"

When I perform cross-compilation and create cardano-launcher for Windows, and try to launch it, it fails with the message libffi-6.dll missing.
My machine:
OS: Windows 10
Version: 1903
Build: 18362.267
commit: 81c72dab5ef6974226b5158c474cf7b3caebaea2
Steps to reproduce:

Clone this repo
Build Windows executable with command below on Linux machine
nix-build release.nix -A nix-tools.cexes.x86_64-pc-mingw32-cardano-shell.cardano-launcher.x86_64-linux
Port the executable over to Windows machine
Run the executable cardano-launcher.exe.

Expected: cardano-launcher.exe would run without error (Or fails in a expected way)
Actual: Error message shows up, saying libffi-6.dll is missing

@cleverca22 Provided me with a workaround. Basically you have to copy libffi-6.dll from your nix-store

Assuming your current working directory is this repo's root, run the command below:
find $(nix-store -qR result) -name libffi-6.dll
It should return with a path to libffi-6.dll
Copy the file (e.g. cp path/to/libffi-6.dll ./result/bin/)

Also note that DevOps are aware of this issue


Fixes panic when spreading untyped union fragment.

closes #945
See the included test for an example repro of this panic. I haven't spent enough time to fully grok the flow of the code here, so please let me know if I'm pulling the wrong lever and accidentally fixing the issue.

Thanks! 🍻

This is now released on crates.io.


#37 updated pytest version in requirements.txt

I updated he requirements to have pytest version 7.2.1.

Ok I lied, we don't need to update the version number, go ahead and re-request review and I'll approve it.

@aryanbattula you good?

Looks good to me, @DarylDohner anything else?


make comprehensions on stored sequences tail recursive

(to avoid stack overflow on massive sequences)

Hog/MultiDestination appears to be an unreliable test, maybe should disable it.  :(


Oso does not support Kotlin data classes

Hey 👋 Finally getting around to trialing Oso as an auth solution for a Kotlin application that I'm building.
However, it seems that Oso does not support Kotlin data classes :( Or, as is always possible... I'm just doing something dumb
I am trying to emulate the Java quickstart example, with a User trying to read from a repository.
I have the following models
data class Repo(
  val id: UUID,
  val name: String,
  val isPublic: Boolean
)

data class User (
  val id: UUID,
  val email: String,
  val repoRoles: List<RepoRole>
)

I have set up OSO with the following
private val oso: Oso = Oso()

init {
  // On a tangent... it doesn't seem to even load
  // unless I explicitly repeat the class name as the second param
  oso.registerClass(Repo::class.java, "Repo")
  oso.registerClass(User::class.java, "User")
  oso.loadStr(
    """
allow(actor, action, resource) if
has_permission(actor, action, resource);

actor User {}

resource Repo {
permissions = ["read", "push", "delete"];
roles = ["contributor", "maintainer", "admin"];

"read" if "contributor";
"push" if "maintainer";
"delete" if "admin";

"maintainer" if "admin";
"contributor" if "maintainer";
}

# This rule tells Oso how to fetch roles for a Repo
has_role(actor: User, role_name: String, Repo: Repo) if
role in actor.repoRoles and
role_name = role.name and
Repo = role.Repo;

has_permission(_actor: User, "read", Repo: Repo) if
Repo.isPublic;

allow(actor, action, resource) if
has_permission(actor, action, resource);
""".trimIndent()
  )
}

Just as a test, I have created a repo with isPublic=true with name test.  However, when I run the following
fun readByName(name: String): RepoModels.Response {
    val result = Repo(
      id = UUID.randomUUID(),
      name = name,
      isPublic = true
    )
    val user = User(
      id = UUID.randomUUID(),
      email =<EMAIL_ADDRESS>      repoRoles = listOf(RepoRole(role = "admin", repo = result))
    )
    oso.authorize(user, "read", result)
    return RepoModels.Response.fromRepo(result)
  }

I get an authorization error from oso
com.osohq.oso.Exceptions$NotFoundException: Oso NotFoundException -- The current user does not have permission to read the given resource. You should handle this error by returning a 404 error to the client.
	at com.osohq.oso.Oso.authorize(Oso.java:110)
	at com.osohq.oso.Oso.authorize(Oso.java:118)
	at io.bkbn.sourdough.api.service.RepoService.readByName(RepoService.kt:81)
        // ...

If it helps, I have pushed all of this code to a repo https://github.com/bkbnio/oso-poc Instructions in the README for how to run the app.  If you have any issues with getting it set up just let me know :)
You can emulate this error by running GET localhost:8080/repo?name=test

Out of curiosity I tried making this work in https://github.com/osohq/oso/pull/1662.
Seems to work with some to the repo
Index: api/src/main/kotlin/io/bkbn/sourdough/api/service/RepoService.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/api/src/main/kotlin/io/bkbn/sourdough/api/service/RepoService.kt b/api/src/main/kotlin/io/bkbn/sourdough/api/service/RepoService.kt
--- a/api/src/main/kotlin/io/bkbn/sourdough/api/service/RepoService.kt	(revision e4e856f304b1c09de9f2cdcdb658dce59deffab5)
+++ b/api/src/main/kotlin/io/bkbn/sourdough/api/service/RepoService.kt	(date<PHONE_NUMBER>646)
@@ -35,10 +35,10 @@
 }

 # This rule tells Oso how to fetch roles for a Repo
-has_role(actor: User, role_name: String, Repo: Repo) if
+has_role(actor: User, role_name: String, repo: Repo) if
   role in actor.repoRoles and
-  role_name = role.name and
-  Repo = role.Repo;
+  role_name = role.role and
+  repo = role.repo;

 has_permission(_actor: User, "read", Repo: Repo) if
   Repo.isPublic;
Index: api/build.gradle.kts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/api/build.gradle.kts b/api/build.gradle.kts
--- a/api/build.gradle.kts	(revision e4e856f304b1c09de9f2cdcdb658dce59deffab5)
+++ b/api/build.gradle.kts	(date<PHONE_NUMBER>566)
@@ -41,7 +41,7 @@
   implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")

   // Auth
-  implementation("com.osohq:oso:0.26.4")
+  implementation("com.osohq:oso:0.26.5-SNAPSHOT")
 }

 testing {

I used this test for faster feedback:
package io.bkbn.sourdough.api.service

import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test

internal class RepoServiceTest {
  @Test
  internal fun `can read by name`() {
    val response = RepoService.readByName("foo")
    assertEquals("foo", response.name)
  }
}


Download results as JSON/KML

 Issue by dleehr
Thursday Mar 06, 2014 at 20:33 GMT
Originally opened as https://github.com/NESCent/dplace/issues/46

 Comment by dleehr
Monday Aug 11, 2014 at 15:04 GMT

Consider #107 when generating download files

 Comment by dleehr
Monday Jun 30, 2014 at 14:02 GMT

Also should make map downloadable as svg, kml. GeoDjango querysets can annotate kml easily

 Comment by dleehr
Monday Aug 11, 2014 at 15:04 GMT

Split into separate issues - CSV first

 Comment by dleehr
Monday Aug 11, 2014 at 15:05 GMT

CSV should be done first - see #120

@stefelisabeth -- is this done?

No, it isn't. It's easy enough to do, though (I think) since the REST API returns the results in JSON anyway. Is this something for first release?

No, let's leave it off. Anyone who knows what JSON is can probably figure it out anyway.


Project kanban view improvements

Feature Description
Hi,
I’m opening a feature request to talk about project kanban improvements that will make it more suitable in an Agile team with decent size (10 to 12 person). I spent some times reading the code to package a list of features with a good effort/improvements ratio.
I also read passed issues more or less linked to this one: https://github.com/go-gitea/gitea/issues/26456 https://github.com/go-gitea/gitea/issues/13814
I have passed experience with Trello and found the UI really efficient, some of my proposals are inspired by it.
You’ll find below the features I’d like to bundle in a PR
Increase the number of issues visible (limit scrolling)

Decrease card font size
Use all width of the screen (wide mode)
Remove headers: I think headers (board edition buttons and organization tab selection) take too much vertical space. We could use a toggle full screen button to hide them on demand or re-arrange the view to completly remove them. Option 2 would break common design of gitea, not sure it’s a good idea. What do you guys think?

Add issue filters to kanban view
The goal is to be able to use the board as a real project management tool: filter by assignee or owner, sort by due date etc.. After reviewing the filters in the issue list page I found that all the features are already implemented there.
Consequently, I think adding it to the project kanban view can be a good idea in terms of effort/improvements ratio. After reading the code I think it’ll require the following modifications:

Add templates/repo/issue/filters.tmpl to templates/project/view.tmpl
routers/web/org/projects.go::ViewProject should use part of routers/web/repo/issue.go::issues to filter issues and populate filters

It looks to me that the routers/web/repo/issue.go::issues function should be in a service or model layer instead of handler as it can be used by different module. Do you agree? What would be the best place to move this function?

Before I start to work on a PR, I’d like to have some feedback from the maintainers:

Do you plan to add those kinds of features in near future?
Would you agree upon merging a PR with the listed features above?
Is there an optimal time window to work on it (avoid merge conflict)?

Also any feedback from the whole community is welcome: other features, thumbs up if interested by the proposal, push in the right direction?
Screenshots
No response

i suggest include a proposal image.

i suggest include a proposal image.

a filter to kanban view could look like this (github):

i would really appreciate, if this feature would be added to gitea in the near future.

Copied from #27081

Feature Description

It would be great if Kanban board had a few improvements:
Not show closed issues and allow for a column to be marked as "closing column" with a delay

Both jira and redmine kanban does this: you set f.ex. 3 days - and when you move issue to "in production" column (and its marked as closing) - it will automaticly close issues thats been >3 days in the that column (so its easy to pull back issues that turned out to not really be properly in production - it tends to happen and you notice a bit later, and also you can then enjoy a kanban with a filled right side (in production) - but monday - next weeks kanban - it'll be empty again :)
allow ensuring all columns stay in view.. Currently drag and dropping from a column on left side - and more than just a few columns to the right (so its out of view) - is impossible. You have to manually scroll columns first and move it bits at a time - and also makes it impossible to have overview of all issues - no matter state.

depending on screen width - it could put "labels, milestones and project name" details in a popup only - so issue "cards" don't take up too much space...so they only show on hover.


Fixed userinfo command in converters.py in examples not functioning correctly

Summary
discord.py 2.0 did some refactoring with how avatars are handled - User.avatar no longer returns a default avatar if a user has a default avatar, instead returning None (as, well, according to the API, they have none). User.display_avatar allows default avatars to be returned, though.
userinfo in converters.py in examples did not account for this change and so could possibly break if the user mentioned for it has a default avatar. This basically fixes that by using display_avatar over avatar.
Checklist

[x] If code changes were made then they have been tested.

[ ] I have updated the documentation to reflect the changes.

[ ] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

LGTM

just fix the conflict

Fixed!


spawn_shutdown_test fails on app_jitk-linux-debug-x64, app_jitk-linux-release-x64 bots

from buildbot logs
--- Command "app_jit" (took 04.000614s):
DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart --snapshot=/b/s/w/ir/out/ReleaseX64/generated_compilations/app_jitk-linux-release-x64/runtime_tests_vm_dart_2_spawn_shutdown_test/out.jitsnapshot --snapshot-kind=app-jit --enable-asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/.packages /b/s/w/ir/runtime/tests/vm/dart_2/spawn_shutdown_test.dart

exit code:
-6

stdout:
Info: Compiling without sound null safety
Starting 50 workers...
Waiting for 0:00:02.000000 before exit...

stderr:
===== CRASH =====
si_signo=Segmentation fault(11), si_code=1, si_addr=0x648
version=2.15.0-edge.bda70c84892923769c40a131886d6e70fadc99cb (be) (Thu Sep 2 14:14:35 2021 +0000) on "linux_x64"
pid=2240, thread=2256, isolate_group=(nil)((nil)), isolate=(nil)((nil))
isolate_instructions=0, vm_instructions=55722dfdd5a0
  pc 0x000055722e1a76ee fp 0x00007f7e894fec70 dart::Message::~Message()+0xae
  pc 0x000055722e109167 fp 0x00007f7e894fec90 dart::IsolateSpawnState::~IsolateSpawnState()+0x77
  pc 0x000055722e10b965 fp 0x00007f7e894fed00 out/ReleaseX64/dart+0x1e32965
  pc 0x000055722e2cbea8 fp 0x00007f7e894fed80 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x148
  pc 0x000055722e2cc2dc fp 0x00007f7e894fedb0 dart::ThreadPool::Worker::Main(unsigned long)+0x5c
  pc 0x000055722e244df8 fp 0x00007f7e894fee70 out/ReleaseX64/dart+0x1f6bdf8
-- End of DumpStackTrace

--- Re-run this test:
python3 tools/test.py -n app_jitk-linux-release-x64 vm/dart_2/spawn_shutdown_test

Fixed in https://dart.googlesource.com/sdk/+/eab69f12f86119b002b390ea02e16601953d482e

This started failing again on [gardening] Ensure we have an active isolate group when destroying IsolateSpawnState...[vm/compiler] Make closures have no context if no variables are closed over. cc @mkustermann.
--- Command "app_jit" (took 44.000694s):
DART_CONFIGURATION=DebugX64 out/DebugX64/dart --snapshot=/b/s/w/ir/out/DebugX64/generated_compilations/app_jitk-linux-debug-x64/runtime_tests_vm_dart_2_spawn_shutdown_test.dart_1/out.jitsnapshot --snapshot-kind=app-jit --enable-asserts --no-enable-isolate-groups --ignore-unrecognized-flags --packages=/b/s/w/ir/.packages /b/s/w/ir/runtime/tests/vm/dart_2/spawn_shutdown_test.dart

exit code:
-6

stdout:
Info: Compiling without sound null safety
Starting 50 workers...
Waiting for 0:00:02.000000 before exit...

stderr:
../../runtime/lib/isolate.cc: 823: error: expected: IsolateGroup::Current() == state_->isolate_group()
version=2.15.0-edge.462eb6a1054f20e0454dca1daa2ee6f805f50a2c (be) (Fri Sep 3 13:15:57 2021 +0000) on "linux_x64"
pid=22756, thread=23597, isolate_group=(nil)((nil)), isolate=(nil)((nil))
isolate_instructions=0, vm_instructions=560ce91690e0
  pc 0x0000560ce956258c fp 0x00007febc05feac0 dart::Profiler::DumpStackTrace(void*)+0x7c
  pc 0x0000560ce9169294 fp 0x00007febc05feba0 dart::Assert::Fail(char const*, ...) const+0x84
  pc 0x0000560ce931b62e fp 0x00007febc05febf0 out/DebugX64/dart+0x201262e
  pc 0x0000560ce931b3b9 fp 0x00007febc05fec30 out/DebugX64/dart+0x20123b9
  pc 0x0000560ce961aecb fp 0x00007febc05fecd0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x1fb
  pc 0x0000560ce961b867 fp 0x00007febc05fed20 dart::ThreadPool::Worker::Main(unsigned long)+0x147
  pc 0x0000560ce9559734 fp 0x00007febc05fee70 out/DebugX64/dart+0x2250734
-- End of DumpStackTrace

--- Re-run this test:
python3 tools/test.py -n app_jitk-linux-debug-x64 vm/dart_2/spawn_shutdown_test/1

log: https://dart-ci.appspot.com/log/app-kernel-linux-debug-x64/app_jitk-linux-debug-x64/9222/vm/dart_2/spawn_shutdown_test/1

Have uploaded a fix in https://dart-review.googlesource.com/c/sdk/+/212584


backlinks exploder (feature request)

Hello,
Congrats this is a very nice plugin!
I wanted to know if it may be possible instead of using the outgoing links we could choose to embed the backlinks of the note?
Thank you!

Hi there, yeah that's on my todo list. So will hopefully add the feature soon.

This should be live with 0.2.0, make sure you update with BRAT
let me know if you find any issues.

Thank you this is great!
What do you think about the idea of implemeting some commands like those for the graph local view?

Yeah was thinking about it, but wanted to make it as simple as possible. Will look at doing things like this once it's in the community directory and see if people are using it.


Requirements are duplicated in several places

Testing locally I've found that SciPy was still not present in setup.py. All the tests were passing because installation is not tested at all. Even if we do, every Continuous Integration configuration file is explicitely listing the requirements, so every change has to be copied four times. This is annoying and a different approach should be used. According to https://caremad.io/2013/07/setup-vs-requirement/, requirements.txt files are for applications, so those are not an option if we want to be consistent.

I refined the scope of this issue and opened #87 instead.

Having conda and pip separately prevents us from unifying requirements. The situation might be better in 2019, but this is worth closing now.


ufunc 'over' not supported for the input types

I am trying to generate "10-million-point datashaded plots: interactive" from https://anaconda.org/jbednar/nyc_taxi/notebook.
I am seeing this error:
TypeError: ufunc 'over' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Here is my code:
import datashader as ds
from datashader.bokeh_ext import InteractiveImage
from functools import partial
from datashader.utils import export_image
from datashader.colors import colormap_select, Greys9, Hot, viridis, inferno
from IPython.core.display import HTML, display
from datashader import transfer_functions as tf
from pyproj import Proj, transform
from bokeh.io import output_notebook, show
from bokeh.plotting import figure
from bokeh.io import output_file, show
from bokeh.models import (
  GMapPlot, GMapOptions, ColumnDataSource, Circle, DataRange1d, PanTool, WheelZoomTool, BoxSelectTool
)
import pandas as pd
output_notebook()

plot_width  = int(750)
plot_height = int(plot_width//1.2)
NYC = x_range, y_range = ((-8242000,-8210000), (4965000,4990000))

%time df = pd.read_csv('/Users/amitrathi/Documents/places_2k_transformed.csv',usecols= ['x', 'y', 'count'])

background = "black"
export = partial(export_image, export_path="export", background=background)
cm = partial(colormap_select, reverse=(background=="black"))

def base_plot(tools='pan,wheel_zoom,reset',plot_width=plot_width, plot_height=plot_height, **plot_args):
    p = figure(tools=tools, plot_width=plot_width, plot_height=plot_height,
        x_range=x_range, y_range=y_range, outline_line_color=None,
        min_border=0, min_border_left=0, min_border_right=0,
        min_border_top=0, min_border_bottom=0, **plot_args)

    p.axis.visible = False
    p.xgrid.grid_line_color = None
    p.ygrid.grid_line_color = None
    return p

def create_image(x_range, y_range, w=plot_width, h=plot_height):
    cvs = ds.Canvas(plot_width=w, plot_height=h, x_range=x_range, y_range=y_range)
    agg = cvs.points(df, 'x', 'y', ds.count('count'))
    img = tf.shade(agg, cmap=Hot, how='eq_hist')
    return tf.dynspread(img, threshold=0.5, max_px=4)

p = base_plot(background_fill_color=background)
show(p)
im = create_image(*NYC)
print im.data

print type(im)
print im

export(im,"NYCT_hot")
InteractiveImage(p, create_image)

Here is a full stack trace:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-20-1aad8bfd0056> in <module>()
     56 print im
     57
---> 58 export(im,"NYCT_hot")
     59 InteractiveImage(p, create_image)
     60

/Users/amitrathi/miniconda2/lib/python2.7/site-packages/datashader/utils.pyc in export_image(img, filename, fmt, _return, export_path, background)
    131
    132     if background:
--> 133         img=set_background(img,background)
    134
    135     img.to_pil().save(os.path.join(export_path,filename+fmt))

/Users/amitrathi/miniconda2/lib/python2.7/site-packages/datashader/transfer_functions.pyc in set_background(img, color)
    361         return img
    362     background = np.uint8(rgb(color) + (255,)).view('uint32')[0]
--> 363     data = over(img.data, background)
    364     return Image(data, coords=img.coords, dims=img.dims)
    365

TypeError: ufunc 'over' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Unfortunately, that's a very confusing error message.  I've seen that happen for cases when combining slightly offset xarray aggregates, each obtained over a different location in the input space, which isn't at all what the message suggests.
In any case, can you please try using the current version of datashader with the current version of that example, by following the instructions at:
https://raw.githubusercontent.com/bokeh/datashader/master/examples/README.md
That way I'll know if it's something we need to address.


docs.flutter.io should show git hash

That will make it easier to verify if the dart docs are upto date.
Maybe also include a "last updated on: ".

Good call. dartdoc has a way to insert a snippet into the head or tail of each generated file.


facetgrid: fix case when vmin == vmax

[x] Closes #3734
[x] Tests added
[x] Passes isort -rc . && black . && mypy . && flake8
[x] Fully documented, including whats-new.rst for all changes and api.rst for new API

"Plotting PRs go brrr" 🖨


Cannot reset index of dask.dataframe when underyling pandas Dataframes have multiIndex

There appears to be an issue when resetting the index of a dask.dataframe after performing a dd.groupby when the resulting dask dataframe contains a multi index:
import pandas as pd
import numpy as np
import dask.dataframe as dd

df = pd.DataFrame(np.random.rand(2,3), columns=['A', 'B', 'C'])
ddf = dd.from_pandas(df, npartitions=1)
grouped = ddf.groupby(['A', 'B']).agg({'C': 'sum'})
grouped = grouped.reset_index()
grouped.compute()

Traceback:
Traceback (most recent call last):
  File "gist.py", line 9, in <module>
    grouped.compute()
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/base.py", line 95, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/base.py", line 202, in compute
    results = get(dsk, keys, **kwargs)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/threaded.py", line 76, in get
    **kwargs)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/async.py", line 500, in get_async
    raise(remote_exception(res, tb))
dask.async.ValueError: Length mismatch: Expected axis has 3 elements, new values have 2 elements

Traceback
---------
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/async.py", line 266, in execute_task
    result = _execute_task(task, data)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/async.py", line 247, in _execute_task
    return func(*args2)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/dataframe/core.py", line 3111, in apply_and_enforce
    return _rename(c, df)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/dask/dataframe/core.py", line 3148, in _rename
    df.columns = columns
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/pandas/core/generic.py", line 2757, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/src/properties.pyx", line 65, in pandas.lib.AxisProperty.__set__ (pandas/lib.c:46249)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/pandas/core/generic.py", line 448, in _set_axis
    self._data.set_axis(axis, labels)
  File "/Users/rwest/anaconda/envs/test_dask/lib/python2.7/site-packages/pandas/core/internals.py", line 2802, in set_axis
    (old_len, new_len))

Env: (conda create --name test_dask python=2.7.13 dask=0.14.1 pandas=0.19.2 numpy=1.12.1)
backports                 1.0                      py27_0
backports_abc             0.5                      py27_0
bokeh                     0.12.4                   py27_0
chest                     0.2.3                    py27_0
cloudpickle               0.2.2                    py27_0
dask                      0.14.1                   py27_0
futures                   3.0.5                    py27_0
heapdict                  1.0.0                    py27_1
jinja2                    2.9.6                    py27_0
locket                    0.2.0                    py27_1
markupsafe                0.23                     py27_2
mkl                       2017.0.1                      0
numpy                     1.12.1                   py27_0
openssl                   1.0.2k                        1
pandas                    0.19.2              np112py27_1
partd                     0.3.7                    py27_0
pip                       9.0.1                    py27_1
python                    2.7.13                        0
python-dateutil           2.6.0                    py27_0
pytz                      2017.2                   py27_0
pyyaml                    3.12                     py27_0
readline                  6.2                           2
requests                  2.13.0                   py27_0
setuptools                27.2.0                   py27_0
singledispatch            <IP_ADDRESS>                  py27_0
six                       1.10.0                   py27_0
sqlite                    3.13.0                        0
ssl_match_hostname        <IP_ADDRESS>                  py27_1
tk                        8.5.18                        0
toolz                     0.8.2                    py27_0
tornado                   4.5.1                    py27_0
wheel                     0.29.0                   py27_0
yaml                      0.1.6                         0
zlib                      1.2.8                         3

Thanks for the bug report and excellent test case. I've found the issue, fix coming soon.

Fixed by #2279:
In [1]: %load test.py

In [2]: # %load test.py
   ...: import pandas as pd
   ...: import numpy as np
   ...: import dask.dataframe as dd
   ...: import dask
   ...: dask.set_options(get=dask.get)
   ...:
   ...: df = pd.DataFrame(np.random.rand(2,3), columns=['A', 'B', 'C'])
   ...: ddf = dd.from_pandas(df, npartitions=1)
   ...: grouped = ddf.groupby(['A', 'B']).agg({'C': 'sum'})
   ...: grouped = grouped.reset_index()
   ...: grouped.compute()
   ...:
Out[2]:
          A         B         C
0  0.005358  0.411470  0.017473
1  0.445544  0.798155  0.093882

Still when using groupby().apply() and getting back multi index dataframe (e.g when not using agg, but leaving the dataframes created by groupby and apply, can't use reset_index with drop = False, getting this error

ValueError: Length mismatch: Expected axis has 5 elements, new values have 4 elements

@thebeancounter could you ,pmake a new issue with an example that causes the error?

Still when using groupby().apply() and getting back multi index dataframe (e.g when not using agg, but leaving the dataframes created by groupby and apply, can't use reset_index with drop = False, getting this error

ValueError: Length mismatch: Expected axis has 5 elements, new values have 4 elements

having the same issue

@chanansh Thank you for reporting this, would you mind opening a new issue since this one is closed, and adding a minimal reproducible example?

That the problem. It is hard to make an example without real data and applied function. However I am pretty sure there is an issue. Maybe the meta is not well configured. Should meta include the groupby columns?

@chanansh I've tried to recreate the issue based on your description, but I'm having trouble reproducing the error.
Here's what I tried:
import numpy
import pandas
import dask
from dask import dataframe

numpy.random.seed(0)

labels = list('abcdefg')
animals = ["dog", "cat", "bird", "snake", "hamster", "fish"]
humans = ["Paul", "Naty", "James", "Ian", "Florian", "Gabe"]

index = pandas.MultiIndex.from_product(
     [labels, animals, humans],
     names=["labels", "animals", "humans"]
) # multi-index will be reset, created to quickly populate the dataframe

pdf = pandas.DataFrame(
    data=numpy.random.normal(size=(252, 6)),
    columns=list("UVWXYZ"),
    index=index
).reset_index()  # plain dataframe with range index

result = (
    dataframe.from_pandas(pdf.reset_index(), npartitions=9)
    .groupby(["labels", "animals"])
    .apply(lambda g: g[["X", "Y", "Z"]].max() - g[["X", "Y", "Z"]].min())
    .reset_index(drop=False).compute()
)

And that gives me:

  labels  animals         X         Y         Z
0      b      cat  2.571309  0.934713  2.594509
0      a      dog  4.221690  2.215470  2.446637
1      b    snake  3.694515  4.023704  1.632710
2      d      dog  3.445013  1.694377  2.901607
3      d  hamster  1.684746  2.156615  3.303043
4      g    snake  3.243250  3.826414  2.945886
0      d     fish  2.570617  3.053230  1.465397
1      d    snake  1.588346  2.109322  0.332822
2      e     fish  2.479084  4.031237  1.761037
3      e  hamster  3.352674  2.466010  2.355520
4      f      dog  2.020597  3.405529  2.570004
0      a      cat  2.113185  1.981886  2.197508
1      a     fish  3.766418  2.392517  2.425562
2      b     fish  0.728830  2.118649  3.136495
3      c      cat  1.102926  2.158529  3.151620
4      c  hamster  1.603718  1.734855  1.748636
5      d      cat  3.909820  2.466731  3.591288
6      e    snake  1.082483  1.791565  2.882663
7      f     fish  2.976117  3.723578  3.025417
8      f  hamster  2.835346  3.767378  2.181725
0      b  hamster  2.110311  3.903699  1.734851
1      e     bird  1.634740  3.004573  2.714210
2      g     bird  2.422698  1.779254  3.927664
0      f      cat  1.631975  1.437865  2.635382
1      g      cat  3.258653  3.090533  2.157150
2      g      dog  2.305043  2.220582  1.077304
0      b     bird  1.395947  2.703366  2.137760
1      c    snake  2.150165  2.954054  2.308567
2      e      cat  2.707146  2.176743  3.224071
3      f     bird  1.603972  1.849892  1.130408
4      g     fish  1.168869  2.427379  1.995151
5      g  hamster  1.544309  1.546933  1.714131
0      c     bird  3.711293  2.404028  2.325407
1      c      dog  3.571874  1.782090  2.999873
2      d     bird  3.941503  3.579243  2.105958
0      a     bird  2.628431  2.953903  2.590695
1      a  hamster  1.943455  2.172738  3.474303
2      a    snake  1.481396  1.475305  2.118364
3      b      dog  2.133247  1.477010  2.352912
4      c     fish  2.052952  1.482740  1.669847
5      e      dog  2.266476  3.965185  1.926875
6      f    snake  1.717683  3.786539  1.804105

My version:
In [43]: numpy.__version__
Out[43]: '1.21.6'

In [44]: pandas.__version__
Out[44]: '1.4.2'

In [45]: dask.__version__
Out[45]: '2022.6.0'

the situation I have is that the dataframe has index BEFORE the groupby. I don't see a way in the documentation to exploit the fact the data is already indexed.
If I run
import numpy
import pandas
import dask
from dask import dataframe

numpy.random.seed(0)

labels = list('abcdefg')
animals = ["dog", "cat", "bird", "snake", "hamster", "fish"]
humans = ["Paul", "Naty", "James", "Ian", "Florian", "Gabe"]

index = pandas.MultiIndex.from_product(
     [labels, animals, humans],
     names=["labels", "animals", "humans"]
) # multi-index will be reset, created to quickly populate the dataframe

pdf = pandas.DataFrame(
    data=numpy.random.normal(size=(252, 6)),
    columns=list("UVWXYZ"),
    index=index
).reset_index()  # plain dataframe with range index

dask_df = dataframe.from_pandas(pdf.reset_index(), npartitions=9)
result = (
    dask_df.set_index('labels')
    .groupby(["labels", "animals"])
    .apply(lambda g: g.sort_values("U")[["U","V", "X", "Y", "Z"]].diff()).compute()
)
result.reset_index(drop=False)

Then I get

ValueError: cannot insert labels, already exists

It's not the same issue but I think it is a cause.

I think I found it:
import numpy
import pandas
import dask
from dask import dataframe

numpy.random.seed(0)

labels = list('abcdefg')
animals = ["dog", "cat", "bird", "snake", "hamster", "fish"]
humans = ["Paul", "Naty", "James", "Ian", "Florian", "Gabe"]

index = pandas.MultiIndex.from_product(
     [labels, animals, humans],
     names=["labels", "animals", "humans"]
) # multi-index will be reset, created to quickly populate the dataframe

pdf = pandas.DataFrame(
    data=numpy.random.normal(size=(len(index), 6)),
    columns=list("UVWXYZ"),
    index=index
).reset_index()  # plain dataframe with range index

dask_df = dataframe.from_pandas(pdf.reset_index(), npartitions=9)
result = (
    dask_df
    .groupby(["labels", "animals"])
    .apply(lambda g: g.sort_values("U")[["U","V", "X", "Y", "Z"]].diff())
)
result.compute()

The result before compute hides the index columns:

After computing it is ok

@chanansh Does your previous comment mean that dask is behaving as you'd expect?

No, because even before compute, index columns should be seen...

I see -- that might be tricky, but I'll dig and ask around to see if that's something we can put in the queue


se for WLS and FIML

Standard errors for WLS and FIML are not computed correctly at the moment

Seems to be correct now; however, the tolerance is quite high (1-e2 for WLS). Maybe ask Yves about this.


Getting a validation error when updating a text property on a page.

Describe the bug
Getting a validation error when updating a text property on a page.
To Reproduce
Node version: v18.4.0
Notion JS library version: 2.2.3
Steps to reproduce the behavior:
Call API from a local server in React app.
The error message
@notionhq/client warn: request fail {
  code: 'validation_error',
  message: 'body failed validation. Fix one:\n' +
    'body.properties.Description.id should be defined, instead was `undefined`.\n' +
    'body.properties.Description.name should be defined, instead was `undefined`.\n' +
    'body.properties.Description.start should be defined, instead was `undefined`.'
}

My code
      const response = await notion.pages.update({
        page_id: PAGE_ID,
        "properties": {
          "Description": {
            "type": "rich_text",
            "rich_text": [{"text": {"content":"description"}}]
          }
        },
      });

Refers:  https://developers.notion.com/reference/patch-page

The issue is resolved. The rich text array object itself should be given when updating a rich text property of a page.
const response = await notion.pages.update({         page_id: PAGE_ID,         "properties": {           "Description": [{"text": {"content":"description"}}]         },       });


Add example 6 to list devices and services

Add a example with list devices, services...
1 device(s) found

Device: Id: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx Address: Ok("xx:xx:xx:xx:xx:xx") Rssi: Ok(-39) Name: Ok("xxx-xxxx")
  Is paired: Ok(true)
  Is connected: Ok(true)
  Is ready to receive: true
  Gatt service Id: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service001a UUID: Ok("00010001-574f-4f20-5370-6865726f2121") Device : Ok("/org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx") Is primary: Ok(true)
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service001a/char001e UUID: Ok("00010003-574f-4f20-5370-6865726f2121") Flags: Ok(["write-without-response", "write", "notify"])
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service001a/char001b UUID: Ok("00010002-574f-4f20-5370-6865726f2121") Flags: Ok(["write-without-response", "write", "notify"])
  Gatt service Id: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service000c UUID: Ok("00020001-574f-4f20-5370-6865726f2121") Device : Ok("/org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx") Is primary: Ok(true)
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service000c/char0014 UUID: Ok("00020005-574f-4f20-5370-6865726f2121") Flags: Ok(["write-without-response", "write"])
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service000c/char0012 UUID: Ok("00020004-574f-4f20-5370-6865726f2121") Flags: Ok(["read"])
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service000c/char000f UUID: Ok("00020002-574f-4f20-5370-6865726f2121") Flags: Ok(["write", "notify"])
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service000c/char000d UUID: Ok("00020003-574f-4f20-5370-6865726f2121") Flags: Ok(["write-without-response"])
  Gatt service Id: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service0008 UUID: Ok("00001801-0000-1000-8000-00805f9b34fb") Device : Ok("/org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx") Is primary: Ok(true)
    Characteristic Name: /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/service0008/char0009 UUID: Ok("00002a05-0000-1000-8000-00805f9b34fb") Flags: Ok(["indicate"])

@bubulemaster sorry for the late answer (we are not actively working on this project anymore), and thanks for the PR. I assume you have tested this example and will merge it.


Automatic updates have stopped

The last automated update was on 04/25, evidently they aren't working any more.

sorry, some repos 404 stopped the CI.
Fixed now.


1.65.0 Clippy complaining in NifStruct derives.

When using #[derive(NifStruct)] on rust 1.65.0, clippy reports "needless borrows" on all fields of the struct. I believe this is caused by the derived Encoder impl. I also noticed that rustler does not add the #[automatically_derived] attribute on the modules and impls derived automatically. It is possible that adding this attribute could solve this problem.

Thanks for the report! I started working on it in #499. Alas, adding automatically_derived does not seem to suffice (or I need to apply it somewhere else as well).

I allowed clippy::needless_borrow for the generated functions in #499. That should fix this.


Added support for Polish identifier generators #695

Closes #695

@Nawrok thank you very much, the PR looks great! I made one minor suggestion in one of the tests.

@armandino Thanks, I appreciate, but I don't see your suggestion anywhere in the review

@Nawrok thanks again! Merged.


[Idea] Dye everything more than just armor?

It can us from installing many block mod that can cause long loading time etc. Would be efficient in mods list if we can dye every item to all available dye (brick, stone, coble etc)! Isn't that cool, yes? :)

Due to the way blocks in Minecraft work you cannot simply dye them and make them render in their colors.
There's a long technical explanation behind it, but if it were that simple, there'd already be multiple mods doing it.
The closest thing that currently exists is Mo' Colors (which I highly recommend you use!) and even that doesn't actually color the original blocks but replaces them with new ones which are colorable.


Update leksah.rb

Upgrade <IP_ADDRESS> to <IP_ADDRESS>.
According to https://github.com/leksah/leksah/wiki/Leksah-0.14.4

Looks good, thanks! :+1:


Upstream/fork merge April 2023

Systems/configurations to test:

[ ] unified-dev(+UFS) on Acorn (Alex)
[ ] ufs-weather-model-static(+UFS) on Acorn (Alex)
[ ] unified-dev(+UFS) on Hera (Alex)
[ ] unified-dev(+UFS) on Orion (Alex)
[x] ufs-weather-model-static (build only) on personal machine (Alex)

Starting over with new branch: https://github.com/NOAA-EMC/spack-stack/pull/545


Adding the type 1 of new SiterwellGS361 TRV

Type 2 is added in #1000 but the type 1 was not added so i putting it in so the user have it working out of the box then its shoeing up.
("_TYST11_ps5v5jor", "s5v5jor"),

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.588%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3970

Relevant Lines:
4807

💛  - Coveralls

Needs a rebase

Rebasing was not working well (as normal for my) so doing on new and closing this :-(((


TU >= Partitions

"the number of partitions in an event hub be greater than or equal to the number of throughput units" > should be> "the number of throughput units be greater than or equal to the number of partitions in an event hub"

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

ID: 71adf8e4-a51b-d20d-39e1-fd7551bc94b9
Version Independent ID: 3d26fbc0-b6ae-e0ca-089f-e4966c19ef22
Content: Overview of features - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-features.md
Service: event-hubs
GitHub Login: @ShubhaVijayasarathy
Microsoft Alias: shvija

@eram Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and will provide an update as appropriate.

Hi @eram, I have double checked with internal team about this query and confirmed that it is always recommended to have the number partitions  greater than or equal to the number of throughput units.
Lets say the namespace has 10 throughput units, then it is recommended to have at least 10 partitions to utilize the throughput capacity.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.


[5.4] Route parameter being bound to / when there is actually no parameter (using custom parameter regex)

Laravel Version: 5.4

Description:
The Laravel RouteParameterBinder prepends an extra / onto the request path when the site root is requested.
This becomes an issue if in some cases when you attempt to modify the parameter matching regex for a route to use something other than a forward slash as a parameter delimiter (or, in the case shown below, try to use the entire parameter string as a single argument).
This issue is, admittedly, nuanced and will mostly only be noticed in edge cases. However, the bug itself (and it's fix) is very simple and I think the Router/RouteBinder manages to work despite itself, due to the special nature of the forward slash in URLs and how they're typically used in most applications.
Explanation:
The issue is happening in the Routing/RouteParameterBinder@bindPathParameters method.
The string that gets passed to preg_match ends up being "//" when a request is made to the root of the application. In most cases, this is okay, since the default parameter regex pattern is essentially [^/]++.
However, if you change the router parameter regex to something like (.+), you start getting undesired behavior on the controller action.
Example
<?php

// writing this in the context of a Route test, I think it's easier to
// wrap your head around that way

// tests/Routing/RoutingRouteTest.php
public function testLeadingParamDoesntReceiveForwardSlashOnEmptyPath() {
	$router = $this->getRouter();
	$outer_one = 'abc1234'; // a string that is not one we're testing
	$router->get('{one?}', [
		'uses' => function($one = null) uses (&$outer_one) {
			$outer_one = $one;
			return $one;
		},
		'where' => ['one' => '(.+)'],
	]);

	$this->assertEquals('', $router->dispatch(Request::create(''))->getContent());
	$this->assertNull($outer_one);

	// Expects: '' ($outer_one === null)
	// Actual: '/' ($outer_one === '/')
}

Closing since there's a PR opened already.


Show pretty help stderr when cmd_sprout fails

Closes #60

And IMO all of the print outputs after cmds failing should be changed to write to stderr.

Sounds sensible to me