Error dotnet 7?

When installing the nuget, and when adding the information in the MauiProgram.cs I get the following error:
Error CS1061 'MauiAppBuilder' does not contain a definition for 'UseBarcodeReader' and no accessible extension method 'UseBarcodeReader' accepting a first argument of type 'MauiAppBuilder' could be found (are you missing a using directive or an assembly reference?) QR (net7 .0-android), QR (net7.0-ios), QR (net7.0-maccatalyst), QR (net7.0-windows10.0.19041.0) E:\QR\QR\MauiProgram.cs 13 Enable

Ditto!  Dotnet 7 and latest Visual Studio 2022 enterprise and I got the very same error

UseBarcodeReader() exists in the ZXing.Net.Maui.Controls namespace, make sure you have the correct nuget package and namespace referenced in your project.
I've got it working fine in .NET 7

@MaximG1234 , thank you!  I didn't add the ZXing.Net.Maui.Controls library... didn't know I needed to from my reading of the README doc but once I added it and included "using ZXing.Net.Maui.Controls;" I was able to compile

This deserves a pull request on the documentation. Because this is not obvious from the current README


Inconsistent behaviour between CSV::Table.new and CSV.parse

Tables created by CSV::Table.new and CSV.parse behave differently when it comes to accessing values, to the extent that converting a table created by ::new gains additional functionality (when accessing values) by being converted into a string and then parsed by CSV.parse.
Additionally, a number of comparison operators return results that seem inconsistent with reality, at least when compared visually.
Testcase (of sorts) attached below:
require 'csv'

# Array of strings making up the equivalent of a 3-row CSV file
row0 = [ 'header0', 'header 1', 'Header 2' ]
row1 = [ 'r1value0', 'r1value2', 'r1value3' ]
row2 = [ 'r2value0', 'r2value2', 'r2value3' ]

# Array of rows made from the previous array of strings
rows = [
  CSV::Row.new(row0, [], header_row = true),
  CSV::Row.new([], row1),
  CSV::Row.new([], row2)
]

# Heredoc for that same CSV file
tablestring = <<-EOT
header0,header 1,Header 2
r1value0,r1value2,r1value3
r2value0,r2value2,r3value3
EOT

# Table made using CSV::Table.new on the array of rows
table1 = CSV::Table.new(rows, headers: row0)

# Table made using CSV.parse on the CSV heredoc
table2 = CSV.parse(tablestring, headers: true)

# Table made using the previous table converted toputs "table1.to_csv & tablestring: #{table1.to_csv == tablestring}" a CSV string (i.e. what should be equivalent to the CSV heredoc)
table3 = CSV.parse(table1.to_csv, headers: true)

puts "Print out the .to_csv form of each table"
puts "tablestring: \n#{tablestring}"
puts "table1.to_csv: \n#{table1.to_csv}"
puts "table2.to_csv: \n#{table2.to_csv}"
puts "table3.to_csv: \n#{table3.to_csv}"

puts "\n\nTest whether the .to_csv form of the tables is the same as the CSV heredoc (it should be)"
puts "table1.to_csv == tablestring: #{table1.to_csv == tablestring}"
puts "table2.to_csv == tablestring: #{table2.to_csv == tablestring}"
puts "table3.to_csv == tablestring: #{table3.to_csv == tablestring}"

puts "\n\nTest whether the headers of the tables are the same (they should be)"
puts "table1.headers & table2.headers: #{table1.headers == table2.headers}"
puts "table1.headers & table3.headers: #{table1.headers == table3.headers}"
puts "table2.headers & table3.headers: #{table2.headers == table3.headers}"

puts "\n\nAttempt to access the first column of each table"
puts "table1['header0']: #{table1['header0']}"
puts "table2['header0']: #{table2['header0']}"
puts "table3['header0']: #{table3['header0']}"

puts "\n\nAttempt to access the first row of each table"
puts "table1[0]: #{table1[0]}"
puts "table2[0]: #{table2[0]}"
puts "table3[0]: #{table3[0]}"

puts "\n\nTest whether each of the tables are the same"
puts "table1 == table2: #{table1 == table2}"
puts "table1 == table3: #{table1 == table3}"
puts "table2 == table3: #{table2 == table3}"

puts "\n\nPrint out each table"
puts "table1: \n#{table1}"
puts "table2: \n#{table2}"
puts "table3: \n#{table3}"

I am not sure how much of this behaviour is a bug as opposed to incorrect documentation or counterintuitive behaviour. However, the inability to access columns in tables created by CSV::Table.new is certainly very annoying, and while the workaround of converting those tables to csv strings then parsing them does work for that specific issue, it hardly seems an ideal solution.
$ ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
$ gem list --local csv
csv (3.2.8, 3.2.7, default: 3.2.2)

Is it just happened by a typo?
--- /tmp/a.rb.orig	2023-11-25 07:39:48.942802182 +0900
+++ /tmp/a.rb	2023-11-25 07:39:59.030796716 +0900
@@ -16,7 +16,7 @@
 tablestring = <<-EOT
 header0,header 1,Header 2
 r1value0,r1value2,r1value3
-r2value0,r2value2,r3value3
+r2value0,r2value2,r2value3
 EOT

Ah. Yes, that certainly cuts down on a few of the issues. Some still remain though, I've attatched a testcase with the remaining ones.
require 'csv'

# Array of strings making up the equivalent of a 3-row CSV file
row0 = [ 'header0', 'header 1', 'Header 2' ]
row1 = [ 'r1value0', 'r1value2', 'r1value3' ]
row2 = [ 'r2value0', 'r2value2', 'r2value3' ]

# Array of rows made from the previous array of strings
rows = [
  CSV::Row.new(row0, [], header_row = true),
  CSV::Row.new([], row1),
  CSV::Row.new([], row2)
]

# Heredoc for that same CSV file
tablestring = <<-EOT
header0,header 1,Header 2
r1value0,r1value2,r1value3
r2value0,r2value2,r2value3
EOT

# Table made using CSV::Table.new on the array of rows
table1 = CSV::Table.new(rows, headers: row0)

# Table made using CSV.parse on the CSV heredoc
table2 = CSV.parse(tablestring, headers: true)

# Table made using the previous table converted toputs "table1.to_csv & tablestring: #{table1.to_csv == tablestring}" a CSV string (i.e. what should be equivalent to the CSV heredoc)
table3 = CSV.parse(table1.to_csv, headers: true)

puts "Test whether the headers of the tables are the same (they should be)"
puts "table1.headers & table2.headers: #{table1.headers == table2.headers}"
puts "table1.headers & table3.headers: #{table1.headers == table3.headers}"
puts "table2.headers & table3.headers: #{table2.headers == table3.headers}"

puts "\n\nAttempt to access the first column of each table"
puts "table1['header0']: #{table1['header0']}"
puts "table2['header0']: #{table2['header0']}"
puts "table3['header0']: #{table3['header0']}"

puts "\n\nAttempt to access the first row of each table"
puts "table1[0]: #{table1[0]}"
puts "table2[0]: #{table2[0]}"
puts "table3[0]: #{table3[0]}"

puts "\n\nTest whether each of the tables are the same"
puts "table1 == table2: #{table1 == table2}"
puts "table1 == table3: #{table1 == table3}"
puts "table2 == table3: #{table2 == table3}"

puts "\n\nPrint out each table"
puts "table1: \n#{table1}"
puts "table2: \n#{table2}"
puts "table3: \n#{table3}"

Could you try the following?
rows = [
  CSV::Row.new(row0, row1),
  CSV::Row.new(row0, row2)
]
~``

That gives me this result:

Ah-- I had made a typo when using your suggested changes: fixing the typo gives me the same results as you.

OK. Is it expected result? Do we still have any problem?

That leaves us here:
This doesn't work:
rows = [
  CSV::Row.new(row0, [], header_row = true),
  CSV::Row.new([], row1),
  CSV::Row.new([], row2)
]

This does:
rows = [
  CSV::Row.new(row0, row1),
  CSV::Row.new(row0, row2)
]

If we run the second one through CSV.parse
To me it looks like the issue is that CSV.parse accepts things that CSV::Table.new will not work properly with.
I'm not sure whether that is intended behaviour or an issue, though.

Feel free to close this issue if this is intended behaviour.

CSV.parse(table1.to_csv, headers: true) doesn't have any problem. Because it receives CSV text not CSV::Table.
If we want to avoid the wrong CSV::Table.new call, we can add a validation for the case. But I think that we don't need it for now.


Gage metadata additions.

This PR adds additional metadata to gages to better characterize how well accurate the gage links might be. See #26 and #38 for more.
Metadata now looks like:

I addressed things in a couple follow up commits and went ahead and merged. Thanks for the dialogue @jds485 !!!


issue with formatNumber

Hi,
formatNumber(2.70%0.05,2) is returning undefined instead of 0.
could you help to check? This was working in prior release. Thank you.

@pegasus45 nice catch! The problem is that 2.70%0.05 evaluates to the number 2.7755575615628914e-17 (should be 0 btw, but that's a floating point error in JavaScript) that uses scientific notation. And the toFixed method was actually using scientific notation to avoid these floating point errors, but did not expect an incoming scientific notation.
I updated the method in #165 and this is now fixed, you could copy the code from there until there is a merge.


added list options to podrefresh logic

because the functions to search for workloads mounting certificate
secret was searching across all namespaces, so changed to check only in
the namespace of the Certificate which triggered the reconcile.
A bug from searching all namespaces is when there are two certificates
with the same name in different namespaces, and there are two workloads,
again, one in each namespace with a certificate of the same name. When
one of the Certificates get renewed, both workloads will be restarted
even though one is in a different namespace from the certificate being
renewed.
Signed-off-by: Henry Li<EMAIL_ADDRESS>

/lgtm


frozen session for a period time on reconnect when syncing clipboard data with autocutsel

When using autocutsel to sync clipboard data with PRIMARY and CLIPBOARD buffers if last clipboard buffer was copied from the host (in turn synced to chansrv's CLIPBOARD) and the RDP session is disconnected, autocutsel will slowly increase in CPU and memory usage until a client reconnects.   On reconnect it appears Xorg/chansrv process autocutsel requests.
If the time between disconnect and reconnect is too long there may be a noticeable freeze on reconnect until the RDP session becomes responsive.
From my understanding of autocutsel by default it polls  the selection (CLIPBOARD default and PRIMARY if set) n buffer's every 500 ms then issues a series of Xt API calls that result in multiple callbacks.  It appears that these API/callbacks might be requesting data from chansrv however during the idle period mentioned above chansrv is blocking waiting for a reconnect from a client.
On reconnect autocutsel's and chansrv's CPU usage will increase to ~100% each.  Xorg CPU usage increases a marginal amount.   The RDP session will be frozen for a period of time during this phase.  Mouse clicks and keyboard actions are not seen.
On a LAN connection the freeze phase can last any where between 15-30 seconds   However, on a WAN connection I've had non-scientific reports of 20+ minutes until RDP responded to clicks/keyboard.
This was noticed when leaving an RDP session disconnected overnight (~12 hours) however I believe if you create the poll time via a command line option you can reproduce this same senerio in a couple minutes instead having to wait half a day for the X calls to queue.
To reproduce in a quick manner I did the following with a fully updated centos7 with xrdp from EPEL using fvwm.  I don't believe the window manager matters here.  I've also reproduced this with FreeBSD as well.

ssh to RDP server machine and run top sort by CPU usage
Open RDP session with clipboard syncing enabled
Open terminal and run autocutsel -v -p 1

This will sync the CLIPBOARD with the cut buffer
This will show high CPU usage.  You can ignore that.

Outside of the RDP session copy text.
Go back to the RDP session

Be sure to not select any text.
This should have synced the host's clipboard to RDP

Disconnect
Remain disconnected for ~2-3 minutes if you're on a LAN connection.
Reconnect
See the RDP session is drawn however clicks and keyboard actions are not registering.  This should be the case for ~15-30 seconds.
If ssh'ed see top output showing autocutsel and sesman are around 100% each.
Wait until RDP session is responsive
Control-C autocutsel.

autocutsel ... -p 1 is not real world usage here just a means to reproduce the issue without having to wait.   You should see the same issue with you used the default 500ms poll and waited 12 hours.
Attaching a debugger to autocutsel and putting a breakpoint in CheckBuffer you should be able to see it's running thru some clean up loop thats handling ~87000 procs.  That number varies depending on the time between disconnect/reconnect.
If the above is correct is it possible for chansrv to process these requests while a client isn't connected or unown the CLIPBOARD selection on disconnect?  This does not occur when the last selection didn't come from the host/chansrv (or when chansrv owns the selection?)
Is this something that would be best solved by Xorg or autocutsel if so then we can close this issue.
There were some discussions with @metalefty on gitter found here and here.  He claims he has seen the same issue with parcellite.  Also, this same issue might be manifesting itself by other means mentioned here.

I'll put this here because it might be relevant, and it also might help anyone who lands here.
I was having this problem with xfce4. Whether the screen is black depends on whether its been idle for 10 minutes or more, and this is caused by the Xfce power manager. Go into the Xfce power manager and turn off, max out and disable all display and system time outs. Perhaps Gnome has a simliar feature?


Use PSR standard spacing in docblock

PSR 1/2 code reformatters format the docblock as follows:
@param  int $id

instead of
@param  int  $id

Thanks, but his is not a PSR standard.

The proposed phpdoc PSR standard also says at the top it does not cover cs in anyway, only the meanings.


vim get slower after installing vim-airline

Problem has been found......
After installing vim-airline and enable it, vim become slower when the file is more and more large. Yestoday I was editing a file which has almost 9000 lines total, I found vim
got slow! Then I remove the vim-airline plugin and restart vim with the same file, everything seems OK . Is anyone else having this problem ?
here is my vimrc. (partition for airline)
set laststatus=2 " Always show the statusline
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline#extensions#tagbar#enabled = 1
let g:airline#extensions#tagbar#flags = 's'
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme='dark'
let g:airline_detect_modified=0
let g:airline_detect_paste=0
let g:airline_left_sep = '⮀'
let g:airline_left_alt_sep = '⮁'
let g:airline_right_sep = '⮂'
let g:airline_right_alt_sep = '⮃'
let g:airline_symbols.branch = '⭠'
let g:airline_symbols.readonly = '⭤'
let g:airline_symbols.linenr = '⭡'
let g:airline_section_c = '%F'
let g:airline#extensions#default#layout = ([
\ [ 'a', 'b', 'c',],
\ [ 'x', 'y', 'z' ]
\ ])
let g:airline#extensions#tabline#show_buffers = 0
let g:airline#extensions#tabline#excludes = []
let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
let g:airline#extensions#tabline#formatter = 'default'
let g:airline#extensions#tabline#left_sep = '⮀'
let g:airline#extensions#tabline#left_alt_sep = '⮁'
let g:airline#extensions#tabline#right_sep = '⮂'
let g:airline#extensions#tabline#right_alt_sep = '⮃'
let g:airline#extensions#branch#enabled = 1

Super late to this, but first time install airline and encountered a similar issue. Found a nice solution should anybody else stumble along this down the line.
Following this guide fixed the issue nicely for me:
http://usevim.com/2013/07/24/powerline-escape-fix/

just want to mention this is happening to me. vim loading and vim save are very slow with vim-airline.
I understand vim-airline works with other plugins that may be installed. Is there any way I could debug if it's some kind of integration or the vanilla implementation?

Just read the wiki and found out it was the extensions, this fixed the problem for me magically:
# ~/.vimrc file
let g:airline_extensions = []

@hassek disabling airline extensions made the nvim or vim restore file loading performance but lost the status on some things like errors and warnings

@howdev you can also disable specific extensions, if some of them slow down vim. You may need to do profiling to find out. Also please check the https://github.com/vim-airline/vim-airline/wiki/FAQ

Hi @howdeb, I fixed this by disabling some of the vim-airline extensions as
Christian mentions
On Tue, Mar 16, 2021 at 9:08 AM Christian Brabandt @.***>
wrote:

@howdev https://github.com/howdev you can also disable specific
extensions, if some of them slow down vim. You may need to do profiling to
find out. Also please check the
https://github.com/vim-airline/vim-airline/wiki/FAQ
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vim-airline/vim-airline/issues/421#issuecomment-800047625,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAF6BKUSYC5ZYRB7IDWIWIDTD4GW7ANCNFSM4ALP36SA
.

--
Tomás Henríquez
stackoverflow http://careers.stackoverflow.com/tchenriquez | linkedIn
http://www.linkedin.com/in/tomashenriquez | Github
https://github.com/hassek

I found the problem extension. It is the whitespace check. I turned it off and now loading files is fast

Thanks a lot!
I was solved my (slowing) issue on vim-airline by this post.
In my case, it related the 'searchcount' extension.
Firstly, I found the loaded extension using by
:AirlineExtensions
Then, I disabled the loaded extension one by one and checked speed,
Finally, I fixed my issue by
let g:airline#extensions#searchcount#enabled = 0
at  .vimrc
Thanks again and good luck!


Add possibility to add missing parameters to (possibly multiple) parameter files from within the template file

Imagine:

you have an existing template with multiple parameter files
you want to add a resource to the template and introduce multiple new parameters
wouldn't it be nice to

open the parameter file and be able to do things like

add all parameters missing from deployment file
add single parameters from deployment file which are not yet defined (new or old)

stay in the deployment file and

click on the error stating that the parameter is not set in the parameter file and has no default value and just let VSCode add the parameter to the current parameter file

Thanks @DOliana! In the upcoming release we will have some functionality that addresses the first bullet points.
From the parameter file, we will have functionality to add all or all missing parameters.

and an authoring experience that allows for auto-completion of parameters 1 by 1.

Does this address your asks for the parameter file? How does the above experiences look to you?
For the second point (stay in the deployment file..). @StephenWeatherford do you have anything in the works to address this?

I've considered whether we should do that or not, it's certainly doable and not a lot of work.  But then the user will still need to go to the parameter file to fill in the value, so I've questioned its value.  What do you think?
I've also considered adding code lens above each parameter to indicate the current value in the param file.

@neilpeterson  Looks good! How is the contextmenu triggered?
@StephenWeatherford I think it would be worth doing. (additionally it would be nice to be able to link multiple parameter files to a single deployment file)
In our scenario we usually have one deployment file and three parameter files - one for each environment: dev/int/pro. So when adding a new parameter in the deployment file, it's copy&paste to each parameter file.

@DOliana The first bullet point is already covered in https://github.com/microsoft/vscode-azurearmtools/issues/566, which will be released soon, the week after next.  I've changed the title of this bug to represent the ability to do this from the template file, which is not currently implemented.  Thanks again for the suggestions, we appreciate them!

@DOliana Actually, just noticed something else in your original comment, mentioning that the template has multiple parameter files.  This is something else that we've considered by have not implemented - right now you will need to select the parameter file that you want to edit.  How important is it to be able to have multiple parameter files selected for a template file?  You'd probably have to choose a specific param file for validation, but theoretically we could enable things like auto-completion of parameters, renames, etc. across multiple param files.

I cannot give an importance ranking, but for me having multiple parameter files for a single deployment is one of the main points to deploy infrastructure. I think that it is kind of default to have multiple environments - at least development and production (with different scaling) and eventually even test, integration and so on.
To give you an understanding: In my situation only in the beginning (when only the dev environment exists) I have a single parameter file. As soon the solution evolve I have multiple files and when I add a resource to dev, I have to copy & paste it to all other parameter files. If you see an issue in my process feel free to comment :-)

Whoops

To come back quickly to this, these were the asks:

support selecting multiple parameters files at once (presumably things such as find reference could work here)
open the parameter file and be able to do things like

add all parameters missing from deployment file
add single parameters from deployment file which are not yet defined (new or old)

stay in the deployment file and

click on the error stating that the parameter is not set in the parameter file and has no default value and just let VSCode
add the parameter to the current parameter file

Request 2 is completely implemented.
Request 3 already has similar functionality - there's a code lens next to a param definition showing the current value, which you can click on to take you to the param file and easily add the new value
The functionality that is not currently supported is being able to add to multiple param files at once.

Thanks for coming back and indeed what your write sounds very good. Just to avoid misunderstanding - by implemented you do not mean released, right? (Reason being, that I only see options to add all or missing parameters - not single parameters)

Actually, I do mean released.  Place the cursor inside the "parameters" section and type a double quote, see what happens.  Thanks!

Thanks - looks good!


proposed fix to Vertx 4 tx handling

@DavideD can you check that this is what we should be doing.

I think you are right.
I will see if I can add a test to check this case

I'm going to apply this directly to Sanne's pr

@DavideD merge this?

Rebased and merged
Thanks

Cheers.


New docker repository address

Update the README.md with new address for the docker repository.
ghcr.io/globalcyberalliance/domainsecurityscanner/domainsecurityscanner:latest
Reference https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-docker-registry

Thanks :)


Cannot send image

Files do not upload, I have send PNGs and JPGs, GIFs and all, none seem to upload at all. In order to send them I have to transfer them onto my phone, which is a pain.
PS: add a way of hiding menubar.
Thanks

Thank yuuuu
: D  : D   : D


Add middleware to route data

Use case
I have front-end project with backend proxy which proxies requests to Laravel api with Passport installed.
I need to know how exactly should I proxy requests based on middleware of laravel routes.

for client passport middleware I need to pass client access_token to api routes
for auth:api middleware I need to pass completly different access_token to api routes
With middleware route information from ziggy routes you can distinguish such routes easily.

Changes
Added support for middleware config property for ziggy.

if middleware is set to true, then all route middleware will be returned.
if middleware is set to array of middlewares, then only given middleware will be returned.
if no middleware is set then no changes are introduces, default behavior stays the same.


Sync VSCode output Cell Output & add INotebookEditor/INotebookEditorProvider

For #10496

As we execute cell output ensure the VSCode output is kept upto date (Us to VSCode).
As VSCode makes changes we need to udpate our model (that is pending VSC api changes)
Create the INotebookEditor and INotebookEditorProvider (used all over in our extension for DS code).

Codecov Report

Merging #11849 into master will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #11849      +/-   ##
==========================================
- Coverage   60.45%   60.43%   -0.03%
==========================================
  Files         631      631
  Lines       34162    34166       +4
  Branches     4799     4800       +1
==========================================
- Hits        20653    20648       -5
- Misses      12509    12516       +7
- Partials     1000     1002       +2

Impacted Files
Coverage Δ

src/client/ioc/serviceManager.ts
40.90% <0.00%> (-4.10%)
:arrow_down:

src/client/ioc/types.ts
100.00% <ø> (ø)

src/datascience-ui/react-common/arePathsSame.ts
75.00% <0.00%> (-12.50%)
:arrow_down:

src/client/common/utils/platform.ts
64.70% <0.00%> (-5.89%)
:arrow_down:

src/client/linters/pydocstyle.ts
86.66% <0.00%> (-2.23%)
:arrow_down:

src/client/datascience/debugLocationTracker.ts
76.56% <0.00%> (-1.57%)
:arrow_down:

src/client/common/process/proc.ts
14.49% <0.00%> (-0.73%)
:arrow_down:

Continue to review full report at Codecov.

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


Error when building on CentOS 8

Hi,
when trying to build and install on CentOS I get this error
Vertica does not build on GCC v8.0 or above
Regards,
Antonio

Right, you need devtoolset-7 package for CentOS. Please go C++SDK for more info.


Can plotter utilise multiple NUMA nodes?

I'm using the windows compiled binary from stotiks with a TR 3995wx.
Only cores from Node 0 are used.
Is there a way to utilize the full CPU?
Thanks

the 3990 is sometimes quicker with smt off. look for a program called process lasso. it's essential to get the most out of these processors. you can set the cpu affinity to whatever you want using it.
if you do want to use then id suggest copy and pasting the chia_plot.exe and renaming to chia_plot_2.exe for example. then run your script to call them as 2 different processes and assign chia_plot.exe to run on node 1 cores 0-63, and chia_plot_2.exe to run on cores 64-127.
Also be aware that these chips are made up into chiplets which complicates further.
I'd be really interested in your results given you have twice the memory bandwidth of my 3990.

I'm using the windows compiled binary from stotiks with a TR 3995wx.
Only cores from Node 0 are used.
Is there a way to utilize the full CPU?
Thanks

you will see group 1 and group 2. you can set manually

I'd be really interested in your results given you have twice the memory bandwidth of my 3990.

Running two plotters and pinning each to one node with windows affinity the two plots completed in about 40 minutes, so 1 per 20 minutes. I think that's no different to a 3990x. I've got lots of setting variants to run through, and will test with smt options and process lasso etc.
One plot per 20 minutes is significantly slower than parallel output using vanilla CLI, so I'm hoping to shave a chunk off the times on madmax.
What works best on your 3990x?

I have yet to be able to beat my vanilla plotting output. I use that rig for other things not just plotting so settled on a stagger of 1050 secs which ran really stable. I was able to push to 10TB a day if i didn't use it. My best times so far are 1600secs, using primo cache as a ram cache. I suspect that setting up 8 processes and setting affinity to the 8 ccd's with your mem io would yield the best result. probably with -r at 6 ish.

also -u at 256 is working well, 512 is much quicker in phase 1, but slower phase 3, with larger ram might work better though.


Recover embeddings for labels themselves in TagSpace model

First, thank you for a wonderful package.
I am fitting the TagSpace model. I believe I understand how to recover embeddings of the right hand side grams, and ngrams. I believe I can also recover the embedding of a full document.
I do not yet know if/how to recover the embedding of the labels.
The instruction "Model: the mapping learnt goes from bags of words to bags of tags, by learning an embedding of both." suggests that in addition to projecting the words of the right hand side into their own space, the labels are themselves being projected into a space (either their own, or the same as the RHS?). Is this true, and if so, how do we retrieve those embedding? I have hundreds of thousands of labels, and I would be very interested to see how they are embedded relative to each other.

I think I may have answered my own question: The label embeddings are found at the very bottom of the model tsv file? Is that correct?

@rexdouglass Yes, that is correct. Thanks for your comments! Let us know if you have any other questions.
Closing the issue for now.


Tests are more compact

Test with @test all(<something> for ...) instead of for ...; @test <something>; end.
This way when tests fail we get only one error instead of one for each loop step

Codecov Report

Merging #3 (7a62272) into main (fc4ad1d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #3   +/-   ##
=======================================
  Coverage   74.60%   74.60%
=======================================
  Files           8        8
  Lines         319      319
=======================================
  Hits          238      238
  Misses         81       81

Continue to review full report at Codecov.

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


Search match the whole word

I see that we can search the word which matches the case, but is there any method to filter the search result that matches the whole word? Thanks.

not sure what you mean by filter in the search result,
but there is an option to ignore the search result by doing a dd in the search result line to ignore a specific result

Ok, I see. Thanks.
I just noticed that we can use regex to search the word, lol. So search the whole word is done by \bword\b.


change(release): Reduce the end of support time from 20 weeks to 16 weeks

Motivation
We want Zebra to have the same end of support timeline as zcashd.
Closes #8521.
PR Author Checklist
Check before marking the PR as ready for review:

[x] Will the PR name make sense to users?
[x] Does the PR have a priority label?
[x] Have you added or updated tests?
[x] Is the documentation up to date?

For significant changes:

[x] Is there a summary in the CHANGELOG?
[x] Can these changes be split into multiple PRs?

If a checkbox isn't relevant to the PR, mark it as done.
Solution
Reduces EOS_PANIC_AFTER from 140 to 112
Review
Anyone can review.
Reviewer Checklist
Check before approving the PR:

[ ] Does the PR scope match the ticket?
[ ] Are there enough tests to make sure it works? Do the tests cover the PR motivation?
[ ] Are all the PR blockers dealt with?
PR blockers can be dealt with in new tickets or PRs.

And check the PR Author checklist is complete.

should we put this change in the top of the changelog for the next release now ?

@Mergifyio refresh


chore: handle 404 erorrs on push endpoint

Part of #470
Handle cases when invalid Kibana endpoint was provided. Most likely happens when development when there is more chance of base path being different between every restart.

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-05-20T18:11:28.122+0000

Duration: 14 min 20 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
160

Skipped
2

Total
162

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.


Wrong tuple destructuring in property assignment when using autogenerated initalizer

Description
When you initialize multiple parameters via tuple destructuring it fails when the enclosing struct has other parameters without default values and no dedicated init. When any form of init is added the issue disappears.
The issue doesn't happen for classes since they always need a user-provided initializer.
Steps to reproduce
This is the smallest sample that shows the issue :
struct Bar {
    let value: Int
    let (a, b) = ("a", "b")
}

Bar(value: 0).a  // "a"
Bar(value: 0).b //  "a" also ❌

The same happens for bigger tuples (like : let (a, b, c,) = ("a", "b", "c"), etc.) and it will always assign the first value to all properties.
Samples that DO NOT have the issue :
// Simple, standalone assignment
let (a, b) = ("a", "b")
a  // "a"
b  // "b"

//--------------------

// `struct` that has only that parameter
struct Foo {
    let (a, b) = ("a", "b")
}
Foo().a  // "a"
Foo().b  // "b"

//--------------------

// Notice this is the same as failing sample, just with manually implemented initializer
struct Foo2 {
  let value: Int
  let (a, b) = ("a", "b")

  init(value: Int) {
    self.value = value
  }
}
Foo2(value: 0).a  // "a"
Foo2(value: 0).b  // "b"

//--------------------

struct Foo3 {
  let value: Int
  let (a, b) = ("a", "b")
}

// When calling the custom `init` the tuple will be destructured properly
// When calling the automatically generated `init` the tuple will be destructured wrongly
extension Foo3 {
  init(customValue: Int) {
    value = customValue
  }
}
Foo3(customValue: 0).a  // "a"
Foo3(customValue: 0).b  // "b"

Foo3(value: 0).a  // "a"
Foo3(value: 0).b  // "a" ❌

//--------------------

// This is almost the same as failing sample, but has default value for `value` property
// When using `Foo4()` initializer (no args) the destructuring works properly
// When using `Foo4(value: 0)` initializer the destructuring works wrongly
struct Foo4 {
  var value: Int = 0
  let (a, b) = ("a", "b")
}
Foo4().a  // "a"
Foo4().b  // "b"

Foo4(value: 0).a  // "a"
Foo4(value: 0).b  // "a" ❌

Expected behavior
Values from the tuple should be assigned properly to their respective properties in all cases.

Environment

Swift compiler version info
Fails on both :

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-<IP_ADDRESS>.108 clang-15<IP_ADDRESS>)
Target: arm64-apple-macosx13.0
------
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-<IP_ADDRESS>.2 clang-14<IP_ADDRESS>.100)
Target: arm64-apple-macosx13.0

Xcode version info
Fails on both :

Xcode 15.0
Build version 15A240d
------
Xcode 14.3
Build version 14E222b

Deployment target: macOS Ventura 13.6, iOS (not sure which version Xcode playgrounds use)

Additional context
For what its worth, I took a look at SIL of the smallest working / non-working structs and it seems that in the failing case the tuple is created twice and then tuple refs are passed to the "actual" initializer.
In the working case, the tuple is created once, but it's also not used - the tuple values are passed directly to the "actual" initializer.
Sorry for screenshots, I can repost as text if needed :

Working
Failing

Looks like a dupe of https://github.com/apple/swift/issues/68915


Implement enter_do in terms of yieldto()

For this specialized use case in enter_do we really only want the use of
an extra stack, but other than this, we probably don't need to involve
the main scheduler or have any other unrelated tasks be scheduled.
So it seems we can skip the main scheduler completely on the happy path.
When there's an error we do need the child task to run to completion so
that its error flag is set.

@tkf is this what you had in mind with yieldto()? The main oddity I found trying to do this was finding a way for the child task to run to completion so that its failure status can be set and we can access the exception stack of the failed task for full error reporting.
For proper task teardown, the child task needs to exit our user-defined code and end up running jl_finish_task() (which sets appropriate state flags and calls Base.task_done_hook() to handle task done notifications). The only way I could see to do this was to schedule() the child task in the case we're on an error path.

Yeah, this is approximately what I had in mind, including the yieldto in catch.
But I wasn't thinking "properly" finishing the task. Isn't the error handling of func already executed by the time the child task hit yieldto(parent_task, :failed)? For showing the error, isn't it enough to capture the error and backtrace in the catch block of the child task? Though maybe you wanted to use TaskFailedException?

For showing the error, isn't it enough to capture the error and backtrace in the catch block of the child task? Though maybe you wanted to use TaskFailedException?

Yes I was trying to reuse the effort that went into making TaskFailedException print nicely.
But I guess it could arguably be neater to call catch_stack() within the child task and communicate that out to the parent. Just need a custom exception type, or use CapturedException if not preserving the whole exception stack.

I think it may be better to stick with the current implementation - it doesn't (potentially) loose the root cause in the exception stack, reuses an existing exception type, and the scheduler is only used on the exceptional code path.
That said, the enter_do implementation is really neat with CapturedException and throwto:
@! function enter_do(func::Function, args...; kws...)
    # We need a separate stack to run the do block, so we use a separate task
    # here for that purpose. We know exactly which order the parent and child
    # tasks should run in so we should be able to use explicit yields and not
    # involve the main scheduler.
    parent_task = current_task()
    child_task = @task try
        func(args...; kws...) do resources...
            yieldto(parent_task, resources)
        end
        # Success path: yield back to parent - `child_task` will never complete, but
        # we've already run whatever cleanup code in `func` so that should be ok.
        yieldto(parent_task, nothing)
    catch exc
        # Failure path
        Base.throwto(parent_task, CapturedException(exc, catch_backtrace()))
        # <-- unreachable - child is not rescheduled
    end
    res = yieldto(child_task)
    @defer begin
        # Allow child task to free any resources
        yieldto(child_task)
    end
    return res
end

the enter_do implementation is really neat with CapturedException and throwto

Ooh, yes, this is nice. (But understandable to stick with the current one, to avoid relying on the internals.)

Ah, it was oh-so-tempting to use the more elegant implementation with Base.throwto but in the interests of reusing Base's existing error path for wait() I went with the current version.

Since those internal functions yieldto and especially throwto can sometimes be tricky to work with to avoid races and dropping errors, there is also Base._wait2 for pausing one Task for the completion of another, with or without error

Ah yes I saw _wait2() while looking around in there. I wasn't sure how to use it in this case though, so I went with a direct schedule and wait() because I wanted the error propagation that's built into wait().


Fixed #28863 -- Fixed filter on annotation that contains Q.

https://code.djangoproject.com/ticket/28863

LGTM apart from SQL changes. But I can see why the parens might always be needed in order to ensure the SQL always compiles.

buildbot, test on oracle.

The error for the new test on Oracle django.db.utils.DatabaseError: ORA-00923: FROM keyword not found where expected.

Using boolean type in SELECT is not supported on Oracle. The only way to emulate this is to use CASE ... WHEN .. syntax:
SELECT COUNT(*)
FROM (
    SELECT
        "EXPRESSIONS_COMPANY"."ID" AS Col1,
        (CASE WHEN "EXPRESSIONS_COMPANY"."NUM_EMPLOYEES" > :arg1 THEN 1 ELSE 0 END) AS "NUM_EMPLOYEES_CHECK"
    FROM "EXPRESSIONS_COMPANY"
    WHERE
        (CASE WHEN "EXPRESSIONS_COMPANY"."NUM_EMPLOYEES" > :arg1 THEN 1 ELSE 0 END) > :arg1) = :arg0
    GROUP BY
        "EXPRESSIONS_COMPANY"."ID",
        (CASE WHEN "EXPRESSIONS_COMPANY"."NUM_EMPLOYEES" > :arg1 THEN 1 ELSE 0 END)
    ) subquery

If besides this issue, the 2.0 release is ready later today, I don't think I'll block the release on it. It can always be fixed in a later bug fix release.

We can skip this test on Oracle, I'm fine with that.

Thanks @sir-sigurd @tim-schilling @felixxm :)


Where can I locate mekd.pkl you're using in a streamlit demo?

Hey @awarebayes, amazing project! Trying to run your streamlit demo, but can't locate mekd.pkl. Where can it be downloaded from? Thanks!

All the data I used is here:
https://github.com/awarebayes/recnn-demo/tree/master/app/data

Here is a docker repo that sets everything up:
https://github.com/awarebayes/recnn-demo

cd ~/Downloads
git clone https://github.com/awarebayes/recnn-demo
cd recnn-demo && sh setup.sh

Thanks! Worked like charm!


Build a remote control for the robot

Make a controller for the robot that converts human instructions to MQTT commands that the robot can understand. For now make this in software.

We decided to use a phone or tablet app rather than a new piece of hardware to control robot movement via generation of mqtt commands.

current version of MQTT is 5.x . We use the older 3.1.1, which not all MQTT consoles support.
Browser based support:
MQTTX: web support is MQTT version 5.0 only?
Desktop:
MQTTX: 3.11. & 5.0, MacOS, Linux, Windows, open source
MQTT Explorer: 3.1.1 & 5.0, Windows, macOS, Linus
Mobile:
EasyMQTT: 3.1.1 & 5.0, iPhone, iPad, macOS
MyMQTT for Android: 3.1.1  & 5.0
I've downloaded this last app onto my phone. It doesn't support scripts, but does have a basic publish command.


⚠ Guya.moe Proxied has degraded performance

In 2510b96, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 13411 ms

Resolved: Guya.moe Proxied performance has improved in e0b1491 after 48 minutes.


Non-sendable type Query / CollectionReference cause warnings in any actor-isolated context

Description
Any time I try to use Firestore in an actor-isolated context (ie. within an Actor or a class on the MainActor), there are warnings that Non-sendable type... cannot cross actor boundary. This applies to Query and CollectionReference. Is there an approach to avoid this or can these classes become Sendable?
Notes:

These warnings appear after setting Strict Concurrency Checking to Complete.
I wasn't sure whether to label this as a bug and I couldn't find anything in the documentation explaining how to avoid this.

Reproducing the issue

Firebase SDK Version
10.23.0
Xcode Version
15.3
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

The firestore API was designed before swift actors existed. We do intend to improve the situation, but this needs to be carefully examined as the SDK is written in C++. I will add this to our todo list, but we also won't have capacity to address in the near future.
Thanks for the report though!

One suggestion is to do the parsing while still on the background thread, then just passing a parsed (Sendable, plain value type) model back to the main thread.
Would that work for you?


Can't create 2 mirrors of different size

All the mirrors are the same sizes & they copy their size based on idk - randomly chosen mirror from the scene. After that, reflections became durpy in all the mirrors except the randomly chosen one. In short:
Reflection - does resize
Mirrors - does not resize
Your Mirror addon already helped me out a lot & if it will be capable of different sizes, it would be just perfect
The left mirror is the "chosen one" & has correct sizes. The right mirror should be wider, but it copies sizes from the left

Nope, doesn't work
https://github.com/Norodix/GodotMirror/assets/101403719/273843a5-29ce-44e0-8851-6aa34e2bbf6d

You are right, there was an issue. It was the same thing as my first guess but on the level of the resources, not on the user's level. I pushed a fix (2bc35b7a1b1e82dd6e16e28372fb8842674a9355).
If you could test it so I can be sure it works, I can push this version to the asset store.

Thank you! I'll test it tomorrow

Everything works! Even the movable once!
https://github.com/Norodix/GodotMirror/assets/101403719/d13eb9e9-3b67-4de3-9874-afcb9492cde5
But now I found another 2 issues ahah

Mirrors reveal the true nature of my bad topology in 3d models. I don't want them to uncover all my secrets!
In the editor after launching Godot project at first time, all my mirrors appear with duplicates

https://github.com/Norodix/GodotMirror/assets/101403719/9cc46beb-c4fd-40cb-9af0-b97494dc8c60
To fix it, I simply reopen .tscn.
The problem appears even in new projects. When I created a brand new project for testing new update & then reopen it, you see what happens:
https://github.com/Norodix/GodotMirror/assets/101403719/48119002-c976-451d-b877-6d8ddd1a5fba
It also affect all new Mirrors created before reopening scene
Should I create new Issues for this 2 bugs?

I suspect the duplicates are this fix's fault. Unless you can replicate it with a previous version dont open a new issue, just keep this one open.
Regarding the 1st issue about the topology. To me it seems a bit like either transparency sorting issue or maybe LOD issue. Can you try disabling autolod and try again? It could be an issue with using multiple cameras, that only 1 decides the level of detail. But these are just guesses.

Yeah! It totally was the auto-LOD
Thank you

My guess is maybe godot takes the active camera into account when selecting the level of detail. Maybe that is why it happens, but I'm happy it works now.
I can't really reproduce your other issue, so I cant test it. Try moving the 2 new lines that duplicate the mesh to ready from enter_tree, or try setting mesh to null before those 2 lines. I'm on linux, if you are on windows its possible that this is a race condition or some other edge case. If you find a way that is more reliable than it is now, I'm happy to modify.

No errors in console

Godot Engine v4.1.1.stable.official.bd6af8e0e - https://godotengine.org
Vulkan API 1.2.142 - Forward+ - Using Vulkan Device #0: NVIDIA - GeForce GTX 1650

Mine looks even more fun. Its weird, I have not seen this issue yet. I will look into it when I have time!

I think I got it. I needed to set the update mode of the subviewport to either parent visible or always. Please test it: https://github.com/Norodix/GodotMirror/commit/ab051bd2b8fb6376d892c1a84e3e8653db9edf52

Hooray! It works!


Flickering and stuck frames on Firefox 132.0

Bug description
Ambient Light sporadically starts flickering
Steps to reproduce the behavior
unfortunately I can't reliably reproduce the issue. It just happens from time to time (but usually takes at least 15  Minutes of watching varying videos to appear.
I last got it on this video:
https://www.youtube.com/watch?v=CkHU2yXp36Y
Browser
Firefox
Operating system
Linux
Extension version
2.38.10
The bug still happens in these conditions

[X] The bug still persist when I disable all other extensions (ex. in incognito mode with only this extension enabled)
[X] When I logged out of my YouTube account (ex. in incognito mode)
[X] In incognito mode

Additional context and/or screenshots
This is what the flickering looks like :
https://github.com/user-attachments/assets/42ace75e-2df0-466f-af06-992f20d38cfd
Even Page refresh via F5 doesn't fix it.
I'm using two 3440x1440 Ultra wide monitors.
I'm using Linux - CachyOS distribution with latest updates.
PS: Thank you for making this add-on - it looks great and prevents "burn in" on my OLED.

That's an annoying bug. Especially because it happens randomly.
Since a refresh does not work, I think you have found a bug in the browser or the graphics driver.
Some things you could try when it happens:

Open a new browser tab with the same url and close the old glitching tab. Every tab has it's own cpu process, so this could work if the bug is bound to that browser tab's cpu process. And this way you don't have to restart the whole browser. (If it did not work you could also try the same with the browser windows. Open a new tab, move it to a new browser window, close the browser window with the old glitching tab)
You could check if toggling the "Artifacts workaround" setting under the "Video" category fixes or changes the glitch.
You could check if turning off the "WebGL renderer" setting under the "Quality" category fixes or changes the glitch. However, turning it off comes with a performance penalty, but it might be a viable workaround until this bug has been fixed in a new Firefox version or Graphics driver version.

What CPU and GPU do you have? In case you might need to report this bug to the Firefox developers to get it fixed.
This bug does seem similar to another glitch which was fixed in Firefox 113. But that bug happend directly instead of randomly. So it might be related to something they fixed lately. What Firefox version are on?

This was the original bugreport to the Firefox developers for the glitch in Firefox 131:
https://bugzilla.mozilla.org/show_bug.cgi?id=1922278
In the meantime it has gotten 2 additional related bugreports. I think you are experiencing bug 1924400, because that one is also happening randomly: https://bugzilla.mozilla.org/show_bug.cgi?id=1924400
The other one is: https://bugzilla.mozilla.org/show_bug.cgi?id=1924070

Thank you for looking into it!
these are my specs:
CPU: i7 13700k
GPU: RTX 3090ti
bug 1924400 looks very similar to my issue - I will try the suggested workaround and report back.
Thank you!

Nice!


同步改动

同步内部的改动到外部仓库

 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.昶乐 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: 昶乐:x: LQZYC昶乐 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Package for Debian/Kali

It'd be neat if this got included in Kali Linux, as I think it'd be quite useful there. I'd like to learn more about how that process works.

It seems the process is open a ticket marked as a New Tool Request, then convince somebody to package and maintain it: https://bugs.kali.org/view_all_bug_page.php


[DNS] 'az network dns zone list' - change columns in output

Currently, 'az network dns zone list' includes the following columns in the output, in the following order: etag, location, maxnumberofrecordsets, numberofrecordsets, resource group name
There are unnecessary items here (e.g. location is always global, hence not necessary). Etag is deep-dive information that is useful in the 'show' command but takes up too much space to justify inclusion in the zone list. And the order does not put the most important stuff first.
Please change to: zone name, resource group name, number of record sets, max number of record sets.
Also, to save space, I suggest renaming 'Max Number Of Record Sets' and 'Number Of Record Sets' to simply 'Max Record Sets' and 'Record Sets', respectively. If necessary, that is.

Edited above text a little.


build(feat): shorten flag message and tag teams

This PR resolves []
Description

Removes the released flags from the message and tags teams for more visibility.

PR Checklist

[ ] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Shorten flag message and tag teams - Brian

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Dev changes (Shorten flag message and tag teams - Brian)

  Generated by :no_entry_sign: dangerJS against 749850fec1fec582fed20e8e4ec50626a3748635


Emergency mode needs to provide network access

Describe the bug
According to the community, emergency mode doesn't have network support, and that's normal.
This is an issue because configuring and rebuilding the system usually requires network access.
While the OS itself is immutable, hardware is not, and therefore rollback can't necessarily resolve all boot issues.
In my case, something as simple as having set up a file system mount ages ago, which then I lost, was enough to put me into emergency mode.
I was able to obtain an IP address using ip, but setting up a route and gateway failed. I'm not sure if the community is correct in saying there is no network access in emergency mode, or if there just isn't a trivial way to enable it. Either way, it needs to be available.
Steps To Reproduce
Steps to reproduce the behavior:

Set up a mount using fileSystems in system .nix
Remove the referenced disk/mount point/etc.
Attempt to boot; be forced into emergency mode
Remove mount from .nix
Attempt to rebuild system; be told that git is missing
nix shell nixpkgs#git returns error because no network connection

This problem might also arise also if you enter an incorrect /dev/ path in fileSystems.<mount>.device, though I dare not try.
Nix will then complain that it doesn't see git. For some reason, it loads my shell, fish, but not git, even though they're defined together in the same config.
It also doesn't have network access, which means it can't get git even with nix shell.
Editing /etc/fstab isn't an option either, and editing the store is possible but [so strongly recommended against]((https://discourse.nixos.org/t/how-to-edit-file-in-nix-store/19261) that the community, justifiably, refuses to divulge how.
Expected behavior
Either a simpler way to enable the network (wifi or ethernet -- I'm on ethernet), documentation on how, or having it by default automatically upon entering emergency mode
Additional context
Solutions proposed by the community for my particular problem:

Insert the old disk in the original interface

Not an option if the old disk is dead; mucking with hardware more than necessary is inherently risky (I lost my nvme screw somewhere in my machine in the process of addressing this problem)

Insert any disk into the original interface

Not an option if no other disk is on hand with the same file system

Don't use fstab to mount things

Throughout the documentation, it's recommended to use fileSystems, which generates fstab entries

Not to worry because you'll only be burned by this once

Disks die without user error, especially if you have many of them; moving a mounted disk is not an irrevocable error in other distros

Use rollback

The disk has been mounted for months, and such an old rollback no longer exists

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
rei@oden ~ [SIGINT]> nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.71, NixOS, 24.05 (Uakari), 24.05.20240108.317484b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `""`
 - nixpkgs: `/nix/store/02b2x2k6pip3wrgv0kz6zzlb469lyk1f-source`

Add a :+1: reaction to issues you find important.

Still facing this issue today.

Well, how hard would be to create an extra "emergency mode with network"?  connman should be small enough to provide such a thing.

In the meantime, what is the correct way to mount a disk for use by a service? Should I just make a systemd service that makes a call to mount?


Android Component Helper Methods

utility methods for Android components.

check whether component is enabled
check whether component is disabled
enable component
disable component

The comment for AndroidComponentUtils.disableComponent should be
Enables an Android component for use if it is not already enabled

Also I apologize for the two commits. I pull requested into my own fork and did not realize you can pull request directly to your remote.


How can I change center label text color?

I want to change center label textColor as well as Font size. I can't access the component since it's private.

You can add a textColor member (have a default color) to the View and make it public. The Font size as the same way.


Doesn't support M1 Macs

As of Hyper API 0.0.15735 it doesn't appear M1 Macs are completely supported by Hyper API. Some functions of the library work (and so e.g. twbxless's /datasources endpoint will work) but others depend on native code and will throw JNI exceptions (e.g. twbxless's /data endpoint.)
See also https://community.tableau.com/s/question/0D58b0000A9YZ1sCQG/arm64e-support-for-libtableauhyperapidylib

For now, with the updates to Dockerfile coming soon that fix the 404'd Hyper API URL, building with --platform linux/x86_64 suffices.
No great solution for non-Docker build/run on M1 Macs until it's supported as far as I know. Tell me I'm wrong!

Using --platform as a workaround works as of 1d28d6c.


Deque tests

In adding tests to deque, pop_front and pop_back API was changed to return a reference to an immutable, owned value of type T contained in Deque. This makes the interface to the Deque closer to that of the VecDeque in rust. This also changed the remove method of the map, which now returns Result<Option<ReadOnly>>.

Codecov Report

Merging #44 (c174ca2) into develop (165a7aa) will increase coverage by 4.91%.
The diff coverage is 81.45%.

@@             Coverage Diff             @@
##           develop      #44      +/-   ##
===========================================
+ Coverage    65.13%   70.05%   +4.91%
===========================================
  Files           14       16       +2
  Lines          763      965     +202
===========================================
+ Hits           497      676     +179
- Misses         266      289      +23

Impacted Files
Coverage Δ

src/abci/mod.rs
0.00% <0.00%> (ø)

src/abci/tendermint_client.rs
0.00% <ø> (ø)

src/merk/client.rs
0.00% <ø> (ø)

src/merk/merkstore.rs
0.00% <0.00%> (ø)

src/merk/proofbuilder.rs
0.00% <0.00%> (ø)

src/collections/map.rs
87.68% <90.42%> (+9.82%)
:arrow_up:

src/collections/deque.rs
95.76% <95.76%> (ø)

src/state/mod.rs
100.00% <100.00%> (ø)

src/store/iter.rs
98.73% <100.00%> (-0.04%)
:arrow_down:

tests/derive.rs
100.00% <100.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

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

@mappum The actions won't trigger now that the target of the PR is query, but I've ran tests, fmt, and clippy on this and it's clean. If anything made its way through to this PR, we can address it when query gets merged into develop.


WebApp - Show incorrect history in case change NFT to Staking

Describe the bug
Version test: https://c6e67155.subwallet-webapp.pages.dev/home/history
To reproduce the bug
Steps:

Go to the History screen
Perform change tab Tokens to Staking
Obverse the displayed screen

Actual: In the Staking tab, show tokens transaction

Expect: Show Staking transaction

Version test: https://9afa7d1d.subwallet-webapp.pages.dev/home/history
Validation passed.


Error during install - dbsnp issue

Running GGD recipe: hg38 dbsnp<PHONE_NUMBER>2
URL transformed to HTTPS due to an HSTS policy
--2023-02-14 16:01:32--  https://ftp.ncbi.nih.gov/snp/archive/b154/VCF/GCF_000001405.38.gz
Resolving ftp.ncbi.nih.gov (ftp.ncbi.nih.gov)... <IP_ADDRESS>, <IP_ADDRESS>, 2607:f220:41e:250::7, ...
Connecting to ftp.ncbi.nih.gov (ftp.ncbi.nih.gov)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-02-14 16:01:33 ERROR 404: Not Found.
Traceback (most recent call last):
File "/home/jchien/Apps/bcbio/tools/bin/bcbio_nextgen.py", line 228, in
install.upgrade_bcbio(kwargs["args"])
File "/home/jchien/Apps/bcbio/anaconda/lib/python3.7/site-packages/bcbio/install.py", line 109, in upgrade_bcbio
upgrade_bcbio_data(args, REMOTES)
File "/home/jchien/Apps/bcbio/anaconda/lib/python3.7/site-packages/bcbio/install.py", line 361, in upgrade_bcbio_data
args.cores, ["ggd", "s3", "raw"])
File "/home/jchien/Apps/bcbio/anaconda/envs/python2/bin/tmpbcbio-install/cloudbiolinux/cloudbio/biodata/genomes.py", line 354, in install_data_local
_prep_genomes(env, genomes, genome_indexes, ready_approaches, data_filedir)
File "/home/jchien/Apps/bcbio/anaconda/envs/python2/bin/tmpbcbio-install/cloudbiolinux/cloudbio/biodata/genomes.py", line 480, in _prep_genomes
retrieve_fn(env, manager, gid, idx)
File "/home/jchien/Apps/bcbio/anaconda/envs/python2/bin/tmpbcbio-install/cloudbiolinux/cloudbio/biodata/genomes.py", line 875, in _install_with_ggd
ggd.install_recipe(os.getcwd(), env.system_install, recipe_file, gid)
File "/home/jchien/Apps/bcbio/anaconda/envs/python2/bin/tmpbcbio-install/cloudbiolinux/cloudbio/biodata/ggd.py", line 30, in install_recipe
recipe["recipe"]["full"]["recipe_type"], system_install)
File "/home/jchien/Apps/bcbio/anaconda/envs/python2/bin/tmpbcbio-install/cloudbiolinux/cloudbio/biodata/ggd.py", line 62, in _run_recipe
subprocess.check_output(["bash", run_file])
File "/home/jchien/Apps/bcbio/anaconda/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/home/jchien/Apps/bcbio/anaconda/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bash', '/home/jchien/Apps/bcbio/genomes/Hsapiens/hg38/txtmp/ggd-run.sh']' returned non-zero exit status 8.

I met this problem, too. The reason is that version 154 is not available from 'ftp.ncbi.nih.gov' anymore. Instead, they offer 156 as the latest version. so you can edit the GGD recipe manually by updating the URL and version.

Hi Perter,
Where can I find the recipe file?  When I edited the ggd-run.sh in the genome folder under txtmp, it was overwritten during the upgrade. So, I must not editing the right file at the right place.
Jeremy
From: Peter Wang @.>
Sent: Tuesday, February 14, 2023 6:52 PM
To: bcbio/bcbio-nextgen @.>
Cc: Jeremy R Chien @.>; Author @.>
Subject: Re: [bcbio/bcbio-nextgen] Error during install (Issue #3699)
I met this problem, too. The reason is that version 154 is not available from 'ftp.ncbi.nih.gov' anymore. Instead, they offer 156 as the latest version. so you can edit the GGD recipe manually by updating the URL and version.

Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbcbio%2Fbcbio-nextgen%2Fissues%2F3699%23issuecomment-1430677115&data=05|01|jrchien%40ucdavis.edu|ab16cd8ca0174bf123ad08db0eff8bd8|a8046f6466c04f009046c8daf92ff62b|0|0|638120262957530077|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=%2F%2BwvszvQnlWBIv%2B%2F6fBnrsr%2F%2FecmCQdDmBGXuVd%2Bqtk%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOCCTWG2IY3VPDU3TCQKHFTWXRADJANCNFSM6AAAAAAU4GHZDQ&data=05|01|jrchien%40ucdavis.edu|ab16cd8ca0174bf123ad08db0eff8bd8|a8046f6466c04f009046c8daf92ff62b|0|0|638120262957530077|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=5m6oN52%2Bp%2FBm4I%2BmySJj%2B0s%2FVJDz2eibcIbrZ6LZfMg%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>CONFIDENTIALITY NOTICE This e-mail communication and any attachments are for the sole use of the intended recipient and may contain information that is confidential and privileged under state and federal privacy laws. If you received this e-mail in error, be aware that any unauthorized use, disclosure, copying, or distribution is strictly prohibited. If you received this e-mail in error, please contact the sender immediately and destroy/delete all copies of this message.

I encountered this problem too, located and edited all 154 entries to 156 in <path_to-bcbio>/tmpbcbio-install/cloudbiolinux/ggd-recipes//dbsnp.yaml

thanks for  figuring out!
I've updated the recipe:
https://github.com/chapmanb/cloudbiolinux/blob/master/ggd-recipes/hg38/dbsnp.yaml

Thanks Serhiy!
I believe that also https://github.com/chapmanb/cloudbiolinux/blob/master/ggd-recipes/hg19/dbsnp.yaml needs to be changed accordingly
/Linda

Thanks Serhiy!
I think the gnomad genome recipe should be updated according to the new field names of gnomad files as well

Hi Peter @wangpenhok !
I see 3.1 vcf sites are still there?
https://console.cloud.google.com/storage/browser/gcp-public-data--gnomad/release/3.1/vcf/genomes
What is the issue you are encountering?
SN

Hi Serhiy@naumenko-sa
The vcf sites are okay, but the file downloaded from $gnomad_fields_to_keep_url may be outdated.
As I had mentioned here, [https://github.com/chapmanb/cloudbiolinux/pull/400#issuecomment-1475735769],
Here are some examples:
##INFO=<ID=nhomalt-sas-XY,Number=A,Type=Integer,Description="Count of homozygous individuals in XY samples of South Asian ancestry"> ##INFO=<ID=AC-fin-XX,Number=A,Type=Integer,Description="Alternate allele count for XX samples of Finnish ancestry"> ##INFO=<ID=AN-fin-XX,Number=1,Type=Integer,Description="Total number of alleles in XX samples of Finnish ancestry"> ##INFO=<ID=AF-fin-XX,Number=A,Type=Float,Description="Alternate allele frequency in XX samples of Finnish ancestry"> ##INFO=<ID=nhomalt-fin-XX,Number=A,Type=Integer,Description="Count of homozygous individuals in XX samples of Finnish ancestry"> ##INFO=<ID=AC-nfe-XX,Number=A,Type=Integer,Description="Alternate allele count for XX samples of Non-Finnish European ancestry"> ##INFO=<ID=AN-nfe-XX,Number=1,Type=Integer,Description="Total number of alleles in XX samples of Non-Finnish European ancestry"> ##INFO=<ID=AF-nfe-XX,Number=A,Type=Float,Description="Alternate allele frequency in XX samples of Non-Finnish European ancestry"> ##INFO=<ID=nhomalt-nfe-XX,Number=A,Type=Integer,Description="Count of homozygous individuals in XX samples of Non-Finnish European ancestry"> ##INFO=<ID=AC-sas,Number=A,Type=Integer,Description="Alternate allele count for samples of South Asian ancestry"> ##INFO=<ID=AN-sas,Number=1,Type=Integer,Description="Total number of alleles in samples of South Asian ancestry"> ##INFO=<ID=AF-sas,Number=A,Type=Float,Description="Alternate allele frequency in samples of South Asian ancestry"> ##INFO=<ID=nhomalt-sas,Number=A,Type=Integer,Description="Count of homozygous individuals in samples of South Asian ancestry"> ##INFO=<ID=AC-oth-XX,Number=A,Type=Integer,Description="Alternate allele count for XX samples of Other ancestry"> ##INFO=<ID=AN-oth-XX,Number=1,Type=Integer,Description="Total number of alleles in XX samples of Other ancestry"> ##INFO=<ID=AF-oth-XX,Number=A,Type=Float,Description="Alternate allele frequency in XX samples of Other ancestry"> ##INFO=<ID=nhomalt-oth-XX,Number=A,Type=Integer,Description="Count of homozygous individuals in XX samples of Other ancestry"> ##INFO=<ID=AC-amr-XX,Number=A,Type=Integer,Description="Alternate allele count for XX samples of Latino ancestry"> ##INFO=<ID=AN-amr-XX,Number=1,Type=Integer,Description="Total number of alleles in XX samples of Latino ancestry"> ##INFO=<ID=AF-amr-XX,Number=A,Type=Float,Description="Alternate allele frequency in XX samples of Latino ancestry"> ##INFO=<ID=nhomalt-amr-XX,Number=A,Type=Integer,Description="Count of homozygous individuals in XX samples of Latino ancestry"> ##INFO=<ID=AC-XX,Number=A,Type=Integer,Description="Alternate allele count for XX samples"> ##INFO=<ID=AN-XX,Number=1,Type=Integer,Description="Total number of alleles in XX samples">
It is obvious that _ has been replaced with -. In addition, male/female seems to be XY/XX now.
Would you please update the file gnomad_fields_to_keep into the latest version?
Thanks~

Hello, I think there is still a small issue with the hg38 recipe for dbsnp, the version number should also be updated:
version=GCF_000001405.38 should be version=GCF_000001405.40
Thanks a lot for all the work put into bcbio.

Thanks @wangpenhok !
I've updated the fields file and the recipe.
I have not changed the recipe version to avoid gnomad updates for users.
@matthdsm  I think you compiled that list years ago, could you please review?
Smaller populations are not in Gnomad anymore.

@matthdsm I think you compiled that list years ago, could you please review?

Hi Serhiy,
It seems you already recompiled the list? Do you need me to do something more?

Thanks Serhiy!
I believe that also https://github.com/chapmanb/cloudbiolinux/blob/master/ggd-recipes/hg19/dbsnp.yaml needs to be changed accordingly
/Linda

Hi Serhiy,
I got the same problem but for GRCh37. Would you mind also updating the dbsnp.yaml for GRCh37?
TT

Just to note I have had the same problem now with GCF_000001405.38 should be version=GCF_000001405.40 but I see it has already been noted in the comments


Pr ekf2 reset

@tumbili Where is this standing?

@LorenzMeier @bkueng @julianoes This is tested in SITL and I flew it on a quad several times without issues. This would still need fixed wing testing. Review would be good!

@tumbili Have you actually tested all the resets in SITL or flight tests, or have you just regression tested it?

@julianoes I have tested this in SITL by provoking a reset and making sure that the drone does not perform weird behavior. I have also flown this on a multicopter multiple times, however, I probably never had an actual reset occurring.

@tumbili do you think you could test actual resets? Otherwise this seems like code that goes in and never actually was verified.

@tumbili What would be needed to test? A vehicle that can do logging be carried below a roof?

@LorenzMeier @julianoes We have 5 possible sources for a reset, namely position, height, vertical velocity, horizontal velocity an yaw. We can add some temporary code into ekf2 which adds offsets to the sensor data. We can use a switch to trigger it. We could have the following cases:
if aux1 > 0

Add constant 20 m to baro measurement
Add constant 10 m/s to gps down velocity
Add constant x, y lat lon offset to gps position measurement
Add constant 10 m/s to either gps vN or vE measurement
I need to see how we can trigger a yaw reset in the easiest way.

We could implement a temporary parameter which lets you switch between the different cases.
How does that sound?

@LorenzMeier @julianoes While testing this I found some bugs in ecl, this PR should fix it https://github.com/PX4/ecl/pull/199
I will discuss it with @priseborough so that we can get this in.

@julianoes @LorenzMeier Julian, I fixed up the stuff you commented on and added the lat lon coordinate wrap. Could you please review my  last two commits?
This is rebased on master and therefore, should have the ecl fixes.

@julianoes BTW, I also tested every possible reset in SITL except the yaw reset.
I still need to find a convenient way to trigger it.

@tumbili  The yaw reset triggers every time the EKF changes from magnetic yaw to  3D fusion. This happens after every takeoff when the hight has increased by 1.5m. If you takeoff from a steel surface or place a large steel object (large spanner, etc) underneath the copter before takeoff, then the change in yaw angle due to the reset will be more noticeable.

@tumbili I did a rebase - can you address Julian's comment?

@LorenzMeier Done! So the only untested part is the reset for fixed wings. Maybe I could ask @CarlOlsson to test this on the plane during his weekly test flights. I would provide him with the code which adds glitches to gps data in order to provoke a reset. What do you think Carl?

@tumbili of course, just send it over and a detailed test procedure and I will fly it!

@CarlOlsson Thanks! I pushed this branch to PX4 https://github.com/PX4/Firmware/tree/pr-ekf2ResetTest
which you can use for the test.
There is a param called "EKF2_TRIG_MODE"  with which you can trigger two different resets:
value = 0: no reset will be triggered
value = 1: this will suddenly subtract 20m from the baro sensor data. As a result the ekf will reject the baro measurements and you should get a height reset after 5 seconds. I suggest you either fly in ALTCTL or in POSCTRL. During the 5 seconds no absolute height measurements will be fused so the plane could drift a bit in height. However, after the reset it should hold it's current altitude.
value = 2: This will offset the gps position data. The effects should be more or less the same as described above. For this test you have to fly in POSCTRL. The plane should not suddenly change it's flight direction as a cause of the position reset.
Don't forget that this modifies the gps data and so you can't rely on RTL working anymore :-)
Well, it will actually work, it will just land somewhere else.
So this is how it looks in code:
if (_reset_trigger.get() == 1) {
		sensors.baro_alt_meter -= 20.0f;

} else if (_reset_trigger.get() == 2) {
		gps.lat += 100000;	// add insane offset to positon, good luck!
		gps.lon += 100000;
}

Let me know if you have questions.

Hi @tumbili here is the log file from today's filght:
http://logs.uaventure.com/view/VbRaqYkhoKEMU4YeyHFsDJ
I haven't had time to look if the resets actually happened, so just tell me if you wand it tested again

@CarlOlsson Thanks for the log, that helped much! I've found that we didn't make TECS handle the altitude resets so I did that as well.
I finally got my SITL plane setup running again and tested this branch in SITL.
It works as expected. I'll talk to you tomorrow about another test.

I'm glad it was useful!

@CarlOlsson @LorenzMeier I tested this intensively in SITL and things work as expected.
Carl, if you could give this one more test flight on a plane that would be great!

@tumbili Could you please fix the CI issues? Thanks!

Here are the SITL logs:
Plane: http://logs.uaventure.com/view/BUc4KLkbWaYjVwNVnxJ54h
Quad: http://logs.uaventure.com/view/H2ZGZaTHwUTVuHqWJJ7iqB

@tumbili do you still want me to fly this? If so I can do it in a couple of hours

@CarlOlsson I pushed the pr-ekf2ResetTest branch, all good to go. I now also includes the recent changes of ecl.

 If this is too much of a pain we should get a SITL test done.

No I have not been out yet, but will go tomorrow!

@LorenzMeier @priseborough @CarlOlsson This is rebased on master and tested in SITL.
I added offsets to baro and gps measurement to trigger ekf resets. I triggered the resets in both manual and automated modes and the results were always as expected.
In manual modes the corresponding setpoints were adjusted such that the reset was not even noticeable.
I mission modes the setpoints were not shifted and the drone reacted correctly.
I tested for both multicopter and fixed wing, everything worked as expected.
Here are two logs for reference, the first one are the results for the multicopter, the second one for fixed wing.
Multicopter
http://logs.uaventure.com/view/KAoPE7F8FZTK653CWi4ouE
Fixed wing
http://logs.uaventure.com/view/vj7CvHnJDtFiKp7gRbXLwM

Looks good to merge for me.

Merged


Added startDate prop

Backgroud
I was working on a project and I had a usecase where I wanted to see a different range of date than current date and the one in events.
Usage
If provided, the calendar will show a range of dates having this date

Hi, thank you for your pull request.

If provided, the calendar will show a range of dates having this date

I understand your usecase, but you can implement it by providing date prop already? Please clarify why you need this new prop.

Thanks a lot for your quick response. As per my understanding, if we use the date prop, it marks that as "currentDate" and shows an indicator on that date. Please correct me if I am wrong.

Oops!! Looks like I am wrong. That actually serves the purpose and does not mark that as current date.
Can you please confirm? If that's the case, you can close this PR.
Thanks a lot.

Yes, that is what I meant. If you set the prop date to a certain date, the calendar will initially scroll into that date.
I think we can close this PR now, but can you confirm how date prop works and close this PR by you? Thanks

Sure @acro5piano
I completed my implementation using date prop.
So when we pass some date to it, it automatically initializes itself to a range that contains that range. As per my original understanding, it does not act as currentDate. In fact, it's more like a default value/view.
Thanks a ton for the amazing work @acro5piano


Removed support for piped input?

After upgrading from 3.0.3 to 4.0.2, I can no longer pipe a generated CSS file into blessc using blessc - <output>.
I cannot find anything in the documentation that says one way or the other.

That was not a scenarios I accounted for in the 4.0 rewrite. Feel free to submit a pull request if you wish.


Struggles with test case 5 (lab6)

Summary
Has anyone encountered a similar problem in test case 5? I can't seem to find what the problem is in my code.
Screenshot:

It seems that your function is not updating the events inside the priority queue. The issue might lie with how you update the timings of each event after a server has finished serving a previous customer and is currently resting.

You could try to check if your server/event timing is updated correctly when customer changes from wait -> serve. Personally I think the problem may be when your customer goes from wait to serve, your server's free time is not updated so the next customer in the waiting queue was also served immediately.

@dohaduong's suggestion seems legitimate, too! Other than that, there may be a case where your Serve event may need to return another Serve event if the server is not done serving another customer, or if the server is currently resting.

It seems that your function is not updating the events inside the priority queue. The issue might lie with how you update the timings of each event after a server has finished serving a previous customer and is currently resting.

Thank you for the suggestions! I found that the issue was in my BufferEvent where I didn't properly retrieve the server's next available time. Thank you for the help!


Number Facts

Hii I'm a GSSoc22 contributor and I'm willing to make a pull request in this repository on my project which is Number Facts.
The idea behind this project
This is a very mini project which can be used to know some fun facts about numbers. This will help not only in getting fun but also unknown knowledge and information about numbers
###How does it work
Whenever you enter a number in the input box and click submit, we can see some fact about that number.
please refer to these image

s

@swapnilsparsh  please review my PR....

@swapnilsparsh I made PRs for 2 projects in this repository ...But on GSSOC leaderboard, I can see only 1PR was merged and my score was only 25..please help me in this..I solved 2 issues using the same PR https://github.com/swapnilsparsh/30DaysOfJavaScript/pull/494


Change generated names

Handles name components in snake case like_this to map to gRPC names LikeThis, instead of Like_this.
Still hackish, but at least there are some more tests, and satisfies #41
fixes #41

@jprobinson oops, I accidentally merged fixes to #58 in this branch. Ah well.
If this is problematic, I will redo the PR(s).
Meanwhile, I need to check with you about the implementation of these PRs. The code is starting to do a bit of refactoring, and in fact it exposes a few more data types, and changes syntax for a few helper methods -- which could be problematic if you are using this code as a library for another app.

Maybe this is something I should write in a different issue/PR, but if it's OK with you, after this PR I'd like to do some refactoring on the code so I can more easily fix problems if I find them in the future. A few things I intend to do:

Remove the remaining uses of text/template: I think they are horrible when you have to control indentation and line breaks
Separate the code out into Parser which consumes OpenAPI spec, and a Producer/Emitter/Formatter that produced Protocol Buffer files.

Anyways, let me know what you think.


Thermostat Cluster Improvements

Problem
No checking for manufacturer or user limit attributes when setpoint-raise-lower command is called.
Required for TE5.
Change overview
Added testing for optional manufacturer  and user limits on heating and cooling set points.
If the attribute(s) are present they are applied to enforce max and min heating setpoints.
If the attribute is not present the default is assumed.
Added task and launcher for Thermostat to facilitate test and debug.
Testing
Manual testing against the example Thermostat-app using the chip-device-ctrl tool.
Testing was done with none of the optional attributes set. - Pass
Testing was done with only the Absolute min and max attributes set - Pass
Testing was done with only the user min and max attributes set - Pass
Testing was done with absolute and user attributes set (user  attributes set outside of absolutes) - Verify that abs are used - Pass
Testing was done with absolute and user attributes set (user attributes set inside of absolutes) - Verify that user attributes - Pass
Tested was done with absolute and user attributes set (one user attribute set outside of absolute) - Pass

/gcbrun

@chrisbeach59 Need to rerun codegen?

LGTM, waiting for CI to merge


Multiple pages with the same name can be created.

Describe the bug
Multiple pages with the same name can be created.
To Reproduce
Create two pages with the same name.
Expected behavior
This shouldn't be allowed to happen.
Screenshots

Additional context
This is on 0.8.5-beta.8

Is the slug different?

Nope.  I wasn't thinking and created two pages named "home".  Second one wiped out the first.

OK, so I'm out of solutions :)
Indeed it's an issue.
Only @glutamate (Tom) will be able to tell, but he seems to have some work load right now. I'm waiting for a reply since a week approximately.

It would be nice to have more detailed documentation on what each part of the project does, so having everyone equally short on time we can help more easily with improvements without having to study the code very thoroughly

it should not be possible to create two pages with the same name, this was a bug and fixed in #1747


Bad handling of corrupt json environment files

Bug Description
On startup Visdom loads all json environment files available in ~/.visdom/. If one of the json files is corrupted, Visdom will crash without a helpful traceback, i.e. it doesn't state which json file crashed the server.
Reproduction Steps
A corrupted json file can happen when the the server crashes in the middle of updating a json file, or in the case of storage device failure.
Expected behavior
This situation can be handled in several ways:

re-raise an exception stating the faulty json file.
throw a warning and skip the faulty environment file.
move the faulty file to a trash folder and throw  a warning.
skip the faulty environment file but create a corresponding visdom environment with a text pane stating the error.

Additional context
The faulty line is the following:
https://github.com/facebookresearch/visdom/blob/13f179d7acdb638c260779a53ad1f32195b24915/py/visdom/server.py#L150
I can create a PR once a solution is decided upon.

Thanks for isolating the issue and providing some potential solutions here @amitibo - I think options 2 or 3 are the best, likely 2 (as it prevents additional complexity of dealing with moving files).

Fixed in #508


Replace IsCardanoEra and IsShelleyBasedEra contraints in GADT constructors with Typeable

Changelog
- description: |
    Replace `IsCardanoEra` and `IsShelleyBasedEra` contraints in GADT constructors with `Typeable`
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
There are very few places where we need IsCardanoEra and IsShelleyBasedEra in these GADTs.
In these few remaining places, cardanoEraConstraints and shelleyBaseConstraints can be used to get the constraints instead.
Removing these constraints is helpful because whilst it makes it more convenient when unpacking the GADT, when constructing the GADT it is more inconvenient because the declared constraints need to be available on construction.
Moreover, the removal of these constraints makes the modified GADTs more compatible with EraInEon.
Downstream cardano-cli changes: https://github.com/input-output-hk/cardano-cli/pull/435
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated. See Running tests for more details
[ ] Self-reviewed the diff

What does this change look like in cardano-cli?

There is a link in the PR description.


Fix table storage returning entities with empty fields on not equal and other checks : Issue 1929

This PR is probably too messy since I haven't contributed to this repo before and didn't have a must better way of adding this check with all of the Predicate/Token handling. But it should at least give the test cases and maybe some ideas on how to fix it to someone who knows the repo/language better.
See the issue here for some more info https://github.com/Azure/Azurite/issues/1929 but when querying table storage, if you have an entity with a not set field and you query on that field with a not equal, that entity will be returned since it is not equal. However this does not match the behavior in the real Azure Storage where if you query a specific field and that field is not set, it ignore that entity.
For this PR, I basically added a check for any identifier to make sure the field is there doing
item.properties.hasOwnProperty("<propertyValue">)
I'm not a fan of how it is jammed in. And there may be a better way to check the field, but I'm not super familiar with the code or typescript.
The C# test tests the behavior. Current if ran against real Azure Storage, it will pass. However, if ran against Azurite it will fail. The added test in the table.entity.query.test.ts does the same thing

@microsoft-github-policy-service agree

Hi @garrettbaski,
Looking at this change, it looks like there is a ton of repetitive code - that's usually a sign that there's a better way to tackle the problem (either through an abstraction, or through a common injection point). Walking through the parser logic here, it seems like there are a number of steps happening, and I'll try to capture my understanding here so that if someone more familiar with the code disagrees, they can ideally point out where I've led you astray :).

The parser consists of a state machine which consumes the query tokens and proceeds to convert these into one of Identifier, Operator or Value tokens (themselves contained in a TokenMap).
In the StatePredicateFinished parser state, these tuples are converted into an IPredicate (such as the BooleanPredicate) which provides the convertPredicateForLokiJS function. This function essentially performs the transform from a "query string token map" into a "JavaScript token map" (and you'll see this being done with the r/this.push(Value|Identifier|Operator)/ methods in each predicate implementation).
The convertPredicateForLokiJS function is actually executed in the StateQueryFinished parser state, which is responsible for converting the whole shebang into a transcribedQuery string (which should be valid JavaScript that can then be used to construct a Function for execution).

Right now, you've approached solving this problem by doing two things:

You've introduced a condition within each IPredicate implementation which attempts to add item.properties.hasOwnProperty(...) at either the start or end of the predicate's "JavaScript token map" when convertPredicateForLokiJS is called.
Assuming that there can only be one Identifier token within a predicate (this is not necessarily true, as we can assert x eq y).

Given my understanding of the way this library works, I think you may be better served by focusing on the 3rd portion of the translation (the StateQueryFinished state)  and in particular the onProcess method there - where each predicate is converted into its JavaScript form.
I believe introducing the following changeset there might be all that is necessary to implement support for this, as well as to ensure that we don't run into problems with evaluating x eq y either.
index 227d0b4..74ac024 100644
--- a/src/table/persistence/QueryTranscriber/StateQueryFinished.ts
+++ b/src/table/persistence/QueryTranscriber/StateQueryFinished.ts
@@ -26,6 +26,13 @@ export default class StateQueryFinished implements IQPState {
     for (const taggedPredicate of context.taggedPredicates) {
       let predicate = "";
       if (taggedPredicate !== undefined) {
+        const requiredIdentifiers = taggedPredicate.tokenMap.tokens.filter(token => token.type.isIdentifier() && token.token !== "**blena**");
+
+        for (const identifierToken of requiredIdentifiers) {
+          predicate += " ";
+          predicate += `item.properties.hasOwnProperty("${identifierToken.token.replace(/\\/g, "\\\\")}") &&`;
+        }
+
         const convertedPredicate = taggedPredicate.convertPredicateForLokiJS();
         for (const taggedPredicateToken of convertedPredicate.tokenMap.tokens) {
           predicate += " ";

Doing so will result in any predicate which references an Identifier being prefixed with item.properties.hasOwnProperty($$identifier$$) &&, for each identifier used, and it avoids the need for you to introduce any additional changes to the IPredicates, greatly simplifying your changeset. As a last caution - making the above change will cause your unit tests to fail as the ordering that you've currently implemented (either pre-fixing or post-fixing the condition) no longer applies, I think this is likely for the best as there's no value in evaluating the predicate if the field does not exist.

Hi @garrettbaski,
Looking at this change, it looks like there is a ton of repetitive code - that's usually a sign that there's a better way to tackle the problem (either through an abstraction, or through a common injection point). Walking through the parser logic here, it seems like there are a number of steps happening, and I'll try to capture my understanding here so that if someone more familiar with the code disagrees, they can ideally point out where I've led you astray :).

The parser consists of a state machine which consumes the query tokens and proceeds to convert these into one of Identifier, Operator or Value tokens (themselves contained in a TokenMap).
In the StatePredicateFinished parser state, these tuples are converted into an IPredicate (such as the BooleanPredicate) which provides the convertPredicateForLokiJS function. This function essentially performs the transform from a "query string token map" into a "JavaScript token map" (and you'll see this being done with the r/this.push(Value|Identifier|Operator)/ methods in each predicate implementation).
The convertPredicateForLokiJS function is actually executed in the StateQueryFinished parser state, which is responsible for converting the whole shebang into a transcribedQuery string (which should be valid JavaScript that can then be used to construct a Function for execution).

Right now, you've approached solving this problem by doing two things:

You've introduced a condition within each IPredicate implementation which attempts to add item.properties.hasOwnProperty(...) at either the start or end of the predicate's "JavaScript token map" when convertPredicateForLokiJS is called.
Assuming that there can only be one Identifier token within a predicate (this is not necessarily true, as we can assert x eq y).

Given my understanding of the way this library works, I think you may be better served by focusing on the 3rd portion of the translation (the StateQueryFinished state) and in particular the onProcess method there - where each predicate is converted into its JavaScript form.
I believe introducing the following changeset there might be all that is necessary to implement support for this, as well as to ensure that we don't run into problems with evaluating x eq y either.
index 227d0b4..74ac024 100644
--- a/src/table/persistence/QueryTranscriber/StateQueryFinished.ts
+++ b/src/table/persistence/QueryTranscriber/StateQueryFinished.ts
@@ -26,6 +26,13 @@ export default class StateQueryFinished implements IQPState {
     for (const taggedPredicate of context.taggedPredicates) {
       let predicate = "";
       if (taggedPredicate !== undefined) {
+        const requiredIdentifiers = taggedPredicate.tokenMap.tokens.filter(token => token.type.isIdentifier() && token.token !== "**blena**");
+
+        for (const identifierToken of requiredIdentifiers) {
+          predicate += " ";
+          predicate += `item.properties.hasOwnProperty("${identifierToken.token.replace(/\\/g, "\\\\")}") &&`;
+        }
+
         const convertedPredicate = taggedPredicate.convertPredicateForLokiJS();
         for (const taggedPredicateToken of convertedPredicate.tokenMap.tokens) {
           predicate += " ";

Doing so will result in any predicate which references an Identifier being prefixed with item.properties.hasOwnProperty($$identifier$$) &&, for each identifier used, and it avoids the need for you to introduce any additional changes to the IPredicates, greatly simplifying your changeset. As a last caution - making the above change will cause your unit tests to fail as the ordering that you've currently implemented (either pre-fixing or post-fixing the condition) no longer applies, I think this is likely for the best as there's no value in evaluating the predicate if the field does not exist.

Yeah this is a much better way of doing it. I couldn't think of how to do it in a single spot. I changed it to this and fixed up all the tests.

Looks solid to me, thanks Garrett - hopefully this is a bit quicker for @edwin-huber to review now, shout if there's anything else I can help with (unfortunately being an approver is not one of those things right now).

@edwin-huber , @XiaoningLiu
Would you please help to review if the fix is good to you?

I think this will be invalidated by https://github.com/Azure/Azurite/pull/1975 if that is merged first. In that case, I just need to ensure that the test case that I have here successfully executes and if so then this will not be needed.

@garrettbaski
After https://github.com/Azure/Azurite/pull/1975 merged, if the issue of this PR still exist?
If so, would you please update this PR based on the current code base?
Thanks for your contribution!

@XiaoningLiu  , @EmmaZhu
Any comments for this PR?


rouge: to create zero filled partitions

Android needs to have some partitions filled with zeros at the very first boot. For example misc and rpmbemul.

Feature is merged.