Very long device discovery

Device discovery works but its duration is very inconsistent and takes often a very-very long time before reporting the device. It falls anywhere between 10 seconds and 500 seconds.
If I run 5 instances of device discovery concurrently, the first one to find the device (not always the first one to run) reports back between 5 and 30 seconds later, while better than the first result, it is still nowhere near acceptable for a user and having that many searchers uses far too much CPU.
My modem (Technicolor TG589Bvac XTream) provided by our ISP (Belgacom/Proximus) is notoriously bad with NAT and port forwarding, here's something that I found and that might help you :

A problem with multicast protocols such as SSDP (discovery of file servers, printers, DLNA servers, etc.) and Bonjour (discovery of services on Apple devices - Airplay, Continuity, etc.). It seems that M-SEARCH messages over HTTPU get blocked or are not always propagated. The result is very annoying: my TV no longer finds my Synology DLNA server and Airplay does not work. If the DLNA server is set to broadcast over SSDP at very small intervals (30 seconds) then the TV finds it. If Airplay receiver is put on the 2.4 GHz network - it works again.

QBittorrent finds the device and port-forwards flawlessly though, it supposedly uses UPnP and NAT-PMP as well since disabling that feature in the options blocks the port.
Here's my network.log and here's qBittorrent's repo.

Same here with ZyXel. Long time without a response. and UTorrent make port mapping in less than 5 seconds.


Fix eslint and prettier config

Propose modification for eslint and prettier rule
I'm not sure that's what you want. Single quote are not always used. backtick are replaced by single quote in most case.

I don't get why "quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }] makes it use double quote...

Prettier, is rewritring the code. The avoidEscape just avoid eslint error

Ok, tested it. If we use template literals we don't have to use double quote and neither prettier nor eslint complains about it

Without the avoidEscape, in that case :
"I can't kill you my lord <3 ! mindse4Stop"

eslint keep complains that Strings must use singlequote. If we use this syntax :
`I can't kill you my lord <3 ! mindse4Stop`

This is valid, but prettier rewrite it...

But, the "allowTemplateLiterals": true is possible a good way to use the second syntax

I have rewrite the two parts that keep complains about the double quote


track

save
Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

@jroesch I think you misunderstood... this is just a PR to track all the difference of my internal version to mainline, where I split small PR from here.


Startup  code is slow

Startup  code is slow, can you optimize the speed ??

#45 tracks this, you're welcome to contribute.


Use the right name for param.

Hey @bakert,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: bf831be0-0bdd-11ea-9cd6-8f216fa7db85


Add LICENSE

CC BY 4.0 comes pretty close to MIT I think, so I went with that

everything has to be mit

Even for repos that aren't really code?

I suppose http-meower is also released under MIT. I've edited the license

I forgot to add this earlier lol, thanks for the PR :)


Dead letter queue support

When DLQ is configured, move malformed records (ones that fail to be indexed in OpenSearch due to mapping issues) to the DLQ topic.
Records moved to DLQ will be added with a header named "__connect.errors.exception.message", containing the reason for the failure (the error message as reported by OpenSearch).

Hi @C0urante ,
Thanks for the feedback!
I've addressed all your comments, please review my changes and let me know if there are more comments/questions.

Hi @C0urante
I've made the last changes you requested, would be great if you can review.
Thanks

Hi @C0urante ,
My last commit includes the changes you've requested

Oh, and can you rebase on the latest main to fix the merge conflicts?

@ivanyu can you take a look at this when you have a moment?


Region playlists only working for some tempos Working for 120 125 and 126bpm but NOT working for 119 121 or 127 bpm!!!!

I'm getting very strange behaviour when trying to use region playlists.
My time area lights up red to show me I'm getting audio dropouts at the beginning of each region when repeating.

This doesn't happen for all tempos though.
It works perfectly at 120 bmp but if I adjust it to 121 or 119 bpm I get audio dropouts at the beginning of most of the regions.
See Video: (sorry OBS didn't capture the dialog box where I typed in the bpm but you can see it change after I confirm)
https://github.com/reaper-oss/sws/assets/157719230/c5073215-0190-42b3-9fe1-290dc2024578
There's no sound on the video above but the audio dropouts are bad enough that the first beat usually starts with a pop or  is left out altogether
Even more bizarrely  it works perfectly at 125 and 126 bpm!...but not 127 bpm!
There's definitely a limited number of tempos that work
WORKING
60
70
120
125
126
NOT WORKING
60.2
61
71
119
121
122
123
124
120.01
120.02
120.03
120.04
120.05
120.5
120.001
interestingly 126 works..but NOT  126.0001 (A separate reaper issue here unfortunately:  Reaper "thinks" it rounds 126.0001 to 126 as it displays 126 instead of 126.001 in the timeline and in the panel at the bottom. But the audio dropouts still continue until I type 126 into the dialog that says 126 in it, there's obviously some discrepancy where reaper is rounding the displayed number but not the project itself)
This is a real pain for me as I'm hoping to use region playlists as a drum machine for  Céilí dances but I need fairly specific tempos and unfortunately 119 and 121 are needed!
Any thoughts on what's causing this?
It makes region playlists unusable  for me unfortunately which is annoying as I've already spent a lot of time working on them for this purpouse.
Any help would be much appreciated.
Things I've tried
I've restarted reaper,
restarted my computer,
tried ASIO drivers,
Tried direct sound on windows,
increased the audio buffer size (was 512, tried 1024, any numbers bigger than that require the region to be longer or the region playlist won't work, I tried it anyway with 3k buffer and 10 second long region but there was still the same dropout)
Glued the drum sound so it's not stretched
I tried a new project, strangely in that project 120bpm didn't work! I gave up then in disappointment!

Does it still happen with this build? https://github.com/reaper-oss/sws/pull/1802#issuecomment-1920350522


Error Result = NonDBFile with SQLCipher 3 encryption enabled

I am using the current Release from Nuget SQLitePCLRaw.bundle_sqlcipher 1.1.13. However, when using DB Browser for SQLite with SQLCipher 3 to create and populate the database, I get the NonDBFile exception after executing with the Pragama Key. I was using sqlite-net-sqlcipher 1.5.231 but was getting the same error. So, I created my own code to step through the process. What I found was this:

I set the Pragama and execute the command, this is successful.
When I then use the DB Handle from the open operation to execute a query directly,  I get the NonDBFile error

See sample below:
IntPtr handle;
//i am explicitly referencing the database here for my testing.
EMMA.FINSM.SQLite.SQLite3.Open("/data/user/0/EMMA.FINSM/files/EMMALite.sqlite", out handle);
//set my pragma command that appears to be successful with a Done replay
var stmt = SQLite.SQLite3.Prepare2(handle, "pragma key = 'D26CC3C0'");
var r = SQLite3.Step(stmt);
SQLite.SQLite3.Finalize(stmt);
///this line fails with the NonDBFile Exception
var statment = SQLite.SQLite3.Prepare2(handle, "SELECT * FROM AppSetting");
//this is the operation that fails
var r = Prepare2 (db, query, System.Text.UTF8Encoding.UTF8.GetByteCount (query), out stmt, IntPtr.Zero);
As a note, when I remove the encryption from the Database through the DB Browser for SQLite, the database operations are SUCCESSFUL.
I have also used extension .db, .db3 and .sqlite

This problem is often due to a build configuration problem wherein you end up with more than one sqlite library, so you think your code is talking to sqlcipher, but it's not.
You can ask sqlite for its version number, which will give you a clue which native library you're actually using:
SELECT sqlite_version()

If this returns 3.26.x, you're not actually talking to sqlcipher.
Feel free to post more details about which projects and packages are being used.  You're looking for something that is bringing in both sqlcipher and (probably) e_sqlite3.

Thank you so much for your reply. I just emailed you from my account. Thanks again. I will look further.
From: Eric Sink<EMAIL_ADDRESS>Reply-To: "ericsink/SQLitePCL.raw"<EMAIL_ADDRESS>Date: Tuesday, March 12, 2019 at 5:09 PM
To: "ericsink/SQLitePCL.raw"<EMAIL_ADDRESS>Cc: Edward Rush Developer<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ericsink/SQLitePCL.raw] Error Result = NonDBFile with SQLCipher 3 encryption enabled (#259)
This problem is often due to a build configuration problem wherein you end up with more than one sqlite library, so you think your code is talking to sqlcipher, but it's not.
You can ask sqlite for its version number, which will give you a clue which native library you're actually using:
SELECT sqlite_version()
If this returns 3.26.x, you're not actually talking to sqlcipher.
Feel free to post more details about which projects and packages are being used. You're looking for something that is bringing in both sqlcipher and (probably) e_sqlite3.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fericsink%2FSQLitePCL.raw%2Fissues%2F259%23issuecomment-472182111&data=02|01||ee6c2ddd5bc14186892808d6a72f012f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636880217650242856&sdata=77nBQPj9nbIw6kXrb8GdCFnTCyRPPV6Nq7WFJw%2FsZac%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXz3CV_YBvsm3WFkLFtmCqfFhoxqdWyBks5vWBeDgaJpZM4br3-V&data=02|01||ee6c2ddd5bc14186892808d6a72f012f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636880217650252864&sdata=ELWYn2Itfuet8zv95cVwtcjt9uXSs3AUtl7V5gfnH%2Bw%3D&reserved=0.

Yes, when I run the Query from my DB Browser I pull -
3.26.0

@EdwardRushDeveloper A very reliable way to determine if your application is properly linked to SQLCipher is to execute PRAGMA cipher_version. Because that PRAGMA is only impelemented in SQLCipher, if you execute that on a standard SQLite library it won't return a result. When you execute it through a SQLCipher library it will return the version number and potentially other build information. Try calling that from your application.

I don't know what DB Browser is.  I assume it is not somehow making use of SQLitePCL.raw.
I further assume the real issue here is what happens when you use SQLitePCL.raw with your own code and whether it works or not.
Another tidbit to try:  look in your project output directory.  If you see e_sqlite3.dll or libe_sqlite3.so or libe_sqlite3.dylib anywhere, that is a sign that somehow e_sqlite3 slipped in somewhere when you are trying to use sqlcipher.

@sjlombardo Good tip.  I need to remember that one...

Well the only packages I have included in the project at this time are the MVVMCross bare framework version 6.2.3. It is really bare at this point. My assumption is the tool that I am using to create the database. I will try the PRAMA cipher_version call.

What I was looking for was specific details on what sqlite-related packages you are using.  You mentioned sqlite-net-sqlcipher, but it wasn't clear if you were still using that.  Any others?

Thanks for your reply. Yes I am using your lasted cipher package and Sqlite-net-SQLCipher by Krueger. So I could step through the code, i put the colde from Krueger’s package in my own class file, as well as a reference to your bundle SQLCipher package 1.1.13. I believe it may b the issue with using the desktop tool SQLite db browser to set the encryption. I create the database with this desktop tool and add it to my assets. When I set the encryption with the sql desktop browser, it fails on the mobile device. But if i leave the encryption off it works. After seeing your reply, I think the issue resides in the idea that db browser tool is not applying the encryption the same. So when I get in my office later today, I will run tests, create the Db on the device with Krueger’s package, and set the encryption there. I just need the database prepopluated with data that I want to have a layer of security to make it hard to get into if my db happened to get moved to an unsecured location on the android device. It is just a security measure that I have to have so my infrastructure team don’t have questions. If they thought that I had an unsecured database, even in a sandboxed area, they would be raising Cane.

Closing old/stale issue.


Mission Control seems to require an active record connection when the application typically does not

On version 0.3.1, we had to recently set mission control rails to require: false, and manually require the gem in non CI environments.
Something about the way this gem loads, will attempt to invoke ActiveRecord::Base.connection on load. My hypothesis is it's something to do with https://github.com/rails/mission_control-jobs/blob/main/lib/mission_control/jobs.rb#L6
We tested this by commenting out all mount's and application configuration (e.g. no references in config/application.rb, routes, and more) before setting the gem to require: false in the Gemfile.
This is a problem because our build environment does not have a database connection set up. E.g. when running bundle exec rails assets:precompile but does in our other environments (production, development etc). I haven't yet had time to track this down further.
Ideally, Mission Control does not invoke side effects in Active Record on load, instead only doing so when the route is visited or otherwise.
Very excited about this project by the way. If necessary, I could look to setting up a proof of concept to demo the problem.

Unfortunately, I did miss an in application issue on our end that caused this. Mission control does load models that were previously not loaded in our CI environment, but the root cause was that we had a unobvious call to column_names in one of our models that happened to be invoked via a concern at load-time. I mistakenly thought this was mission control, but it only exposed the problem, not caused it.
Apologies for the distraction here.


Fix Node 10 incompatibility

https://github.com/albanm/node-libxslt/issues/68

[ ] add note
[ ] update when node-libxslt is fixed

Wondering any updates to support Node 10.x?

Best to track the issue linked above. We don't have the expertise to fix this ourselves unfortunately.

Thanks @MartijnR.
It seems the https://github.com/alexdee2007/node-libxslt has a fix for node 10.x. Would you like to use it for enketo-transformer? or prefer to wait until node-libxslt fixes this?

I think at this point we should probably use the fork.

@alexdee2007, it looks like a simpler version of node-libxslt has some demand (we, for example, never use stylesheets referenced in other stylesheets). I just wanted to check if you wanted to publish your fork with the libxml dependency (instead of libxml-mt)  on npm. Would become instantly popular :D!

Hello @MartijnR, I’ll do it in the near future.
Unfortunately, I don’t have enough time for now.


[Coder] Memory leak due to mixed announcers

The announcer has both weak and strong subscriptions:

GtExampleGroup>>#buildListViewFor: has a problematic subscription too


Adding a .toEuler() function

Being able to convert to Euler angles (and not just from) would be very nice IMO. Let me know what you think and if you agree I'm happy to implement it and submit a PR.

I'd love to see that PR! Would you standardize the output to a certain order like ZXY or would you implement all orders?

I was thinking about doing it the same way as .fromEuler() where there's an order parameter that defaults to 'ZXY'

Awesome! I look forward to review your contribution :)

bump :-)

The simplest toEuler implementation is now in 1.3.0. Other axis orders can follow when required.


Spine v0.7.0

Early PR.
DO NOT MERGE

Current coverage is 91.19% (diff: 100%)

Merging #18 into master will increase coverage by 0.01%

@@             master        #18   diff @@
==========================================
  Files            64         64
  Lines          1281       1283     +2
  Methods           0          0
  Messages          0          0
  Branches         64         64
==========================================
+ Hits           1168       1170     +2
  Misses           86         86
  Partials         27         27

Powered by Codecov. Last update 2cc8180...a36157b


Include a notice during account creation for under-18 users

Adds this notice for users who are not yet 18:

Need to cut a release today and Ansh is OOO, merging without review


Adding colors support to donut charts

Hi!
Great Responsive library. One of the reason I started using this library is because it is super responsive. I was until now using Chart.js and was able to add colors to the pie charts too and I thought that was missing in this library. With this commit I am just trying to add colors support, please let me know if you guys feel this is bad-good way to add colors support!
Thanks

Hi, thanks for the PR! I'm sorry but we really don't want to support this. Chartistians believe in strong separation of concern and colours spread around in your JavaScript is kind of smelly. Check out this page to read more: http://gionkunz.github.io/chartist-js/getting-started.html#colour-up-your-charts
Also for future, please only commit to the source files. Dist files will be generated during releases. Check out the contribution guidelines: https://github.com/gionkunz/chartist-js/blob/develop/CONTRIBUTING.md
Anyway, thanks for the PR, and I hope to see an other one in the future! :-)


feat: Add a  schema validation strategy

Schema validation implemented as a consumer strategy. The KafkaMessageDecoder takes a Kafka payload and is responsible for decoding and validating the payload. Any codec can be passed to the decoder - the one included here currently is for json / jsonschemas.
Uses multiprocessing.

Reimplemented using multiprocessing now

Just some questions for my own understanding:
It doesn't look like any of this code handles any validation errors, and relies on RunTaskWithMultiProcessing to surface the InvalidMessages. Is that going to remain the strategy?
Also, the RunTaskWithMultiProcessing has a note that it doesn't handle downstream error messages. Would this validation being inserted cause a problem in that regard?

About error handling: the strategy just throws a ValidationError right now if it does not match the schema. It's up to the user to wrap this strategy in something that decides what to do with the error. Eventually we probably want to replace this exception with a standard DLQ one but I didn't do that yet since the DLQ is subject to change right now (https://github.com/getsentry/arroyo/issues/142)
About the RunTaskWithMultiprocessing not handling MessageRejected from subsequent steps. The validation itself won't be affected but it might be an issue if validation is done before some other Produce or RunTaskInThreads step that uses backpressure. Basically it applies to exceptions from steps chained afterwards. Though we really need to get this fixed soon so all of the steps can be used together in any combination without these caveats.

Checked in my attempt to make DecodedKafkaMessage generic too in case anyone can help me fix it 😀

@fpacifici Good point, I reverted the multiprocessing part for now so the strategy can immediately reject on submit when a message that does not match the schema is received. I do still want to reintroduce a separate DecoderWithMultiprocessing later, but I think we should finalise how the new DLQ should work before doing that since there are still some open questions there.

while we don't have DLQ

Technically we have a working DLQ. The main downside of the DLQ we have, in general, is that it may not give you the original message. But in the snuba consumers this is not a problem as there is only one transform step.


Warning 6: driver CSV does not support creation option SEPARATOR.(but ogr2ogr support)

i had tested following code in two machines, both them complains: Warning 6: driver CSV does not support creation option SEPARATOR.
but if i run ogr2ogr test.csv test.geojson  -lco SEPARATOR=SEMICOLON  -lco GEOMETRY=AS_WKT from terminal, my computers can generate correct output csv file without any warning.
env of the first computer:
rustc 1.68.2 (9eb3afe9e 2023-03-27)
GDAL 3.2.2, released 2021/03/05
gdal = "0.15.0"
gdal-sys = "0.9.0"

and the sencond:
rustc 1.68.2 (9eb3afe9e 2023-03-27)
GDAL 3.5.1, released 2022/06/30
gdal = "0.14.0"
gdal-sys = "0.8.0"

my code:
use std::path::Path;
use gdal::raster::RasterCreationOption;

fn main() {
    println!("{}",gdal::version::VersionInfo::version_summary());
    test_geojson("test.geojson");
}

fn test_geojson<T:AsRef<Path>>(src:T){

    let dst = gdal::Dataset::open(src).unwrap();
    let driver = gdal::DriverManager::get_driver_by_name("CSV").unwrap();
    let opt = RasterCreationOption{
        key: "SEPARATOR",
        value:"SEMICOLON"
    };
    let opt2 = RasterCreationOption{
        key: "GEOMETRY",
        value:"AS_WKT"
    };
    let name = "/vsimem/test.csv";
    // here opt2 worked but opt not
    let _ = dst.create_copy(&driver, name, &[opt,opt2]).unwrap();
    let csv = gdal::vsi::get_vsi_mem_file_bytes_owned(name).unwrap();
    let content = String::from_utf8(csv).unwrap();
    println!("{}",content);
}

could anyone help on this?

I guess "SEPARATOR" is an open option, not a creation option. Try to use open_ex and specify it as open option.

I guess "SEPARATOR" is an open option, not a creation option. Try to use open_ex and specify it as open option.

it is a create option according to https://gdal.org/drivers/vector/csv.html#layer-creation-options,
and it did work in ogr2ogr when use as a -lco parameter (lco stands for layer create option, i guess).
i thought it might because create_copy did not support vectors creation(or csv creation) very well, but i`m not sure.

GDALCreateCopy() can only be used to pass dataset/datasource creation options, not layer creation options. For that, you'd instead need to use GDALVectorTranslate() which is the C callable version of ogr2ogr

i got it, thank you for your reply.


Support for Bangbros.com and its secondary website(s)

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.12.23. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[ ] I've verified and I assure that I'm running youtube-dl 2017.12.23

Before submitting an issue make sure you have:

[ ] At least skimmed through the README, most notably the FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.12.23
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Has anyone tried using Youtube-dl with Bangbros.com and its secondary website(s)? Any success?

Carefully read new issue template and provide all requested information.


possibility to overwrite default headers

Hi
Is it possible to implement an overwrite of the default headers, I mean for the cache plugin?
Age > example to x-cache-age
X-Cache-Status > example to x-cache
X-Cache-Lookup

Response header plugin now support rename function.


text with line breaks

Not sure if this issue is a problem with the script or whether my setup is incorrectly configured.

In Emacs I do M-x server-start.
I go to the Thunderbird window where I want to write a new email.
I press short-cut key to run the script.
A label is added to the window and a new window opens in Emacs.
When I have finished writing my email, I do C-x # and I am asked if I want to save the .eml file.
I say yes. So far so good.
I go back to the TB window and the text is pasted there, but all of the line breaks are gone and so the text is all mushed together, as if it were a single paragraph.

This also happens when I am replying to an email: all of the text from the preceding email to which I am replying is mushed together, with no line breaks.
I am running Ubuntu 20.10. Is there something I have incorrectly configured or is this an issue with the script.
Thanks, Sven, for developing this script!

I have no idea. You could, after returning from Emacs, open the temporary file (/tmp/externaleditor-[ID]_saved) in another editor or cat it in a terminal. If the line breaks are in the file, I would guess that it could be a clipboard (or clipboard manager) issue. If the line breaks are missing in the file, I would guess that it's an Emacs configuration thing. Just guessing.

The line breaks are included in the temporary file, so it is not an Emacs issue. So, could it be a xclip issue? Or would it more likely be related to xdotools? There seem to be many options for xdotool. Any further thoughts on this? Might I require a delay or a ----clearmodifiers option? Thanks for your help.

Another guess: Are you composing HTML email messages? If so: the line breaks have no "meaning" in HTML and are gone. In this case, change the line
xdotool key ctrl+v # insert clipboard into window
into
xdotool key ctrl+shift+v # insert clipboard into window
In Thunderbird, ctrl+shift+v means "insert without formatting", which seems to work for me.
Unfortunately, I don't think the script can detect whether the Thunderbird composing window is dealing with pure text or HTML, so I do not know how to adapt the script to work with both scenarios.
Please report back, whether that solves the issue. Thanks.

Sorry, but... ctrl-shift+v does not seem to work for me!
Tested "manually" in a Thunderbird compose window: select some text,
ctrl-C to copy, then ctrl-V to paste, or ctrl-shift-V to have no effect
(i.e. nothing happens). I have Thunderbird (78.6.1) on Ubuntu (20.10).
===
A side comment about

Unfortunately, I don't think the script can detect whether the
Thunderbird composing window is dealing with pure text or HTML ...

Surely it can, by looking at the contents of the text...
Thanks, Paul
--
Paul Szabo<EMAIL_ADDRESS>www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics   University of Sydney    Australia

I wrote:

... ctrl-shift+v does not seem to work for me!

I now see that ctrl-shift-V works fine in an "HTML edit" compose window
(when "Compose messages in HTML format" is selected in AccountSettings).
Sorry about the noise.
Cheers, Paul
Paul Szabo<EMAIL_ADDRESS>www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics   University of Sydney    Australia

On my side, I unticked the "compose messages in html format"  in the TB  account settings and the script works perfectly as is. Then I put back the html editing option and changed the script to ctl-shift-v and that works perfectly. So all is well. Thanks so much for this!

I wrote:

A side comment about

Unfortunately, I don't think the script can detect whether the
Thunderbird composing window is dealing with pure text or HTML ...
Surely it can, by looking at the contents of the text...

but I was wrong: you only get the "text" of the message, even though
you may have "Compose messages in HTML format" selected.
(This seems "broken" in TB, no "native" way to edit HTML.)
I guess you would need a combination of the ThunderHTMLedit add-on
https://addons.thunderbird.net/en-US/thunderbird/addon/thunderhtmledit/
(or similar) and this externaleditor.sh.
Cheers, Paul
Paul Szabo<EMAIL_ADDRESS>www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics   University of Sydney    Australia

I have added a configuration option for Thunderbird HTML messages. However, this mainly preserves line breaks and white space. Formatting is generally lost. It might not be a good idea to use this script for formatted text!


Fix/add missing quickorder link in mobile view

PR Type

[x] Bugfix
What Is the Current Behavior?
The quick order link is missing in phone (xs) view. This means no access to the feature for phone devices.

What Is the New Behavior?
The quick order link is visible in phone view. It is placed in the hamburger menu (see IAD).

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No
Other Information
AB#65435

I noticed that the hover effect of the quick order link is inconsistent with the other links in hamburger menu. Intuitively, I would say yours is right and all the others are incorrect.
I discussed this with @iwiederhold and your styling is correct. Maybe the other link hover styles were removed with this CSS purge thing? Can you match the other link hover styles to yours or do we make an extra ticket for that?

I tracked a minor bug for this VD issue: #805

I found an additional blank character in "Quick Order". This results in the link not being in line with the other links:

This is fixed with the latest changes.

I found an additional blank character in "Quick Order". This results in the link not being in line with the other links:

This is fixed with the latest changes.

Hmm, but I can still see it. When I remove the blank character with the browser tool, it looks fine. I also tested it with an incognito window. Does it no longer occur in your local environment? Maybe it has something to do with the review server.


remove es6-promisify dependency

es6-promisify does not work with RN master. Looking at the usable, it seems like removing es6-promisify should be easy.

will do that

removed in #29, but still needs some testing.
will close this when that PR get merged.

the new version has been published on npm so I would close this issue


modulus_bits and modulus_bytes methods

Related issue(s)
Resolves #549
Description
Adds two builtin functions, modulus_bits and modulus_be_byte_array. modulus_bits returns the number of bits in the modulus while modulus_be_byte_array returns the modulus as a byte array.
Summary of changes
We can evaluate the modulus at callsite so I simply added some logic to try_evaluate_call (where we evaluate the arraylen builtin).
I am considering to instead change modulus_bits to return a bit array of the modulus. Then if a user wants the number of bits in the modulus they can just take the array len of this bit array.
Dependency additions / changes

Test additions / changes
I added a test that calls both methods and tests their outputs.
Checklist

[X] I have tested the changes locally.
[X] I have formatted the changes with Prettier and/or cargo fmt with default settings.
[X] I have linked this PR to the issue(s) that it resolves.
[X] I have reviewed the changes on GitHub, line by line.
[X] I have ensured all changes are covered in the description.

Additional context
Reference issue for some further discussion about the best array types for returning the modulus

I think this could be simplified, once we have big integers, into a simple fn field_characteristic() ->BigInt  method in the std::lib. Then one would use to_bits on the result if he needs the bits.
In order to minimise backward compatibility, should we wait for the big int first?

I think this could be simplified, once we have big integers

I had thought of something similar and mentioned it in the issue #549. Are you worried that users might use these modulus methods and when we introduce BigInt and change the methods they would have to update their circuits?
modulus_bits right now returns the exact bit size of the modulus. I was considering to change this to returning a bit array and then having a separate methods modulus_num_bits that called array len on the bit array. We could probably make modulus_bits and modulus_be_byte_array backwards compatible in this case still. Once we have big ints and add a method like fn field_characteristic() ->BigInt, field_characteristic would be our only builtin method. modulus_bits and modulus_be_byte_array would then use BigInt::to_bits and BigInt::to_bytes respectively on the result of calling field_characteristic(). It would be a similar update to how we switched to the to_radix builtin without having to change the to_bits and to_bytes methods.

Are you worried that users might use these modulus methods and when we introduce BigInt and change the methods they would have to update their circuits?

Yes, but I agree it will be either a small change for them or we can make it transparent easily.

What is the reasoning behind the byte array being big endian? Since to_le_bytes exists I think it'd be easier for users if everything was little endian (or the reverse).

I was mainly trying to follow the discussion in the issue. We also currently have an issue up in acvm about updating to both to_be_bytes and to_le_bytes. Perhaps it would be good to just do the same here and have modulus_be_byte_array and modulus_le_byte_array both exposed.

@guipublic @jfecher @kevaundray What do we think about also moving these methods to a std::field module? We are starting to have more methods to interact with the native field and as we add more it would probably be good to move it out of the main lib.nr file.

I'd be for moving it to std::field::*. I'd like to also enable methods for builtin types so we can have array.len() and these methods could be called as methods as well.

So once we have a native BigInt we can make a new builtin simply for fn modulus() -> BigInt. The native BigInt type should then enable to_le_bits, to_be_bits, to_be_bytes, to_be_bytes which can be called inside the respective modulus methods added in this PR.

Is std::array::len still failing on the returned arrays of modulus_array_literal?

modulus_array_literal is the method I added when evaluating the modulus builtin funcs in monomorphisation. Do you mean is std::array::len failing when calling these builtin funcs in the std lib? If so, then yes it is failing. It panics at this line let len = typ.array_length().unwrap(); when evaluating the arraylen opcode as the Type of the array returned from those funcs is an unbound NamedGeneric.

I renamed all the functions to have the endian specification trailing the function name (ex. to_bytes_le instead of to_le_bytes). I think this makes more sense intuitively and this follows the syntax of existing big integer libraries (the num_bigint crate and the arkworks BigInteger class both follow this naming). You can see this in this PR by an external contributor as well: https://github.com/noir-lang/acvm/pull/58
I held off on implementing to_bits_be just yet, as we probably need to adapt to_radix into to_radix_be and to_radix_le for this to be accurate. I thought I could reverse the outputs of the current to_radix function when evaluating the opcode in acir_gen, however, for to_bits we let a user decompose a specified number of bits of a field but we return a u1 array of the max num bits of the field (254 for bn254). For little-endian this is fine as the trailing zeros don't have any value. But for big endian this would give an incorrect result. I think this would be best scoped in a separate PR.

mentioned naming these to @kevaundray the other day. It seems rust is using to_le_bytes for example. maybe another discussion to settle it down?


Update error-state-transact-sql.md

Text revisions to tighten and optimize the reading flow of the material. I deleted a duplicate SQL Server example.

@fbsolo : Thanks for your contribution! The author, @edmacauley, has been notified to review your proposed change.

@MightyPen please review.

I took 4 minute glance through this PR's file changes. Some of the changes seems good, but I am less sure about some others. I am on vacation, and this PR 765 needs more time to carefully assess than I can give it at the moment. I will reexamine this PR soon after Tuesday July/17.  Thank you.  (2018-07-05 09:44am)

Overall I think it is simpler to not accept this set of changes.
Several of the text changes add verbosity that deviates from the telegraphic style that is common to our reference documentation. And, I disagree with the idea of deleting the code example.
Changes that fix errors of grammer or spelling are helpful. But stylistic changes must achieve a level of importance to be accepted.
I am now permanently Closing this PR 765.
Thanks.  (GeneMi = MightyPen)


fix: infobar: buttons should have transparent background and inherit color

SUMMARY:

Adds transparent prop to InfoBar SystemUIButton
Updates scss to include InfoBar :hover and :active SystemUIButton background colors
Adds 7 unit tests

https://user-images.githubusercontent.com/99700808/220788433-3f13e674-d163-4f4c-9b42-8a5273d9f2ad.mp4
JIRA TASK (Eightfold Employees Only):
ENG-29876
CHANGE TYPE:

[X] Bugfix Pull Request
[ ] Feature Pull Request

TEST COVERAGE:

[ ] Tests for this change already exist
[X] I have added unittests for this change

TEST PLAN:
Pull the PR branch and run yarn and yarn storybook. Verify the InfoBar stories behave as expected.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@63b5f11). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #548   +/-   ##
=======================================
  Coverage        ?   84.50%
=======================================
  Files           ?      790
  Lines           ?    16711
  Branches        ?     5844
=======================================
  Hits            ?    14121
  Misses          ?     2524
  Partials        ?       66

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


afterBuildTicks not working in 2.7.0

Seems like afterBuildTicks stopped working in 2.7.0
before (2.6.0)

after (2.7.0)

I used it like this:
{
  // ...
  scales: {
    // ...
    time: {
      unit: "hour",
      displayFormats: { hour: "MMM" }
    },
    afterBuildTicks: function(axis) {
      axis.ticks = _(data)
        .map("x")
        .map(function toTimestamp(dateString) {
          return _.toNumber(new Date(dateString));
        })
        .uniqBy(function(timestamp) {
          return moment(timestamp).startOf('month').format();
        })
        .value();
    }
  }
}

I also made a simple example to demonstrate it:
https://jsbin.com/titegozipu/edit?html,js,output
Try change the version of chart.js in the html

@asfktz Thank you for this detailed bug report and really sorry for the inconvenience. afterBuildTicks still work but (the supposed to be private) axis.ticks have been deprecated/removed internally because its format has changed (String to Object)  :\ Changing its value in afterBuildTicks doesn't have anymore effect.
I didn't realize that these callbacks was public, I thought it was used only internally or when sub-classing a scale class. 2.7.0 (not intentionally) breaks backward compatibility when scale.ticks is accessed from these callbacks but also there is no way to alter the ticks since it's assigned at the end.
I knew it was a sensible change, maybe we should have dropped the "major" concept instead?! Not sure what the best way to fix these cases now? @etimberg any thoughts?
@asfktz FWIW and until we figure out a fix, for the first axis (with days), I think you can use the new scale.ticks.source: 'data' option. For the "month" scale, it will not work because of duplicate entries. A solution would be to generalize the scale.labels option (which should be relatively easy), then you could use scale.ticks.source: 'labels'.

Hmmm this is hard. could we provide a property for scale.ticks that reads into the object version and gets the values.

Thanks for the quick response, @simonbrunel.

I didn't realize that these callbacks was public, I thought it was used only internally or when sub-classing a scale class

Oh, I see.
From the user perspective, it looked safe to use because I read about it in the documentation:
http://www.chartjs.org/docs/latest/axes/?h=afterbuildticks

@asfktz FWIW and until we figure out a fix, for the first axis (with days), I think you can use the new scale.ticks.source: 'data' option. For the "month" scale, it will not work because of duplicate entries. A solution would be to generalize the scale.labels option (which should be relatively easy), then you could use scale.ticks.source: 'labels'.

It's OK (:
I can just stay with 2.6 for now.
The new options look cool, btw (:
I liked afterBuildTicks because it gave me a fine control over the ticks of each Axis.
Having the ability to build the ticks however I like is very flexible.
But I don't mind to do it differently.
Thanks for both of you for such a great library 🙏
Asaf

What is the solution of this in 2.7.0. scale.ticks.source is labels is not working. Can you provide a working fiddle

@simonbrunel @etimberg this is the only issue remaining for 2.7.1. Any thoughts about what you want to do? The possible solutions sound like maybe they'd be better as part of 2.8.0?

I don't think the major concept is actually even being used. If I delete the line which sets major then all the tests still pass:
https://github.com/chartjs/Chart.js/blob/master/src/scales/scale.time.js#L399
The major variable is calculated at formatting time. The value calculated when the ticks were built is simply ignored:
https://github.com/chartjs/Chart.js/blob/master/src/scales/scale.time.js#L658
So we should be able to change the ticks back so that they're no longer objects

I'm not sure I would go this way (reverting ticks as simple values), the issue being the general scale architecture that makes really complicated implementation changes, for example:
    function buildTicks() {
        var count = this.options.count;
        this.ticks = ... // generate ticks
    }

vs
    function buildTicks(count) {
        return ... // generate ticks
    }

The second option is much better when it comes to modify internal structure, for example changing the tick format and that's what I tried to do in #4573. I don't think we will find an easy fix for 2.7.1, so let's postpone this ticket for later.


Slow to load editor - with or without file

Description of the problem or steps to reproduce
It takes 6 seconds to load the program, with or without any file.
Used to using nano which loads in less than a second on my server
It would be nice to have a replacement for nano, but most of the time when I edit on ssh, I am  doing multiple edit, save, exit, repeat. Is it normal to take this long for the editor to load? Is there any way to speed it up?
Specifications
Version: 2.0.6
Commit hash: 60846f5
Compiled on June 24, 2020
Commit hash:
OS: Ubuntu 20.04
Terminal: bash

Is your server a small machine? In my experience micro generally takes 50-60ms to start up. The most costly parts of the startup are syntax highlighting (and detection of the language) and Lua plugins, so you could try disabling these by setting the syntax option to false, and other plugins that you don't need to false (such as autoclose, literate, linter, diff, etc...).

try:
nano ~/.config/micro/settings.json

add or set :
{
     "clipboard": "terminal"
}

Ah that's a good point, this slowdown might be caused by micro trying to connect to the xclip server for clipboard integration. As mentioned above you can set clipboard to terminal, or internal to disable this.

I just installed 2.0.7. It starts instantly and gives the message
System clipboard not found, install xclip/xsel or change clipboard option
Your comments seem to be right on.

I faced with this error. maybe clipboard load in background should help? (i can make a pr)

Want to confirm that this xclip seems to be the issue on wsl2 with no xserver running.
It was taking 32 seconds to load, without any x server.
Without editing the config, I opened GWSL xserver, and with that running, micro starts instantly...


[sw/dif] Replace dif_result_t with status_t

#14052 adds INTO_STATUS to convert different error types to status_t. Since dif_result_t does not have the same layout as status_t, INTO_STATUS has to handle the dif_result_t to status_t conversion separately. This also introduces a dependency from lib:base to lib:dif, which we would like to avoid.
We should

[ ] Replace dif_result_t with status_t,
[ ] Remove __builtin_types_compatible_p from INTO_STATUS, and
[ ] Remove dif:base dependency from lib:base.

cc @cfrantz @arunthomas

Is this still relevant?

yes this is just a cleanup though.


[Enhancement?]: Add a .gitignore equivalent for haxelib

When you submit a lib in haxelib while using a folder, it seems that zips the whole thing without caring if there's some files that the owner doesn't want to put on the lib but on Github (like samples for something or unnecessary assets or folders.
My suggestion is to add an equivalent of gitignore, something like hxignore maybe?

Just for reference, this is npm's solution to this: https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html

Actually, I just realised this has been mentioned in #315, so we'll move this there.

Actually, I just realised this has been mentioned in #315, so we'll move this there.

Damn, 2016?????
Why wouldn't they implement an hxlibignore rn if it was an oldass request?

Well there wasn't much Haxelib development because the codebase wasn't very organised and no one wanted to touch it... but now there's been a PR to reorganise it a bit which should hopefully make adding features easier.


INTERNAL PROCESSING USER is incorrectly being displayed in the User Permission page

This bug seems to be present in Beta.45


lost current charge record

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
2024.03.22 12:50  - 15:49  charging
15:20  I update my teslamate docker from 1.28.3 to 1.28.4 , about 20~30 mins
in [Dashboards] -- [TeslaMate] -- Charges, I can't find this record .

in [Dashboards] -- [TeslaMate] -- States

Expected Behavior
fix the charge data
Steps To Reproduce

driving or charging
restart the teslamate
check the drives or charges dashboard

Relevant log output
teslamate-1  | 2024-03-22 07:47:57.666 [info] Migrations already up
teslamate-1  | 2024-03-22 07:48:00.638 [info] No tzdata release files found in custom data dir. Copying release file from tzdata priv dir.
teslamate-1  | 2024-03-22 07:48:00.722 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-03-22 07:48:00.722 [info] Version: 1.28.4
teslamate-1  | 2024-03-22 07:48:01.065 [info] POST https://auth.tesla.cn/oauth2/v3/token -> 200 (290.477 ms)
teslamate-1  | 2024-03-22 07:48:01.065 [info] Refreshed api tokens
teslamate-1  | 2024-03-22 07:48:01.077 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-03-22 07:48:01.091 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-03-22 07:48:01.092 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-03-22 07:48:01.417 [info] GET /settings
teslamate-1  | 2024-03-22 07:48:01.450 [info] Sent 200 in 32ms
teslamate-1  | 2024-03-22 07:48:01.843 [info] Starting logger for '贝尔的车'
teslamate-1  | 2024-03-22 07:48:01.863 [info] MQTT connection has been established
teslamate-1  | 2024-03-22 07:48:02.487 car_id=1 [info] Start / :online
teslamate-1  | 2024-03-22 07:48:02.526 car_id=1 [info] Connecting ...
teslamate-1  | 2024-03-22 07:48:03.613 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (1070.014 ms)
teslamate-1  | 2024-03-22 07:48:03.677 car_id=1 [info] Charging / SOC: 99% / 家
teslamate-1  | 2024-03-22 07:48:03.677 car_id=1 [info] Disconnecting ...
teslamate-1  | 2024-03-22 07:48:06.315 [info] tzdata release in place is from a file last modified Fri, 22 Oct 2021 02:20:47 GMT. Release file on server was last modified Thu, 01 Feb 2024 18:40:48 GMT.
teslamate-1  | 2024-03-22 07:48:07.186 [info] GET /
teslamate-1  | 2024-03-22 07:48:07.189 [info] Sent 200 in 3ms
teslamate-1  | 2024-03-22 07:48:07.957 [info] Tzdata has updated the release from 2021e to 2024a
teslamate-1  | 2024-03-22 07:49:11.606 car_id=1 [info] Derived efficiency factor: 138.0 Wh/km (7x confirmed)
teslamate-1  | 2024-03-22 07:49:11.606 car_id=1 [info] Charging / Complete / 0.00 kWh – 1 min
teslamate-1  | 2024-03-22 07:49:11.607 car_id=1 [info] Start / :online
teslamate-1  | 2024-03-22 07:49:11.624 car_id=1 [info] Connecting ...
teslamate-1  | 2024-03-22 07:50:07.028 [notice] TLS :client: In state :connection at tls_record_1_3.erl:352 generated CLIENT ALERT: Fatal - Bad Record MAC
teslamate-1  |  - :decryption_failed
teslamate-1  | 2024-03-22 07:50:31.152 [info] GET /
teslamate-1  | 2024-03-22 07:50:31.156 [info] Sent 200 in 3ms
teslamate-1  | 2024-03-22 07:52:13.685 car_id=1 [info] Suspending logging
teslamate-1  | 2024-03-22 07:56:33.787 [info] GET /
teslamate-1  | 2024-03-22 07:56:33.792 [info] Sent 200 in 4ms
teslamate-1  | 2024-03-22 07:59:27.816 [info] GET /settings
teslamate-1  | 2024-03-22 07:59:27.834 [info] Sent 200 in 18ms
teslamate-1  | 2024-03-22 08:08:27.245 [warning] MQTT connection has been dropped
teslamate-1  | 2024-03-22 08:08:27.245 [info] [Tortoise311] Connection went down. Reconnecting.
teslamate-1  | 2024-03-22 08:08:27.245 [warning] WebSocket disconnected. Reconnecting …

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.28.4

Hi bborn2,
if you take your teslamate 20-30 minutes offline, it could not record any data from the tesla api during this time. This is expected behavior.
If you have a unfinished drive or a unfinished charge, you can follow: https://docs.teslamate.org/docs/maintenance/manually_fixing_data

Yes, I tried this method before. But it returned an error
'-bash: !: event not found'.
Just tried it again, changing double quotes to single quotes, and it worked.
docker compose exec teslamate bin/teslamate  rpc 'TeslaMate.Repo.get!(TeslaMate.Log.ChargingProcess, 78) |> TeslaMate.Log.complete_charging_process()'

04:32:16.125 [info] Phase correction: 2 -> 3
04:32:16.134 [info] Derived efficiency factor: 138.0 Wh/km (7x confirmed)


Die more gracefully on empty only-whitespace docstring.

docstring_lines[0], was crashing, technically I am a little to harsh on the check but that's for teh good cause.

Looks good to me!
How are things in Berkeley? I'm off to London tomorrow for Mozfest over the weekend.


More information for creating a PTR Setup

When trying to setup a server I only had a VPS at a local hosting provider. The DNS was setup through cloudflare. Since its the first time I set up the reverse pointer I where to set it up or how to verify it. This change should help others in the same situation by hinting that it has to do with the server host (as opposed to domain host) and that you can use nslookup to verify that it works.

Thanks!


chore: Missing birthday cake for new products

What

added the missing birthday cake svg from the "assets/onboarding/ "

Screenshot

Fixes:

Closes: "Missing birthday cake for new products" link #5647

The illustration has an issue because the candles are white on white.

The illustration has an issue because the candles are white on white.

yes thats an issue with the svg itself...do you have an alternate svg or do you want me to tweak its colors a bit?

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

Project coverage is 6.87%. Comparing base (4d9c7fc) to head (33516d2).
Report is 340 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5651      +/-   ##
==========================================
- Coverage     9.54%   6.87%   -2.68%
==========================================
  Files          325     402      +77
  Lines        16411   21316    +4905
==========================================
- Hits          1567    1466     -101
- Misses       14844   19850    +5006

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

The illustration has an issue because the candles are white on white.

this works?

I think the dark background on a white dialog is even more distracting.
I'm no designer, maybe someone on the openfoodfacts Slack #design is interested in providing a altered version. Maybe one for light and one for dark background

A new layout is now used: https://github.com/openfoodfacts/smooth-app/pull/6073


Xcode7 integration?

Hi, I use cavejohnson in Jenkins. We've just moved to xcode7, but now we're getting this:
++ /usr/local/bin/cavejohnson uploadiTunesConnect --itunes-app-id BLAH --itunes-username BLAH --itunes-password BLAH --ipa-path APPNAME-4823-892cf23d-APPSTORE.ipa
Working in path /var/folders/4r/h012hsjj59qcxzgc87kkfmvh0000gp/T/tmppqkjjr62
Traceback (most recent call last):
  File "/usr/local/bin/cavejohnson", line 11, in <module>
    sys.exit(main_func())
  File "/usr/local/lib/python3.5/site-packages/cavejohnson/__init__.py", line 600, in main_func
    args.func(args)
  File "/usr/local/lib/python3.5/site-packages/cavejohnson/__init__.py", line 117, in uploadITMS
    upload_itunesconnect(args.itunes_app_id, args.itunes_username, args.itunes_password, args.ipa_path)
  File "/usr/local/lib/python3.5/site-packages/cavejohnson/__init__.py", line 175, in upload_itunesconnect
    "-m", "upload", "-apple_id", itunes_app_id, "-u", itunes_username, "-p", itunes_password, "-f", packagepath])
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 579, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 560, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1540, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/share/iTMSTransporter.woa/iTMSTransporter'
Build step 'Execute shell' marked build as failure
[ssh-agent] Stopped.

It looks like the path of iTMSTransporter changed to Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter.  It may be as simple as changing the path here, although I can't confirm.
With respect to the issue title, going forward, I'm using CJ1 on XC6 systems and I'm doing XC7 in CJ2, although CJ2 does not yet support iTunes uploading and so doesn't (yet) solve your problem.  You may want to file a feature request in that project, as I don't think there's one already.
That aside, if a plausible patch appeared and someone claimed it fixed XC7 issues, I would be happy to merge it here.

Thanks Drew. Well, two things. Based on the error I did try to get past it by changing the path, but then I got a java not found error, once I got past that, I got this one:
Error: Could not find or load main class com.apple.transporter.Application
So I'm at a loss. Hopefully that XC7-fix patch will do the trick.
As far as CJ2 goes, I tried to download it by going to https://cavejohnsonreleases.s3.amazonaws.com/files.html but I always get a blank page there.
Thanks!

So when I run /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter in Xcode 7.0.1, I get this output:
[2015-09-30 18:10:36 CDT] <main>  INFO: Transporter is skipping bundle update check: Already checked recently.
usage: iTMSTransporter [-help <arg> | -info | -m <arg> | -version]   [-o <arg>] [-v
       <arg>]  [-WONoPause <arg>] [-Xmx1024m]
iTMSTransporter : iTunes Store Transporter 1.8.6
 -help <arg>        Show this help.  If a mode value is specified, show help specific
                    to that mode.
 -info              The -info option should be used by itself and returns the
                    copyright notice and acknowledgements.
 -m <arg>           The -m option specifies the tool's mode.  The valid values are:
                    verify, upload, provider, diagnostic, lookupMetadata, status,
                    statusAll, queryTickets, generateSchema, transferTest,
                    downloadMetadataGuides, iTunesExtraQCDownload, iTunesLPQCDownload,
                    iTunesExtraTemplate, iTunesLPTemplate, listReports, requestReport
 -o <arg>           The -o option specifies the directory and filename you want to use
                    to log output information.  By default, Transporter logs output
                    information to standard out. If you specify a filename,
                    Transporter logs the output to the specified file, as well as to
                    standard out.
 -v <arg>           The -v option specifies the level of logging.  The five values
                    are: off, detailed, informational, critical, eXtreme.
 -version           The -version option should be used by itself and returns the
                    version of the tool.
 -WONoPause <arg>   The -WONoPause option is only valid on Windows and its value can
                    be 'true' or 'false'.  If an error occurs during script execution,
                    the process idles because the message 'Press any key...' is
                    displayed on the console and the system awaits a keypress. To
                    avoid this behavior, set this property to true
 -Xmx1024m          Specifies that you want to change the Java Virtual Machine's (JVM)
                    allocated memory by increasing the JVM heap size.  By default,
                    Transporter uses a 512MB heap size. You can use the -Xmx1024m
                    option to specify a 1-gigabyte (GB) heap size. Apple recommends,
                    if needed, increasing the heap size to 1024MB by specifying the
                    -Xmx1024 option and adjusting as needed.

Note that my java version is:
$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Do you see something different?

As far as CJ2 goes, I tried to download it by going to https://cavejohnsonreleases.s3.amazonaws.com/files.html but I always get a blank page there.

Do you have JS disabled?  I think that index page is created via JS.  You're welcome to open an issue in CJ2 if you can't load that page or if you can think of some better way to display the contents of an S3 bucket.

Thanks Drew.
Looking at the source for  https://cavejohnsonreleases.s3.amazonaws.com/files.html
, it’s complaining that https://rgrp.github.io/s3-bucket-listing/list.js
 has permanently moved, I wonder if that’s what causing the issue.
When I run iTMSTransporter, I get this:
$ /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.jingle.leghorn [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=com.sun.xml.bind.v2)
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.8.3)(version<=1.8.3)) [caused by: Unable to resolve 1.0: missing requirement [1.0] package; (package=com.sun.xml.bind.v2)]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.softwaresupport [6]: Unable to resolve 6.0: missing requirement [6.0] package; (&(package=com.apple.                                                                      jingle.leghorn.software)(version>=1.8.3)(version<=1.8.3)) [caused by: Unable to resolve 1.0: missing requirement [1.0] package; (package=com.sun.xml.bind.v2)]
An error occurred while starting bundles for the software update process.  Transporter will try to continue.  Unresolved constraint in bundle com.apple.transporter.updater [8]:    Unable to resolve 8.0: missing requirement [8.0] package; (&(package=com.apple.transporter.log)(version>=1.8.3)(version<=1.8.3)) [caused by: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=com.apple.itunes.epubtoolkit)(version>=1.8.3)(version  <=1.8.3)) [caused by: Unable to resolve 1.0: missing requirement [1.0] package; (package =com.sun.xml.bind.v2)]]
[2015-10-01 10:44:02 EDT]   INFO: Transporter is searching for updated software components.
[2015-10-01 10:44:04 EDT]   INFO: Transporter has detected that new software components exist; updating.
[2015-10-01 10:44:04 EDT]  DEBUG: Analyzing remote bundle resource org.apache.http components.httpclient...
[2015-10-01 10:44:07 EDT]  DEBUG:   ... updated bundle successfully retrieved.
[2015-10-01 10:44:07 EDT]  DEBUG: Analyzing remote bundle resource org.apache.httpcomponents.httpcore...
[2015-10-01 10:44:09 EDT]  DEBUG:   ... updated bundle successfully retrieved.
[2015-10-01 10:44:09 EDT]  DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.beanutils...
[2015-10-01 10:44:10 EDT]  DEBUG:   ... updated bundle successfully retrieved.
But now I’m getting the same output as you. I’ll try cj again. Thank you!
Raf Cabezas | Mobile App Development
O:<PHONE_NUMBER>

On Sep 30, 2015, at 7:13 PM, Drew Crawford<EMAIL_ADDRESS>wrote:
So when I run /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter
in Xcode 7.0.1, I get this output:
[2015-09-30 18:10:36 CDT]   INFO: Transporter is skipping bundle update check: Already checked recently.
usage: iTMSTransporter [-help  | -info | -m  | -version]   [-o ] [-v
]  [-WONoPause ] [-Xmx1024m]
iTMSTransporter : iTunes Store Transporter 1.8.6
-help         Show this help.  If a mode value is specified, show help specific
to that mode.
-info              The -info option should be used by itself and returns the
copyright notice and acknowledgements.
-m            The -m option specifies the tool's mode.  The valid values are:
verify, upload, provider, diagnostic, lookupMetadata, status,
statusAll, queryTickets, generateSchema, transferTest,
downloadMetadataGuides, iTunesExtraQCDownload, iTunesLPQCDownload,
iTunesExtraTemplate, iTunesLPTemplate, listReports, requestReport
-o            The -o option specifies the directory and filename you want to use
to log output information.  By default, Transporter logs output
information to standard out. If you specify a filename,
Transporter logs the output to the specified file, as well as to
standard out.
-v            The -v option specifies the level of logging.  The five values
are: off, detailed, informational, critical, eXtreme.
-version           The -version option should be used by itself and returns the
version of the tool.
-WONoPause    The -WONoPause option is only valid on Windows and its value can
be 'true' or 'false'.  If an error occurs during script execution,
the process idles because the message 'Press any key...' is
displayed on the console and the system awaits a keypress. To
avoid this behavior, set this property to true
-Xmx1024m          Specifies that you want to change the Java Virtual Machine's (JVM)
allocated memory by increasing the JVM heap size.  By default,
Transporter uses a 512MB heap size. You can use the -Xmx1024m
option to specify a 1-gigabyte (GB) heap size. Apple recommends,
if needed, increasing the heap size to 1024MB by specifying the
-Xmx1024 option and adjusting as needed.
Note that my java version is:
$ java -version
java version "1.7.0_51"Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Do you see something different?

As far as CJ2 goes, I tried to download it by going to https://cavejohnsonreleases.s3.amazonaws.com/files.html
but I always get a blank page there.
Do you have JS disabled? I think that index page is created via JS. You're welcome to open an issue in CJ2 if you can't load that page or if you can think of some better way to display the contents of an S3 bucket.

—
Reply to this email directly or view it on GitHub
.

Looking at the source for  https://cavejohnsonreleases.s3.amazonaws.com/files.html
, it’s complaining that https://rgrp.github.io/s3-bucket-listing/list.js
has permanently moved, I wonder if that’s what causing the issue.

Thanks for that report.  Refresh and let me know if fixed?

Yes, it’s fixed. Thank you Drew.
Raf Cabezas | Mobile App Development
O:<PHONE_NUMBER>

On Oct 1, 2015, at 7:08 PM, Drew Crawford<EMAIL_ADDRESS>wrote:

Looking at the source for https://cavejohnsonreleases.s3.amazonaws.com/files.html
, it’s complaining that https://rgrp.github.io/s3-bucket-listing/list.js
has permanently moved, I wonder if that’s what causing the issue.
Thanks for that report. Refresh and let me know if fixed?

—
Reply to this email directly or view it on GitHub
.

Thanks, reported it upstream as well.  Closing since it doesn't seem like there's any issue outstanding anymore.


New version: JetBrains.IntelliJIDEA.Community.EAP version 221.5080.9

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 468
Microsoft Reviewers: Open in CodeFlow

/azp run


Failure from mdm-core when trying to adding a Data Specification to a Project Change Request

Description
Cannot add a Data Specification to a Project Change Request
Steps to reproduce
From "My Data Specification" I want to add a Finalised data to a "Project Change Request".
If the request already exists:  => it's all working as expected
If the request is created at the moment:

I can follow all the steps until the Request Dialog
I can fill all the data required
When I'm going to Save, the user portal crash with API communication problem and this further message:

Note: this steps have been done with a  new data specifications - just created.
Further message I could get from mdm-core console while I was re-attempt the steps described above:
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: update openidconnect.discovery_document set version=?, date_created=?, last_updated=?, path=?, token_endpoint=?, end_session_endpoint=?, userinfo_endpoint=?, created_by=?, authorization_endpoint=?, jwks_uri=?, issuer=? where id=? and version=?
and
Caused by: uk.ac.ox.softeng.maurodatamapper.api.exception.ApiInternalException: Cannot store an unlocked GroupBasedUserSecurityPolicyManager

This error was already fixed within  MauroDataMapper/mdm-explorer/issues/456.
It turned out the mdm-core wasn't using the latests mdm-plugin-authentication-opnid-connect plugin.
A deep clean and re-compile of mdm-core fixed everything


How to append text with formatting?

How to append text with formatting from custom dialpad?

I found. thanks.


Clearing values?

https://answers.sap.com/questions/13197227/how-to-clearreset-the-assigned-to-field-value-in-s.html

@marikaner, I asked to remove the tag and closing this.


Add log statements to IndexedDbProvider open

We see that there are timeouts and failures happen when clients call indexeddbprovider.open. We'll add logging at different points in db open method to understand where exactly the time is spent.

@M1Les Can you review this now? Added LogWriter class which will take in the context and generate a message that can be written to logs. Added tests as well.


[6.0][region-isolation] Change capturing a value into an async let that is not further sent into an actor isolated function to use a new style error.

Just beginning the testing.

@swift-ci test

@swift-ci test

@swift-ci test


drupal-core-strict

instead of drupal/core

took out "drupal/core": "^8",
inserted"webflo/drupal-core-strict": "^8" in your composer.json, remove composer.lock and vendor and composer install or composer update


Missing ClickOnce deployed applications

ClickOnce deployed applications are not listed.

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

ID: 69202cf2-6553-c950-dc75-750a50226571
Version Independent ID: d80652ad-4aae-00c9-fdd8-7294e9453cef
Content: Find the Application User Model ID of an installed app
Content Source: windows/configuration/find-the-application-user-model-id-of-an-installed-app.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@officedocsbot assign @jvsam

Hello @Lechus are you trying to find the AUMID of ClickOnce applications? Kindly refer to this old issue raised in another repository, it may be of help. And this may be the correct Topic to request for that information since the process is different for ClickOne. How about here? https://docs.microsoft.com/en-us/visualstudio/deployment/clickonce-security-and-deployment
Another reference: https://docs.microsoft.com/en-us/windows/win32/shell/appids
Now if my understand is incorrect, kindly provide more information so we will know how to assist you better. Thank you.

@jvsam found the solution, added as a message on the referred old issue link https://github.com/MicrosoftDocs/windows-uwp/issues/361. So for the click once apps AppIds are in diff registry place. And that is missing.

@Lechus : First of all, thanks for posting in both places. Secondly, to avoid confusing myself, are you recommending a change to the UWP page or to the IT-Pro page (as linked above)?
If the IT-Pro page is the one you recommend updating, may I ask you to tell me in more detail what the necessary changes are?

That's great to hear @Lechus. Thanks for sharing that information. So, to follow-up on @illfated's question, is there anything in this doc that needs to be updated? Information that is relevant like the deployment framework scenario here, perhaps? If it's not applicable, then I think we can close this issue and consider it as resolved. It might also worth noting that you can share the information in the Technet forums and the Tech Community with other users and experts. Thank you.

Hi again @Lechus, we didn’t hear back from you so I will close this issue, however, feel free to re-open if you have suggestions or ideas to improve the quality of this documentation.
Thanks for being part of the Microsoft Docs community!

@officedocsbot close


ts-web/core: ADR 0008 implementation for ts-web

Rework of #65 to use SLIP-0010 instead of BIP32-ED25519
Summary
Implements ADR 0008: Standard Account Key Generation in ts-web/core, standardizing the key generation process using BIP-0039 to generate the seed, and SLIP-0010 for hierarchical deterministic key generation.
The value proposition mentioned in ADR 0008 is as follows :

Adopting these standards will allow the Oasis ecosystem to:

Make key derivation the same across different applications (i.e. wallets).
Allow users to hold keys in hardware wallets.
Allow users to hold keys in cold storage more reliably (i.e. using the
familiar 24 word mnemonics).
Define how users can generate multiple keys from a single seed (i.e.
the 24 or 12 word mnemonic).

Usage
Mnemonic and derivation
We add a new class HDKey inside ts-web/core that allows hierarchical deterministic keys to be generated from BIP-0039 mnemonics and derived using SLIP-0010, such as :
const HDKey = oasis.hdkey.HDKey;

// From existing mnemonic
const root = await HDKey.fromMnemonic('practice acoustic taxi');
const key = root.derivePath("m/44'/474'/0''");

// Generating a secure mnemonic
const mnemonic = await HDKey.generateMnemonic();
const root = await HDKey.fromMnemonic(mnemonic);
const key = root.derivePath("m/44'/474'/0'");

Signing with HDKey
const root = HDKey.fromMnemonic('practice acoustic taxi');
const key = root.derivePath("m/44'/474'/0'");

const tw = oasis.staking.transferWrapper();

// ... Build transaction ...

const signer = new NaclSigner(key.keyPair, 'this key is not important');
await tw.sign(new oasis.signature.BlindContextSigner(signer), chainContext);

Other changes to ts-web
Jest support
This pull request adds jest as a framework for unit and integration tests, since the only existing tool was cypress that is more suited for e2e tests. While we should keep cypress for when testing browser integration, I propose this becomes standard for unit & integration tests and added a sane and simple jest.config.js in ts-web that can then be extended or reused by the underlying packages.
This PR also adds a github action job to run the jest tests for core
Unified webpack configurations
The webpack configuration files from the various playgrounds (core, rt and signer-ledger) were changed to use a main one in ts-web .
Webpack 5 does not automatically include polyfills anymore and they must now be explicitly listed - so we polyfill stream (needed for crypto/cipher-base part of bip39) for the browser.

@Esya, can you rebase and take a look at @pro-wh's last 2 comments?


print error and exit if file can't be opened during import

E.g.
$ ls
vackup
$ ./vackup import mosquitto_config.tar.gz mosquitto_config
Error: Could not find or open tar file mosquitto_config.tar.gz

Accepting this PR as a main commit since it's a merge conflict.


az webapp create failure

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az webapp create
Errors:
No module named 'decorator'
Traceback (most recent call last):
python3/dist-packages/fabric/connection.py, ln 5, in <module>
    from invoke.vendor.six import StringIO
ModuleNotFoundError: No module named 'invoke.vendor.six'

...

python3/dist-packages/fabric/connection.py, ln 10, in <module>
    from decorator import decorator
ModuleNotFoundError: No module named 'decorator'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az webapp create --resource-group {} --plan {} --name {} --runtime {} --deployment-local-git

Expected Behavior
Environment Summary
Linux-5.15.0-46-generic-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

route to CXP team

@mantissystems Can you please upgrade to the latest version of azure cli 2.39.0 and retry


Scheduling patient

Added «Schedule» tab to Patient Overview page. Calendar with appointments is shown.
Editing of appointments is disabled for patient

https://github.com/beda-software/fhir-emr/issues/177


Possibility to change the home page

Currently the home page is "about:lagrange", and I don't see any way to change that. It would be nice to have an option to change that.

Check out the Help document:

1.4.3 Special tags

Set a "homepage" tag on a bookmark to make it one of the pages that will be opened when pressing the 🏠 button. If multiple bookmarks are tagged as homepages, a random one is selected.

You can also right-click on a bookmark in the Bookmarks list to do this.


Request for confirming technical support hours for Other Plans

[Enter feedback here]
“Technical Support:” section mentions as follows:
Other Plans:
Telephone technical support is available from 9:00-17:30 on weekdays. For high severity issues, technical support is available 24 hours a day, 7 days a week.
Is it correct?
I would like to make it clear that the description “Telephone technical support is available from 9:00-17:30 on weekdays.” is still available for other plans such as  Microsoft 365 Business Basic, Standard, Premium and Microsoft 365 Apps for business.
Telephone technical support used to be available from 9:00-17:30 on weekdays for small mid plans, which was available before Microsoft 365 Business plan were released.
This article was described in Dec 09 2021 and I would like to confirm if the support hours for Other Plans have been still correct.

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

ID: 6e3618e4-be59-8a6f-92c8-cd915c63313d
Version Independent ID: 9caeb339-7a2b-a2ce-4850-61896ea68825
Content: Support information for Japan - Microsoft 365 admin
Content Source: microsoft-365/admin/support/japan.md
Service: o365-administration
GitHub Login: @cmcatee-MSFT
Microsoft Alias: cmcatee

@sasaito Thank you for your feedback. You are correct. Technical support is available for all other plans (Excluding M365/O365 Enterprise) between 9-17:30 on weekdays. This includes M365 business basic, premium, and standard.
For O365 and M365 enterprise plans technical support is available 24/7
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @sasaito Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Flow asymmetry.

Look at the following example please, this is kinda pseudocode but hope enough to show the clue of the issue.
const phases = {
  phase_1: {
    endPhaseIf: G => {
      console.log("e_1");
    },
    onMove: G => {
      console.log("m_2");
      return G;
    },
    next: "phase_2"
  },
  phase_2: {
    endPhaseIf: G => {
      console.log("e_2");
    },
    onMove: G => {
      console.log("m_2");
      return G;
    },
    next: "phase_1"
  }
};

const game = new Game({
  ...setup,
  flow: {
    phases,
    startingPhase: "phase_1"
  }
});

When you run game with such setup what you will see in console will be in order :
m_1, e_1, e_2, m_2, e_2, e_1 ....
What i mean is that at the beginning of the game, endPhaseIf for starting phase is not called, but each subsequent phase starts with endPhaseIf. Its not end of the world, but imo is not elegant.

Agreed, it's not needed because the game could just as well start with another phase, but it should work the same. This hints at duplicated code somewhere, or maybe just an omission.

I'm actually having trouble parsing this.
@pociej I'm assuming that m_2 in phase_1 is actually m_1. Are both endPhaseIf functions meant to return true always?

What endPhaseIf returns does not matter

It does because your phase will (or will not) end depending on the return value of this function. I understand that you may have omitted details from your pseudocode, but I'm trying to understand if you intended for it to always return true (i.e. how are these phases actually ending?).  Also, I'm assuming that your console output is after the result of a single move being played in Phase 1?

@nicolodavis Lets assume then, that endGameIf returns true when there was at least one more performed in given phase to give onMove chance to fire.

Oh I see.
So your intended sequence of events is:

Play a move in Phase 1
Phase 1 ends
Play a move in Phase 2
Phase 2 ends

Correct?

Something like this or similar. Its not like that i cant do something. I just think that asymmetry is bad. Now endPhaseIf is called on start of each phase except starting which is a bit strange.

This should be fixed in v0.33.  Feel free to re-open if you still have problems with this.


Permission error

Bug
In android, image picker asks permission even though it was granted before. And after granted, image picker does not show anything with console error " Permissions weren't granted". Tried in android 10 emulator.
Environment info

React native info output:
 // paste it here

Library version: x.x.x
Steps To Reproduce

Ask permission before running image picker
Run image picker.
It asks permission again, and even allowed, it errors out that "no permission granted"
...

Describe what you expected to happen:

Do not ask permission, if it is already granted

Reproducible sample code

@kumold
Checkout your AndroidManifest.xml and see if it has these lines of code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

ISSUE ON ANDROID 10 DEVICE
exact response: error: "/storage/emulated/0/DCIM/Camera/IMG_849.jpg: open failed: EACCES (Permission denied)"
I've permission keys in Manifest file
<uses-permission android:name="android.permission.CAMERA" />     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Adding the android:requestLegacyExternalStorage="true" works, I took a wild guess and put it in the  part of the AndroidManifest.xml file. It works just fine. The Node.js terminal gives me a lot of text, but it seems to be working.

I tried adding the requestLegacyExternalStorage thing in every way i can think of, but i didn't work.

<uses-permission android:name="android:requestLegacyExternalStorage="true""/>  doesn't build
<uses-permission android:name="android:requestLegacyExternalStorage='true'"/>  doesn't work
<uses-permission android:name="android:requestLegacyExternalStorage"/>  doesn't work
<uses-permission android:name="android:requestLegacyExternalStorage=true"/> doesn't work

Can anyone help me figure it out?

I tried adding the requestLegacyExternalStorage thing in every way i can think of, but i didn't work.

<uses-permission android:name="android:requestLegacyExternalStorage="true""/>  doesn't build
<uses-permission android:name="android:requestLegacyExternalStorage='true'"/>  doesn't work
<uses-permission android:name="android:requestLegacyExternalStorage"/>  doesn't work
<uses-permission android:name="android:requestLegacyExternalStorage=true"/> doesn't work

Can anyone help me figure it out?

Add it to <application> tag

check out https://github.com/react-native-community/react-native-permissions and @deepankarsandy comment

Add these both permission of read and write, to solve this issue
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Add this below line in Application tag
android:requestLegacyExternalStorage="true"

Somehow I did everything described above (added the android:requestLegacyExternalStorage="true"), and added all of the required permissions, but my app still can't access my images on my device. Are there any other person experiencing the same thing? The picture of my AndroidManifest.xml file is attached.

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Added  android:requestLegacyExternalStorage="true" to the application tag, still facing same issue. Please help me if anyone knows hot to fix

still the same error: {"errorCode": "permission"}
manifest:
<uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    <!-- Include this only if you are planning to use the microphone for video recording -->
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:theme="@style/AppTheme"
      android:requestLegacyExternalStorage="true">

package.json:
    "react": "16.13.1",
    "react-native": "0.63.3",
    "react-native-image-picker": "^3.0.0",

the error occures when I am calling this function:
launchCamera(options, (e) => { console.log(e)

any solution?

What options are you using?

@ravirajn22
these are the options:
let options = {
                includeBase64: true,
                quality: 0.5,
                videoQuality: 'high',
                mediaType: 'photo',
                saveToPhotos: true
            };

From the docs

Image/video captured via camera will be stored in temporary folder so will be deleted any time, so don't expect it to persist. Use saveToPhotos: true (default is false) to save the file in the public photos. saveToPhotos requires WRITE_EXTERNAL_STORAGE permission on Android 28 and below (You have to obtain the permission, the library does not).

So you have to obtain WRITE_EXTERNAL_STORAGE using built in react-native permissions or some third party library

@ravirajn22 Thank you, I got it.

Somehow I did everything described above (added the android:requestLegacyExternalStorage="true"), and added all of the required permissions, but my app still can't access my images on my device. Are there any other person experiencing the same thing? The picture of my AndroidManifest.xml file is attached.

if you are not using real device then try on real device. And clear cache before running. if still face problem send me the code and android version which you are using.

我以某种方式完成了上述所有操作（添加了android：requestLegacyExternalStorage =“ true”），并添加了所有必需的权限，但是我的应用仍然无法访问设备上的图片。还有其他人遇到过同样的事情吗？随附了我的AndroidManifest.xml文件的图片。

如果您使用的不是真实设备，请尝试使用真实设备。并在运行前清除缓存。如果仍然遇到问题，请向我发送您正在使用的代码和Android版本。

+1

This should be open. As we know Android 11 is getting a new permission with a different way to access the files. Is there any update for this? https://support.google.com/googleplay/android-developer/answer/10467955

Any update about new permission for Android 11?

Nothing new ? Discussion also open here : https://github.com/react-native-image-picker/react-native-image-picker/discussions/1672

Version 2.x.x is not longer supported, please upgrade to 3.x.x. Version 3.x.x no longer requires any permission as it is on android. Read the docs carefully.

Version 2.x.x is not longer supported, please upgrade to 3.x.x. Version 3.x.x no longer requires any permission as it is on android. Read the docs carefully.

Alright, even if it's just moving the problem somewhere else, if I want to use image-picker correctly, I'll still have to use requestLegacyExternalStorage...

@MayoudP no

Is there any way to solve this problem on an expo app, because the android manifest file isn't available in expo environment

hello,
I am also facing the same problem.
When i add camera permission in AndroidManifest file  i get the following error

This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same.

i have added the following permissions
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA"/>

and i have also tried adding
android:requestLegacyExternalStorage="true"
inside
when i remove
<uses-permission android:name="android.permission.CAMERA"/>
i get
{" errorCode" : "permission"}
i want to take the picture and save it on the public storage on my device. so i have added
saveToPhotos:true,
in the options. but when i remove this 'saveToPhoto:true' the camera works but according to the documentation that image is stored in the temporary storage and will be removed anytime.
do anyone have the solution to the this problem ?
my version is "react-native-image-picker": "^4.3.0",
Thankyou.

You could try following:
<!-- AndroidManifest.xml -->

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />

// JavaScrip

 if (isAndroid) {
     const isGranted = await PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.CAMERA);

     if (isGranted) launchCamera(opts, handler);
     else {
         const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.CAMERA);

          if (granted === PermissionsAndroid.RESULTS.GRANTED) launchCamera(opts, handler);
          else openAlert();
     }
} else {
  // iOS
  launchCamera(opts, handler);
}

It works, but yesterday i have got some bugs from production that some devices (Android 10) does not give access to photos. I have to investigate it further.


Refactor darray (and bugfixes)

This will fix design issues as well as a few reported bugs that need attention.
Some design highlights:

Will be implemented alongside darray, and darray will be marked as deprecated. This will allow a phased transition from one to the other.
Will be covered by tests in the testing framework.
Any functions that modify the array (push, pop, insert, etc.) should return a pointer to it as well to allow for function chaining.
Remove the concept of trying to macro the type and instead pass sizeof for the stride like all the other containers.
Should be a typesafe struct that contains data, stride, length, etc. instead of trying to hide it. This also eases testability.
Make a new macro to convert from an rvalue to a void* for use in push/insert when using rvalues instead of always doing it (e.g. push).

Bugs to be resolved:

_darray_pop_at, line 74, error string has %index instead of %i.
No similar check for _darray_pop.
_darray_remove_at, last argument to kcopy_memory should be 1 less (stride * (length - index - 1)).
_darray_insert_at, the last element test should be removed and always done. Should insert new value at index and push last element out.

Related: #17


Doctests for BinaryArray and LargeBinaryArray.

Which issue does this PR close?
Closes #301.
What changes are included in this PR?
Doctests for BinaryArray and LargeBinaryArray
Are there any user-facing changes?
No.
// @alamb

Codecov Report

Merging #625 (e17ff0d) into master (87d2840) will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #625      +/-   ##
==========================================
+ Coverage   82.41%   82.48%   +0.07%
==========================================
  Files         167      167
  Lines       46232    46452     +220
==========================================
+ Hits        38100    38315     +215
- Misses       8132     8137       +5

Impacted Files
Coverage Δ

arrow/src/array/array_binary.rs
92.23% <ø> (ø)

parquet/src/arrow/arrow_array_reader.rs
77.65% <0.00%> (-0.47%)
:arrow_down:

arrow/src/ipc/writer.rs
86.22% <0.00%> (-0.46%)
:arrow_down:

arrow/src/buffer/ops.rs
96.77% <0.00%> (-0.20%)
:arrow_down:

arrow/src/ipc/reader.rs
84.21% <0.00%> (-0.10%)
:arrow_down:

arrow/src/compute/util.rs
97.80% <0.00%> (-0.05%)
:arrow_down:

arrow/src/array/ord.rs
63.33% <0.00%> (ø)

arrow-flight/src/utils.rs
0.00% <0.00%> (ø)

arrow/src/array/array_union.rs
89.26% <0.00%> (ø)

arrow/src/compute/kernels/cast.rs
94.53% <0.00%> (ø)

... and 7 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 87d2840...e17ff0d. Read the comment docs.


Use docgen in the browser

we, at Remix, wanted to use solidity-docgen, but it isn't working in the browser. Do you have any plan to be compatible with a non-node context?
We tweaked some part of the library to make it compatible with the browser and will pushed it to our code base (here's the PR: https://github.com/ethereum/remix-project/pull/3267). We can anytime ofc make use of the official lib as soon as it works in the browser.
Also if updating solidity-docgen is too complex, perhaps you would be interested having another repo like solidity-docgen-light that would work in the browser and maybe our PR could help to set the ground for this repo.
Thanks, let us know what you think.
cc @bunsenstraat @joeizang

Can you list what is currently incompatible with the browser context?

Hi @frangio,
like @yann300 mentioned, fs is a pain point. Another is the requirement of Hardhat, that also makes it tough for the browser.
Basically, when we see __dirname(), it just spells pain. Also we noticed your templates use path resolve and readdir. More pain.
Not sure if you guys could create a maybe lighter version of the library that targets the browser and eschews fs or anything that isn't possible for the browser. We know that this is a big ask but would be really appreciative of any kind of effort towards making the library more browser friendly.
I hope to hear from you so we can further this discussion.
God bless

Hardhat is not required, see readme. It will still try to use the file system though. I'm interested in fixing this but can't promise any timelines.


fix: Adds conditions to avoid equipping two-handed item when all slots are occupied

Closes https://github.com/MUnique/OpenMU/issues/392
This PR goes one step further after https://github.com/MUnique/OpenMU/pull/393 and solves the case for one-handed items (such as shields and swords) being able to be equipped in the second slot.
This doesn't change the already working behavior for elves (bolts and arrows)

Thank you and sorry that it took so long 😅


define window position when switching between 1 and n monitors

Description of the new feature / enhancement
I'd like to be able to define the location of named windows and have then 'snap' to those locations based on the number of available monitors changing.
In my specific example ... if I use RDP to connect to a Windows dev machine from my laptop with an external monitor I have RDP use both screens and have a preference for where Visual Studio and MS SQL Server Manager get positioned (on the external monitor), but the browser, email, teams etc stay on monitor #1 (the laptop screen).
If I connect to the machine without my external monitor being available (or from my iPad) then windows get collected on the single available screen, so when I go back to the multi-mon connection I have to rearrange things.
This could also work for simple dock/undock scenarios making an external monitor available.
Essentially it would be setting snap locations for specific windows that react to SystemEvents_DisplaySettingsChanged events to make the change happen
Scenario when this would be used?
would be used docking/undocking a laptop or connecting to a remote windows (so needs to support <Win11) with differing number of monitors available
Supporting information
No response

/dup#14965