Unable to import. gnucash  file

Steps to reproduce the behaviour

Open gnucass
Tap on 3 lines to expand menu
Tap on open and choose  .gnucash file generated by desktop gnucash application

Expected behaviour
GnuCash accounts on pc is successfully imported
Actual behaviour
A message popup with message
"An error occurred while importing gnucash accoimts".
No further information is show regarding the nature of error.
Software specifications

GnuCash Android version: 2.5.1
System Android version: 14
Device type: Motorola edge 40

Suggested Resolution
I don't have enough knowledge, but could it be due to some kind of lock on file by desktop gnucash?? Sometimes desktop application shows the file has not been properly closed by previous instance or something and suggest to open as read only. You can still force to open it and continue to use without any problems.

I am also facing similar problem. When I try to open the .gnucash file created with Gnucash for desktop, Gnucash Pocket just stays in the importing popup. It never completes. When I tap anywhere on the screen the popup just disappears, without any error message.

Gnucash Android version: 2.5.1
Android version: 13 (Go edition)
Device type: Redmi A2
Gnucash Desktop version: 4.13 (Debian 12)

I just found that, the gnucash file format I had for the desktop was gzipped XML file. I switched to SQLite3 backend and this file fails with the message "An error occurred while opening the GnuCash accounts", as mentioned in this issue.

did you try to use not gzipped XML file?

@Kaligula0 I'm not using a gzipped version, just a plain old .gnucash file.
Is there a way to debug this further through adb or something? I'm ready to dig around figure out what is causing this, but I have no experience with android apps.
Currently only information on failure to read is just a pop up saying "An error occured while opening the GnuCash accounts", which is not much.

Just an update, I have set up android studio and is able to build the app and run it. How to proceed further?

So I managed to get the logs, Turns out the problem is probably caused by the custom commodities that I made. Not sure what is the cause though. I am attaching the log file.
log.txt

Thank you for providing the log.
The following errors remind me of #156:
D  Start import
I  Creating database tables
I  Bulk adding 224 Commodity records to the database
E  Commodity not found in the database: ASIANPAINT
E  Commodity not found in the database: HDFC_MIDC_OPPO_UP4UI9
E  Commodity not found in the database: ICIC_PRU_TECH_1027WGP
E  Commodity not found in the database: NIPP_INDI_LARG_COGPO7
E  Commodity not found in the database: NIPP_INDI_SMAL_1AOBL3E
E  Commodity not found in the database: PGIM_INDI_ELSS_156PSD9
E  Commodity not found in the database: template
E  Commodity not found in the database: QUAN_ELSS_TAX_KBGFAS

And the following exception comes from here:
https://github.com/GnuCash-Pocket/gnucash-android/blob/d3af73d6460c728746c42ee08ef3bc709b5a264d/app/src/main/kotlin/org/gnucash/android/model/Money.kt#L320-L324
Error importing: content://com.android.providers.downloads.documents/document/3881
org.gnucash.android.model.Money$CurrencyMismatchException: Cannot perform operation on Money instances with different currencies
	at org.gnucash.android.model.Money.minus(Money.kt:324)
	at org.gnucash.android.model.Transaction.getImbalance(Transaction.kt:239)
	at org.gnucash.android.model.Transaction.createAutoBalanceSplit(Transaction.kt:130)
	at org.gnucash.android.importer.GncXmlHandler.endElement(GncXmlHandler.java:680)
	at org.apache.harmony.xml.ExpatParser.endElement(ExpatParser.java:167)
	at org.apache.harmony.xml.ExpatParser.appendBytes(Native Method)
	at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:526)
	at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:487)
	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:324)
	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:287)
	at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:70)
	at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:84)
	at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:44)
	at android.os.AsyncTask$3.call(AsyncTask.java:394)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

@MadFisa can you give minimum steps to reproduce the problem from scratch, or even better provide an automated unit or instrumentation-test?
also @pnemonic78 could you look into this?

Can you attach the problematic file?
On Wed, 3 Jul 2024, 22:58 Daniel Brown, @.***> wrote:

Thank you for providing the log.
The following errors remind me of #156
https://github.com/GnuCash-Pocket/gnucash-android/pull/156:
D  Start import
I  Creating database tables
I  Bulk adding 224 Commodity records to the database
E  Commodity not found in the database: ASIANPAINT
E  Commodity not found in the database: HDFC_MIDC_OPPO_UP4UI9
E  Commodity not found in the database: ICIC_PRU_TECH_1027WGP
E  Commodity not found in the database: NIPP_INDI_LARG_COGPO7
E  Commodity not found in the database: NIPP_INDI_SMAL_1AOBL3E
E  Commodity not found in the database: PGIM_INDI_ELSS_156PSD9
E  Commodity not found in the database: template
E  Commodity not found in the database: QUAN_ELSS_TAX_KBGFAS
And the following exception comes from here:
https://github.com/GnuCash-Pocket/gnucash-android/blob/d3af73d6460c728746c42ee08ef3bc709b5a264d/app/src/main/kotlin/org/gnucash/android/model/Money.kt#L320-L324
Error importing: content://com.android.providers.downloads.documents/document/3881
org.gnucash.android.model.Money$CurrencyMismatchException: Cannot perform operation on Money instances with different currencies
at org.gnucash.android.model.Money.minus(Money.kt:324)
at org.gnucash.android.model.Transaction.getImbalance(Transaction.kt:239)
at org.gnucash.android.model.Transaction.createAutoBalanceSplit(Transaction.kt:130)
at org.gnucash.android.importer.GncXmlHandler.endElement(GncXmlHandler.java:680)
at org.apache.harmony.xml.ExpatParser.endElement(ExpatParser.java:167)
at org.apache.harmony.xml.ExpatParser.appendBytes(Native Method)
at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:526)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:487)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:324)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:287)
at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:70)
at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:84)
at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:44)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
@MadFisa https://github.com/MadFisa can you give minimum steps to
reproduce the problem from scratch, or even better provide an automated
unit or instrumentation-test?
also @pnemonic78 https://github.com/pnemonic78 could you look into this?
—
Reply to this email directly, view it on GitHub
https://github.com/GnuCash-Pocket/gnucash-android/issues/158#issuecomment-2207119648,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3GXCXYGT3ES3T7H6CPQNDZKRJWPAVCNFSM6AAAAABJVU7UHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBXGEYTSNRUHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi,
@pnemonic78 @djbrown  sorry for the late reply. I'm not a developer by trade, so I don't know how to setup automated tests.
I'm happy to share the file, I have uploaded the file in the following link.
https://drive.google.com/file/d/11iNqXt07zR0r_N7Fk8774r9D1dR5cgLb/view?usp=sharing
Let me know when you try to access the file. I will have to accept the request.
My laptop is fried, so I'm unable to reproduce the situation for now.
But broadly, it will involve

Adding entries into security editor (say for a mutual fund or stock) with "google web, US stocks",
fetch the  prices in price database using "Get Quotes" button.
Then create an account with the commodity as aforementioned mutual fund or stock.
Create a transaction in the account.

I fail to see how the gnucash file was created/edited with the commodities.

examples of problematic ocmmodities in the gnucash file:
<gnc:commodity version="2.0.0">
  <cmdty:space>Indian</cmdty:space>
  <cmdty:id>ASIANPAINT</cmdty:id>
  <cmdty:name>ASIANPAINT</cmdty:name>
  <cmdty:xcode>INE021A01026</cmdty:xcode>
  <cmdty:fraction>10000</cmdty:fraction>
  <cmdty:get_quotes/>
  <cmdty:quote_source>nseindia</cmdty:quote_source>
  <cmdty:quote_tz/>
  <cmdty:slots>
    <slot>
      <slot:key>user_symbol</slot:key>
      <slot:value type="string">ASIANPAINT</slot:value>
    </slot>
  </cmdty:slots>
</gnc:commodity>
<gnc:commodity version="2.0.0">
  <cmdty:space>MF</cmdty:space>
  <cmdty:id>HDFC_MIDC_OPPO_UP4UI9</cmdty:id>
  <cmdty:name>HDFC Mid-Cap Opportunities Fund -Direct Plan - Growth Option</cmdty:name>
  <cmdty:fraction>10000</cmdty:fraction>
  <cmdty:get_quotes/>
  <cmdty:quote_source>googleweb</cmdty:quote_source>
  <cmdty:quote_tz/>
</gnc:commodity>

I had a similar problem with the import of GnuCash files from desktop, but could fix it like this:
I am using GnuCash Pocket on Android with version 2.5.2.
I exported the file to GnuCash XML and opened it with GnuCash desktop.
I noticed that the accounts for funds had their commodity changed to the currency "XXX (No currency)".
(This must have already happened earlier when importing/exporting between Android and desktop, but I'm not sure.)
To fix it using desktop, I could not change the commodity of the existing accounts, but had to recreate the accounts with the correct commodity and delete the other ones.
Additionally, I had to delete all entries in the price database that referenced the old corrupted currency "XXX (No currency)".
After these changes the files could be imported into GnuCash Pocket again.

I also have had errors importing my GnuCash desktop accounts into GnuCash Pocket.  I have tried both exported csv accounts (habit, from the GnucashMobile app I was using previously and an exported .XML file.  "An error occurred when importing the GnuCash acco..."
The XML file was obtained in the Desktop application via: File>Export>Export,
Data Format: XML
I used the .gnucash extension, as well as a renamed .XML extension.
The CSV file was obtained  via File>Export>Export Account Tree to CSV
(& this version worked in GnuCash Mobile)
I have enabled crash logging.  I am not sure where to find this log, despite looking broadly, including:
\Android\data\org.gnucash.pocket.pnemonic - no log files in here or the subdirectories
\Documents\GnuCash - not sure this location is from Pocket GnuCash
I do see a lot of 'backup' gz files in:
This PC\Ben's Galaxy S21+ 5G\Internal storage\Android\data\org.gnucash.pocket.pnemonic\files[hash]\backups

they seem to correspond to each time I tried to import the accounts.  They are small (608-611 bytes), and when opened only contain a folder and no actual contents.
Is there a better way of getting contents into Pocket GnuCash?  Is anyone able to point me to the location of the log file, to be able to better identify the issue?
Thanks

So this is the same as reported in #34 ?

I don't see the similarity between 'unable to import .gnucash file' and 'non-currency assets are displayed as "XXX"'.  Is this the issue you meant to reference?

@bdmartens Yes. djbrown and pneumonic78 found that the issue is caused by custom commodities. fisian noted that their currency becomes XXX.

@pnemonic78 I'm able to import with newer versions of the app without any issues and other commodities are imported successfully.
I think we can close this issue now if you think it's been fully fixed.


[PE-D][Tester D] Long Field Cutoff

Having too long of a field can lead to it being truncated, if the window size is too small.
For example:

The name for entry 3 is cut off.
Adding a scroll can help users view longer than expected entries.

Labels: severity.Low type.FunctionalityBug
original: jonyeokj/ped#8

Add in DG #289:
Long fields being truncated


mkdir: effective options -v and -p

Despite the previous comment stating that options
of mkpathat are line up with -p and -v (or conversly),
options -p and -v wasn't effective for command 'mkdir'.
This patch make it effective.
Change-Id: I8d908eb852190b83d245e51e6d3f3ebdbfba7665
Signed-off-by: José Bollo<EMAIL_ADDRESS>

The problem solved here is an artefact of adding options to the right.


v-on:keyup.enter does not work on Android

Version
2.5.13
Reproduction link
https://jsfiddle.net/50wL7mdz/101586/
Steps to reproduce

Open the link of minimal reproduction on Android Chrome Browser
Click in the second field (that contains the text "Hello Vue.js!")
Click at the enter key

What is expected?
An alert box with the message "Hello Vue.js!" should have been shown.
What is actually happening?
Nothing. Apparently Android does not recognize the command v-on:keyup.enter and the focus is just changed to the next field.

Maybe it's something related to https://stackoverflow.com/questions/36753548/keycode-on-android-is-always-229 , but it may lead to errors in sites that use Vue when accessed via mobile.

When you use the -> button on Android there is no keyup event at all. This is not something Vue can fix. When you need your site to work on mobile you should avoid relying on keyup events for submit logic.


Is this method sensitive to training image resolution?

Hi, thanks for open source such great work! I was trying the training code on some custom data, which are very simple CLEVR like scenes. However, I find the model prediction quite noisy. I notice that the lego images are 800x800 while my images are 128x128. So I try to reduce the voxel resolution from 256 to 128 and get a better PSNR, but still noisy result. Further reducing from 128 to 64 gives worse PSNR but less noisy points. Do you have any suggestions here? Sample images in my dataset are like:

Model prediction using voxel size=64, 128, 256:

Okay it seems that the main problem is the background color.  Changing it to 0 solves my problem (tho still not perfect due to camera issues but much better). Increasing my image resolution to 800 further enhances the performance.


Appears to be fixed in 0.7.2. Please reopen if still an issue


docs(ee/docker) fix broken dev portal link

late to the party, but thank you! had a prospect notice the issue and nice y'all are on the mofo.


Label.clip_text doesn't clip vertically

See also https://github.com/godotengine/godot/issues/16863#issuecomment-405693704
Godot version
3.3.2
System information
Windows 10
Issue description
The docs say that clip_text let's you scale the control freely, but this is not true, it will only clip the text horizontally. Either a change in the implementation or in the documentation should be made.
Steps to reproduce

Create a label
Type something in it
Enable clip_text
Try and scale it vertically so that it clips the text

Minimal reproduction project
No response

If you mean you can't reduce the vertical rect size to cause clipping, I can confirm.
Also see my comment at https://github.com/godotengine/godot/issues/43543 or for an example of a rotated label not clipping correctly:


Add support for Alt modified keys

Hi,
I've been trying to use Emacs under Hyperterm and without meta key support this is very painful. I have made a little patch that allows Emacs to work as expected under Hyperterm. I'm not too happy with the global reference, but other than that it seems to work very nicely.
Thanks for making a fun terminal app that is easy to hack on :smile:
Daniel

It looks like there are still a few things that don't quite work in Emacs, but this is an improvement

Please rebase! 😊

Exists an hterm setting for this: term_.prefs_.set('alt-is-meta', true)
Maybe it could be a cleaner solution that listening for the keydown?

We need another rebase... 😊

Any word on this?? Can it be merged?

alt-is-meta like @lordgiotto suggests is probably better though. Then you need to add the config option to the UI reducer (which is kind of misleading I guess, since it's not really UI...), so that it'll get reloaded when the config changes.

Closing this as it was superseded by #686.


Add initial patience & delta mode to early_stopping

(Mostly) addresses #11.
The main changes are:

Fix min_delta being ignored by the early_stopping callback.
Add a delta_mode option to early stopping that allows min_delta to either be interpreted as a "absolute" or "relative" difference.
Add an initial_patience option, which is the same as patience but only considers the first n steps. This is useful when the initial stages of training are very noisy, etc. It is similar to start_from_epoch from Keras.
Renamed existing "mode" to "optimization_mode" for clarity. (Also in the checkpoint callback, for consistency).
Added tests.

This doesn't address the problem that the best weights are only returned if the patience has run out. After looking more closely at the code, I think that fixing it requires a more considerable refactoring of the code, so I'll make another issue to discuss. In short, I would like to upgrade the callback functionality such that each callback can have multiple callback functions. E.g., the early_stopping callback could have a generic __loop_callback__ that is called on the schedule specified by the user, and a on_epoch_end that is called at the end of training. This seems to be how the Keras callbacks work, and as far as I understand, it isn't possible with the current setup. But more on that later, let me know what you think of these changes!

Thanks @JamesAllingham! Will review it soon :)


block

block？no texture

what

how to create a block。
The created block has no texture。

import contentcreator.block.Block;
import crafttweaker.block.IMaterial;

// Block.create(IMaterial material, String registryName)
Block.create(IMaterial.wood(), "example_block");

You can get IMaterial with bracket handler support this mod adds (e.g. material:wood) or like this.
you need have Resource Loader to add textures. It'll create "resources" named file to your minecraft instance. Create a folder named contentcreator and create blockstates named folder indside resources. Add a json file that's named same with your blocks registry name. Here's a basic example of a blockstate json.
gregtech:blocks/stones/asphalt/asphalt is the textures path. Replace it with something like contentcreator:blocks/<your blocks registry name>, and add  your texture to this path (in resources folder): contentcreator/textures/blocks/<block name>.png


Create AASA file for universal link

From previous setup: add AASA file to be served from .well-known/apple-app-site-association with content:
{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "A42K5AU657.com.swiftpackageindex.playgrounds",
                "paths": ["/app/*"]
            }
        ]
    }
}

I don't quite remember the significance of /app/* in paths. I think that might be the deep link to open the app from swiftpackageindex.com/app/.

Yes, this is how this was set up on my test domain:

https://swifthub.site/app
https://swifthub.site/app/
https://swifthub.site/app?dependencies=finestructure/gala
<EMAIL_ADDRESS>https://swifthub.site/app?dependencies=finestructure/gala@from:0.1.0

Re-opening to track this as it's not working

I've found this Apple site https://search.developer.apple.com/appsearch-validation-tool/ claiming

Things I've tried:

change back to path based syntax
use single appID key (instead of appIDs) (this was another difference)
change back to the same AASA file I used to use (except bundle id)
change back to exact same AASA file with co.finestructure.Slide bundle id + app bundle id changed

None worked.

More things to try:

[ ] paste AASA file syntax straight from Apple's example, updating just the appID (i.e. path: "*")
[ ] create a new app and bundle id to see if anything is "stale" (doesn't look like it's the app though, if the above is to be believed)

Mmm, using "paths": ["*"] (6f3d854c4fbe2f4684e1e0a92a5e90f9f44221a3) changed something:

https://stackoverflow.com/a/33304998/1444152

Though Xcode created an entitlements file for me, it did not include in my build: I had to click that box manually.

I suspected something like this yesterday but the problem is that the entitlements can't be added to the App target - all the checkboxes are greyed out:

The post is referring to an iOS app, so maybe it's different there. Although I do notice that there's no entitlements file in the app bundle and I'm beginning to wonder if there should be.

Might be relevant: https://developer.apple.com/forums/thread/123554

Also this:

Hi,We have same problem. In the Safari universal link doesn't work only forwards to the store.But in the Notes or iMessage it works.Aslo https://search.developer.apple.com/appsearch-validation-tool/ we cannot past verification. But it worked before iOS 13 release.

from this thread: https://developer.apple.com/forums/thread/123554
That's exactly what's happening right now (except download page instead of store and obv macOS).

Duplicate of #1035 , technically. We've got the file, it's just not working. Let's track these issues in a single place.


Draft workshop reviews

Please leave your review comments for our author here.

Create resource   group and necessary azure resources sections not complete, can't find where to create   the required resources.
microsoft-leveraging-azure-digital-twins-supply-chain/Before   the HOL - Leveraging Azure Digital Twins in a supply chain.md at main ·   solliancenet/microsoft-leveraging-azure-digital-twins-supply-chain   (github.com)

Ah yes, this will use the ARM template as the existing sample. I missed
returning and making a couple of small adjustments. In the meantime, you
can use the ARM template located here:
https://github.com/Azure-Samples/IoTDemos/tree/master/ADT-SupplyChainDemo#contoso-apparel-developer-version
There is a small adjustment in the deployment linked (the namespace of the
models changed, so the query in the logic app needs changed to
"com.contoso".
I will get this updated today.
On Tue, Apr 20, 2021 at 4:29 AM RichardJones @.***>
wrote:

Create resource group and necessary azure resources sections not complete,
can't find where to create the required resources. microsoft-leveraging-azure-digital-twins-supply-chain/Before
the HOL - Leveraging Azure Digital Twins in a supply chain.md at main ·
solliancenet/microsoft-leveraging-azure-digital-twins-supply-chain (
github.com)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/solliancenet/microsoft-leveraging-azure-digital-twins-supply-chain/issues/1#issuecomment-823087685,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6LRVVCRVVSBJ3MYWFYLV3TJU3P7ANCNFSM43GA4FVA
.

@creationsoft - The before the HOL has been updated. Thank you for discovering my omission!!

In Exercise #1 Task #1 model files are shown starting with an '['. This is wrong and '[' and the closing ']' should be removed.

In Exercise #1 Task #1 at:
Let's now continue this exercise by defining a model for a storeroom using DTDL. Feel free to refer to the DTDL specification as a reference.
Let's begin by defining the interface for a storeroom. Open Visual Studio Code to the Hands-on lab/Resources/models folder, and create a new file named storeroom.json. Add the following text to this file:
The 'storeroom.json' file already exists in the downloaded zip file at the specified location. Please remove it.

In Exercise #1 Task #1 at:
5.Now we need to add StoreRoom as a relationship in the Factory model. Open the Hands-on lab/Resources/models/factory.json file, and add the following to the contents array:
The relationship is already defined in the 'factory.json' file

In Exercise #2 Task #2 at:

Upload the storeroom model using the CLI with the following command (replace ADT_INSTANCE_NAME with your Azure Digital Twins instance name):

az dt model create -n ADT_INSTANCE_NAME --models storeroom.json is missing the resource group parameter -g <your_resource_group>.  Other possibility is to set the default resource group in the default configuration.
Same problem with step 9. following

In Exercise #5 Task #1 at:
az dt twin update -n ADT_INSTANCE_NAME --twin-id "SR90636" --json-patch '{"op":"add","path":"/StockLevel","value":42}'
updating doesn't work. No error shown, but check with azcli or ADT Explorer doesn't show any change. BTW. As always '-g' parameter is missing

In Exercise #5 Task #3 at:
Note: If desired, you can choose to execute the Logic app on-demand by selecting Run Trigger from the Overview screen of the service.
Running the trigger fails with 'Unauthorized' in the 'Query QueryTwins' step. Is the described Authorization setup really working?

In Exercise #6 no events are routed from ADT to the event hub. Therefore no visualization in TSI

In Exercise #1 Task #1 model files are shown starting with an '['. This is wrong and '[' and the closing ']' should be removed.

Fixed

In Exercise #1 Task #1 at:
Let's now continue this exercise by defining a model for a storeroom using DTDL. Feel free to refer to the DTDL specification as a reference.
Let's begin by defining the interface for a storeroom. Open Visual Studio Code to the Hands-on lab/Resources/models folder, and create a new file named storeroom.json. Add the following text to this file:
The 'storeroom.json' file already exists in the downloaded zip file at the specified location. Please remove it.

Fixed

In Exercise #1 Task #1 at:
Let's now continue this exercise by defining a model for a storeroom using DTDL. Feel free to refer to the DTDL specification as a reference.
Let's begin by defining the interface for a storeroom. Open Visual Studio Code to the Hands-on lab/Resources/models folder, and create a new file named storeroom.json. Add the following text to this file:
The 'storeroom.json' file already exists in the downloaded zip file at the specified location. Please remove it.

Fixed

In Exercise #2 Task #2 at:

Upload the storeroom model using the CLI with the following command (replace ADT_INSTANCE_NAME with your Azure Digital Twins instance name):

az dt model create -n ADT_INSTANCE_NAME --models storeroom.json is missing the resource group parameter -g <your_resource_group>. Other possibility is to set the default resource group in the default configuration.
Same problem with step 9. following

Fixed

In Exercise #5 Task #1 at:
az dt twin update -n ADT_INSTANCE_NAME --twin-id "SR90636" --json-patch '{"op":"add","path":"/StockLevel","value":42}'
updating doesn't work. No error shown, but check with azcli or ADT Explorer doesn't show any change. BTW. As always '-g' parameter is missing

INVESTIGATING

In Exercise #5 Task #3 at:
Note: If desired, you can choose to execute the Logic app on-demand by selecting Run Trigger from the Overview screen of the service.
Running the trigger fails with 'Unauthorized' in the 'Query QueryTwins' step. Is the described Authorization setup really working?

INVESTIGATING

UI display: on the root Readme.md file, the section after this sentence below is shown as a code block and not easily readable.
'Contoso Apparel is looking to implement digital twins to model their existing supply chain environment end-to-end. Their goals are:'

In 'Before the HOL section', when creating a new empty Resource Group if might be relevant to add a note about which region to choose. Customers should choose a region where ADT is available upfront. We can link to https://azure.microsoft.com/en-us/global-infrastructure/services/

INFO: Before the HOL section, the time required (Duration) for me to complete the RG + ARM deployment was about 25 minutes

HOL -  Task 1 Exercise 1 - point 1
"Let's begin by defining the interface for a storeroom. Open Visual Studio Code to the Hands-on lab/Resources/models folder, and create a new file named storeroom.json. "

The file storeroom.json already exists. So either we need to remove the file from the repo or suggest another name. Note that I did a clone of the repo, maybe the ZIP file does have it removed.

HOL Task 4 - Uploading models fails in ADT Explorer because Storeroom.json is already uploaded.
Change the guide to either make sure the user does not select the latter (and thus only selects 10 json files, or show user to delete the model already in the system before continuing.

HOL Exercise 5 - Task 1 - Updating the stock level through CLI returns an error as it seems the double quotes are removed when submitting. Had to escape the quotes for the command to work:
az dt twin update -g RESOURCE_GROUP_NAME -n ADT_INSTANCE_NAME --twin-id "SR90636" --json-patch '{"op":"add","path":"/StockLevel","value":42}'
I'm using PowerShell through Windows Terminal.

HOL Exercise 5 - Task 3 - Logic App.
The Logic app does not trigger successfully. Within the first call to the API Connection it returns 'Unauthorized'. This is typically linked to the fact that the Authentication through an app registration requires the authorizing user to have more permissions on Azure AD. Previously we used to configure the Azure AD app auth with a API permission and requiring global admin consent.
A workaround to all users in this situation is to leverage MSI, which is supported by Logic Apps but not yet in the API Connection type of connector. I have a write-up of using this option instead, I will mail that to @DawnmarieDesJardins

HOL Exercise 6 - Task 1 - Adding permissions. This step is adding Azure AD resource permissions but it should be adding Data plane permissions instead. If I follow the steps in Task 1 I get this error in the TSI explorer:
"Access Denied
You do not have access to environment [...b33d0c..]. You may need to be added via Data Access Policies in the Azure Portal.
"
The correct way to add the TSI data plane permissions is to use the section 'Data Access Policies' instead of 'IAM', and add yourself as Reader and Contributor in one single step. The Step by step is slightly different.
Once the Data Access Policies are configured, I can now access TSI explorer and see the data.

Whiteboard design session - the file 'WDS trainer presentation - Leveraging Azure Digital Twins in a supply chain.pptx' is an empty template only, no content for this MCW?

Student guide and Trainer guide feedback

Do we use the term Whiteboard design session or prefer Architectural Design Session (ADS) that is a frequently used term when creating an architecture for a IoT solution?
Typo in Preferred target audience section: Comntoso instead of Contoso
In the trainer guide, Model updates and Data visualization are mentioned, together with a suggested solution. This is not the case for the Business logic implementation, which is only mentioned. This section is just above the Checklist of preferred objection handling.
In the Checklist of preferred objection handling, item 3 does not have a suggested answer to the objection to track manufactured products.

Before the HOL
Would be good to have a short overview of the services that will be deployed using the ARM template. Maybe also an estimate of the subscription costs for the duration of the lab.

Exercise 1
In this exercise, you will be assisting Contoso Apparel in defining a model representing a storeroom. In Contoso's environment, we must track the temperature and humidity telemetry coming storeroom as well as the current stock level.
This should probably be:
In this exercise, you will be assisting Contoso Apparel in defining a model representing a storeroom. In Contoso's environment, we must track the temperature and humidity telemetry coming from the storeroom as well as the current stock level.

HOL Task 4 - Uploading models fails in ADT Explorer because Storeroom.json is already uploaded.
Change the guide to either make sure the user does not select the latter (and thus only selects 10 json files, or show user to delete the model already in the system before continuing.

@katriendg - I understand that storeroom.json was upload previously via CLI, however the Azure Digital Twin Explorer doesn't give me an error (the ADT Explorer just skips it).

Lab 5 - Task 3 - Logic APP
Same authorization issues to trigger the logic app as mentioned before.

Closing issues as resolved (these were part of SME review).


Add method to save login

So Facebook save login cookies inside c_user, fr and xs. Is there any way we can save cookies login? So we dont have to login each time run a scrapper.

Hi @flameoflust69!
Yes, the way to do this is to use a custom designed cookies middleware because the one build with scrapy is programmed to keep the cookies only between different requests of the same session.
Luckily this was already coded in a very nice and clear way here: https://github.com/grammy-jiang/scrapy-cookies


.Net Compilation Error

Using .NET 4.5 with Bootstrap 3.3.7 and Ekko Lightbox 4.0.2.
I have references to the CSS and JS for Ekko Lightbox in the MasterPage.
The files load, but regardless of browser, I get a compilation error: BC30035: Syntax error
It references the first 3 lines of the ekko-lightbox.min.js file.
I haven't gotten any further. Please help?

I suggest you use the CDN or the files in the /dist folder rather than compiling yourself.

That's just it.
I'm not compiling anything.
It's VB.net, the basic .NET website template out of the box, which includes Bootstrap.
Only thing I've tried adding is Ekko Lightbox and that's the error I get.
It makes no sense.


RTC: Replace payload name AV1X with AV1 for WebRTC. (#2760)

Fix the WebRTC "no found valid AV1 payload type" issue

Codecov Report

Merging #2784 (1cbfd15) into 4.0release (1a4249d) will not change coverage.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           4.0release    #2784   +/-   ##
===========================================
  Coverage       60.32%   60.32%
===========================================
  Files             121      121
  Lines           50972    50972
===========================================
  Hits            30747    30747
  Misses          20225    20225

Impacted Files
Coverage Δ

trunk/src/app/srs_app_rtc_conn.cpp
10.32% <0.00%> (ø)

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 1a4249d...1cbfd15. Read the comment docs.

Ping @winlinvip @chen-guanghua, please help to review.

Thank you very much. 👍


XP Globe tooltips are covered up by the interface when snapped to the right corner

Describe the bug
When the XP globes are snapped to the right corner, the tooltips are covered by the interface in both fixed and resizable modes. See screenshots below:

To Reproduce
Refer to screenshots above.
Expected behavior
It would be preferred if the tooltips displayed over the interface.

Well the problem is that XP globes tooltips are not real tooltips and so are tied to same layer as XP globes are. Moving XP globes to different layer is not acceptable, so maybe ugly solution would be to crewate another overlay that will just draw tooltips and calculate dimensions for XP globes to show the tooltips but draw nothing for them

Same thing happens on the edge of the screen in resizable.

This seems to no longer happen for unknown reasons.


Delete button to delete all the registries

Rancher versions:
rancher/server: Master
Steps to Reproduce:

Create a cluster
Create few registries
To delete all the registries, we have to do it individually
A button to delete all the registries would be useful

Version - 2.0 master 3/4
Verified Fixed


Installation on Windows 10 still fails because of missing headers

The last comment on #196 is "what about windows?", but there hasn't really been any motion there for a while, even though this seems to have been fixed on OSX and the various Linuces.
A bare npm install does not work, which is relatively known by this point:
C:\Users\RR\workspace\>npm install pcap
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/zerouid/node-socketwatcher.git
npm ERR!
npm ERR! fatal: unable to look up github.com (port 9418) (Either the application has not called WSAStartup, or WSAStartup failed. )
npm ERR!
npm ERR! exited with error code: 128

Others have worked around this on non-Windows OSes by installing via https instead, but that also does not work, because it searches for pcap.h in the recently created node_modules subfolder and that doesn't exist:
C:\Users\RR\workspace>npm install https://github.com/mranney/node_pcap.git

><EMAIL_ADDRESS>install C:\Users\RR\workspace\node_modules\socketwatcher
> node-gyp rebuild

C:\Users\RR\workspace\node_modules\socketwatcher>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  socket_watcher.cpp
  win_delay_load_hook.cc
c:\users\rr\workspace\node_modules\socketwatcher\socket_watcher.cpp(77): warning C4996: 'Nan::MakeCallb
ack': was declared deprecated [C:\Users\RR\workspace\node_modules\socketwatcher\build\socketwatcher.vcx
proj]
  c:\users\rr\workspace\node_modules\nan\nan.h(959): note: see declaration of 'Nan::MakeCallback'
c:\users\rr\workspace\node_modules\socketwatcher\socket_watcher.cpp(116): warning C4996: 'v8::Value::In
t32Value': was declared deprecated [C:\Users\RR\workspace\node_modules\socketwatcher\build\socketwatche
r.vcxproj]
  c:\users\rr\.node-gyp\10.14.1\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value'
     Creating library C:\Users\RR\workspace\node_modules\socketwatcher\build\Release\socketwatcher.lib
  and object C:\Users\RR\workspace\node_modules\socketwatcher\build\Release\socketwatcher.exp
  Generating code
  All 175 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  socketwatcher.vcxproj -> C:\Users\RR\workspace\node_modules\socketwatcher\build\Release\\socketwatche
  r.node

><EMAIL_ADDRESS>install C:\Users\RR\workspace\node_modules\pcap
> node-gyp rebuild

C:\Users\RR\workspace\node_modules\pcap>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  pcap_binding.cc
  pcap_session.cc
  win_delay_load_hook.cc
c:\users\rr\workspace\node_modules\pcap\pcap_binding.cc(2): fatal error C1083: Cannot open include file
: 'pcap/pcap.h': No such file or directory [C:\Users\RR\workspace\node_modules\pcap\build\pcap_binding.
vcxproj]
c:\users\rr\workspace\node_modules\pcap\pcap_session.cc(2): fatal error C1083: Cannot open include file
: 'pcap/pcap.h': No such file or directory [C:\Users\RR\workspace\node_modules\pcap\build\pcap_binding.
vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\RR\workspace\node_modules\pcap
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

I have installed WinPcap, as well as Npcap, its non-deprecated friend which "works on Windows 10"; neither actually makes node not choke here.
Thoughts?

Hello @rreed,
did you find a solution about this problem ?
I unzipped the WinPcap 4.1.2 Developer's Pack in my C:\ directory & added to my environment variable but still not working.
I'm out of idea ...

Me neither, trying to find a solution!

Yes, I used cap instead, since no one ever really responded here. :p It's good enough for my usecases, and might also be for yours, but obviously YMMV.

This module has never supported (and can't easily support) windows.
That's because on windows you can't get a pollable socket:

pcap_get_selectable_fd() is not available on Windows.

You can work around this by doing blocking reads in an additional thread, which is what cap does. This could be merged back into pcap at some point.

Hi, I fork the repo, and mirgrate to windows platform with npcap, change point:

use node-addon-api to rewrite, which replace nan
windows doesn't support pcap_get_selectable_fd, using pcap_next_ex to replace
we start a new thread to poll pcap_next_ex

welcome review https://github.com/frankie-zeng/node_npcap

hi, awesome! feel free to open a PR with your changes. (I don't have much time now, though... sorry)
some notes if you want to open a PR:

Don't rename files if it's not needed for your changes, or open a separate PR for that
Keep in mind the module must still work in other OSes. use #ifdef around Windows-specific code
I'm not sure about Windows, but it's generally bad practice to bundle compiled libraries Node addons.
Instead, include the npcap's source code in deps and tell node-gyp to build it as well. Link to it statically.


updating accordion docs inside the design system without bumping version

This change updates the accordion sample HTML so that it does not include buttons. This avoids providing a bad example because we probably don't want buttons be be inside accordions where they might be missed. Thank you @ashleydraper! Links provide the same focus example and are a better content example

@aaronhans Great work removing the buttons. Looks good to me.
Some content design in this area might help too. Should we keep this issue going, or open a new ticket?

Thanks @ashleydraper!. I saw some suggestions about adding guidance to buttons documentation. I added a note to the ticket where we will create the buttons component to add that note and consult with you at that point: https://github.com/cagov/design-system/issues/794

@aaronhans I'm gonna merge this cause it's just a content change. Ping me tomorrow if I need to revert.


react-native-navigation compatibility

...and the second thing I'm confused about (with both unstated and unstated-next) is how it integrates with something like react-native-navigation. The trick there is there is seemingly no "top level component" - they are switching it out somewhat frequently. More detail in my issue on RNN
I don't want to lose the context/container state on those transitions, but it's unclear how to avoid that without a "store like" concept ala Redux. It feels like perhaps a weakness of RNN, but maybe I'm missing something about how contexts work and how to get the desired behavior?

Was your problem fixed in that other thread?

For unstated, yes. For unstated-next, no, but it probably could be. unstated works better for me because of the simpler provider side implementation.

I too faced the same issue, and had to fallback to unstated for the same reasons.

@djMax Can you explain how you got Unstated to work with RNN. I've been having a hell of a time trying to get the state in multiple containers.
I too want a central location (i.e. AppContainer) that manages a global state and is able to track and share all changes on all screens. I tried something like this to no avail:
`let App = () => (

{(dataContainer: DataContainer) =>

}

)
export default App;
interface StackNavProps {
dataContainer: DataContainer
}
class StackNav extends React.Component<StackNavProps, any> {
stackNav = createStackNavigator({
Home: {
screen: (props: HomeScreenProps) =>
<HomeScreen
{...props}
dataContainer={this.props.dataContainer}/>
}
);
public render() {
return <this.stackNav />
}
}`

I got this to work whoever needs the answer just shoot me a tag, I'll get back to you unlike these dudes. SMH. Cmon people.

I got this to work whoever needs the answer just shoot me a tag, I'll get back to you unlike these dudes. SMH. Cmon people.

@jandog8990  Sincere apologies, was in a really tight spot, for the last couple of days.
But looking at the piece of code you shared,
stackNav = createStackNavigator({
    Home: {
      screen: (props: HomeScreenProps) =>
        <HomeScreen
          {...props}
          dataContainer={this.props.dataContainer}/>
    }
  );

and AFAIK createStackNavigator API is part of react-navigation library right?. But you were asking for RNN which is a different library as far as i know. Please correct me if I'm wrong


Fix security issues in routes

Right now we have a matcher in routes.rb that allows all public methods in controllers to be accessed. This is both a security issue and something that will be deprecated in Rails 5.2

@esoterik what's the point of this generalised matcher, anyway?
#file: config/routes.rb

# generalized matcher
  match ':controller(/:action(/:id(.:format)))', via: [:get, :post, :put, :delete]

I'm guessing this is the line which this issue is concerned about?

@Tr4pSt3R it was to avoid manually adding new routes all the time, I think, but it predates my starting to work on this project by a few years I think

this is resolved in #1678 and this issue should be closed on merge


Add ScanOSS as a (remote) scanner

ScanOSS seems to be the first snippet scanner that's available as Open Source. While the engine indeed is Open Source, the knowledge data base is not (selling subscriptions for it is their business model) and needs to be built up via their mining tool.
It would be interesting to integrate the miner / scanner into ORT to built up the database "on the go" with usual ScanCode scans, and also make use of the ScanOSS scanner once the built up database contains significant data.

ScanOSS now seems to build up a public database of fingerprints for Open Source Software, see https://osskb.org/osskb.html.

Also see https://api.scanoss.com/doc.

Quoting @scanossjs from the oss-based-compliance-tooling mailing list:

SCANOSS provides file-level detection of cryptographic algorithms as input for Export Control.  This is an example of a scan result from OpenSSL (removed key sections to highlight the relevant part):

"/crypto/crmf/crmf_local.h": [
    {
      "id": "file",
      "lines": "all",
      "oss_lines": "all",
      "matched": "100%",
      "vendor": "sailfishos-mirror",
      "component": "openssl",
      "version": "openssl-3.0.0-alpha10",
      […],
      "cryptography": [
        {
          "algorithm": "SHA1",
          "strength": "128"
        }
      ],
      "elapsed": "0.000427s"
    }
  ],

So this makes a ScanOSS implementation relevant for #2879, too.


Langdata for 3.02

I am looking for langdata (Tel, Kan, Guj). How can I get the langdata for 3.02, currently repository is saying langdata is for 3.04
CC: @jimregan

Langdata for 3.02:
https://code.google.com/p/tesseract-ocr/downloads/list

@amitdo - I downloaded the langdata files from that links a last month. These looks very heavy files also I am not getting good results with these files, for English language its showing meanconfidence is around 65%. This is really a painful for me.

How can I download a single language folder? Do I have to use git and do a clone request of the repo? Isn't an easier way?

You can use the Wayback Machine (https://archive.org/web/) for https://code.google.com/p/tesseract-ocr/ to get old versions of the language data.
@zdenop: the NuGet package also is 3.02 and one needs the language files for it - so pls either change the version of the NuGet package & the download or make the old language data available. Until then this project seems to be broken.

https://github.com/tesseract-ocr/tesseract/wiki/Downloads

@mYnDstrEAm:  NuGet package is not part of tesseract project => we do not manage it.

Not relevant to completing 4.00.

If someone still uses 3.02 and needs the traineddata files, see
https://github.com/tesseract-ocr/tesseract/wiki/Data-Files#data-files-for-version-302


exp/clients/horizon: support streaming for offers

[x] Offers for account
[x] Orderbook details

done in #1114 and #1122


db communication failed

Hi,
I'm a long time Teedy user but wanted to give papermerge a try since the youtube clips look amazing.
However, I'm having trouble setting it up via docker compose.
This is my compose file:
version: '2.0'
services:
  app:
    image: eugenci/papermerge:1.2.3
    container_name: papermerge_service
    command: python3 /opt/papermerge/manage.py runserver <IP_ADDRESS>:8000
    ports:
      - 8222:8000
    depends_on:
      - db
    volumes:
      - /home/a300/apps/papermerge/media_root:/opt/media
      - /home/a300/apps/papermerge/broker_queue:/opt/broker/queue
    environment:
      - DJANGO_SETTINGS_MODULE=config.settings.stage
  db:
    image: postgres:11.7
    container_name: postgres_db
    volumes:
      - /home/a300/apps/papermerge/postgres_data:/var/lib/postgresql/data/
    environment:
      - POSTGRES_USER=dbuser
      - POSTGRES_PASSWORD=dbpass
      - POSTGRES_DB=dbname
  worker:
    image: eugenci/papermerge-worker:1.2.x
    container_name: papermerge_worker
    command: bash -c "cd /opt/papermerge-worker && celery worker -A pmworker.celery -Q papermerge -l info"
    volumes:
      - /home/a300/apps/papermerge/media_root:/opt/media
      - /home/a300/apps/papermerge/broker_queue:/opt/broker/queue
    environment:
      - CELERY_CONFIG_MODULE=config
      - C_FORCE_ROOT=True

worker and db container start just fine and nothing indicates that there is a problem. But the main app gives me the following error:
  File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 26, in inner,
    return func(*args, **kwargs),
  File "/usr/local/lib/python3.7/dist-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection,
    connection = Database.connect(**conn_params),
  File "/usr/local/lib/python3.7/dist-packages/psycopg2/__init__.py", line 126, in connect,
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync),
django.db.utils.OperationalError: could not translate host name "db" to address: No address associated with hostname,

All containers run on bridge network.
Here is the full log file of the app container:
https://pastebin.com/BF5P3JaR
What am I missing here?
Thanks for your help

This error:

could not translate host name "db" to address: No address associated with hostname,

Basically says that main application was unable to resolve host name - named 'db'. Inside docker image, papermerge application connects to a database located on host named 'db'. It is definitely docker yml file/docker-compose version issue.
Just to be on the safe side: can you please change version of yml file from 2.0 to 3.7?
After you change yml file version, add this at the bottom of the file:
volumes:
  postgres_data:
  broker_queue:
  media_root:

above volumes key is placed on same level as 'services' and 'version' keys:
version: '3.7'
services:
   app: ...
    ...
volumes:
   postgres_data:
   broker_queue:
   media_root:

Also, can you please double check if you use latest docker + docker-compose versions?
Here is what I have on my computer:
(.venv) eugen@dell-xps:docker$ docker-compose --version
docker-compose version 1.26.0, build d4451659
(.venv) eugen@dell-xps:docker$ docker --version
Docker version 19.03.12, build 48a66213fe

Thanks for your quick reply.
It must have been the version as portainer doesn't support version >2. I got it running now using docker compose outside of Portainer.


Update to new version of Plutus

We are month behind the plutus team. So it's better to update
stack and nix build on the most recent plutus commit that works.

Here is PR with update: #80

PR #80 merged.
Plutus updated to commit 926a49d16439b693648b68b7e6eb7877a5e622e4 which is one of Jul 15 2021 commits.


Unauthorized request trying to enable guest WiFi

I did make an account on my FritzBox and added it. Any way to debug what I'm doing wrong?

Was that an exception or a logged debug message?
Try to turn the log level of the component to debug then it should print out the error message of the low level package that is used to communicate with the frtizbox (fritzconnection):
logger:
  default: warning
  logs:
    custom_components.fritzbox_tools: debug

If it's an exception (and no log message), it should already be coming from fritzconnection.

Whoops, I somehow missed it even though I looked explicitly at the logs:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 210, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 349, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 371, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/fritzbox_tools/switch.py", line 54, in turn_on
    result: bool = self.fritzbox_tools._handle_guestwifi_turn_on_off(turn_on=True)
  File "/config/custom_components/fritzbox_tools/__init__.py", line 63, in _handle_guestwifi_turn_on_off
    self._connection.call_action('WLANConfiguration:3', 'SetEnable', NewEnable=new_state)
  File "/usr/local/lib/python3.7/site-packages/fritzconnection/fritzconnection.py", line 449, in call_action
  File "/usr/local/lib/python3.7/site-packages/fritzconnection/fritzconnection.py", line 134, in execute
    """
fritzconnection.fritzconnection.AuthorizationError: unauthorized request

Guess I need to make an issue at https://github.com/kbr/fritzconnection instead?

Did you double-check the configuration and the credentials?
You could try calling actions directly with fritzconnection if you have some development experience. Then we'd be able to say that this custom component isn't the issue.
You could try the following:
import fritzconnection as fc

con = fc.FritzConnection(
  address="ip-here",
  port=49000,
  user="username or empty string",
  password="password"
)

con.reconnect()  # should probably also raise the exception. If not, something with your component configuration is wrong (or with the way the component reads the configuration)

Still the same issue, but the same credentials work for logging into the FritzBox web interface:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sylvia/.local/lib/python3.7/site-packages/fritzconnection/fritzconnection.py", line 456, in reconnect
    self.call_action('WANIPConnection', 'ForceTermination')
  File "/home/sylvia/.local/lib/python3.7/site-packages/fritzconnection/fritzconnection.py", line 449, in call_action
    return action.execute(**kwargs)
  File "/home/sylvia/.local/lib/python3.7/site-packages/fritzconnection/fritzconnection.py", line 134, in execute
    raise AuthorizationError('unauthorized request')
fritzconnection.fritzconnection.AuthorizationError: unauthorized request

I guess that at least confirms the issue lies with the underlying library and I should move the issue to there, right?

Yes, possible.
I'll close the issue here for now.


Fix request hunging in some case

Which issues of this PR fixes:

This PR try to fix #
Change log:

No waiting if pending queue is not empty in request processor.

@lzydmxy Please review the PR.

LGTM


Increment Build version as part of GitHub Actions

@JackDevAU Talk to @wicksipedia as he has info on best practices for this.

Made some progress on this, however would like to understand more the approach suggested by @wicksipedia.
Also spoke to @william-liebenberg about this and he raised some concerns around using GitHub releases when we don't have the build artefacts in GitHub.
Pausing this until we can have further discussion.


Fix segfault on Vault typo, bump go version

Also go mod tidy revealed that the aws-sdk is no longer in use, since we now use Vault to generate the AWS credentials.

I manually merged this into main last night, and now GH wont let me mark the PR as done. But it's merged thank you!


Migration order api

It need migration of order api to master branch from hackton.

@coconutperm , I'm closing this issue, you can re-open it if you want.


iOS9 fails the unit tests on this site.

When you run the unit tests specified on this site using an iPad running iOS9 it fails at least 3 of them. It also fails in the latest version of 10X.
Let us know when you've fixed your product.

These failing test are know issues and no plan to fix. The reason is it is not worth fixing them. We have tried as much possible. The suggested workaround is to use WebSQL in Safari. It is OK in most app.

You know, we are 4 days into no solution for any aspect of the fact that your product fails miserably in iOS9. Have you even tried to use it?

The miserable situation is the same if you use IndexedDB natively.

We are not using indexeddb for this.:
var options = {
mechanisms: ['websql'], // default ordering
size: 50 * 1024 * 1024  // 50 MB
};
var IEOption = {
size: 50 * 1024 * 1024  // 50 MB
};
var iOS = (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false);
var macOsx = (navigator.userAgent.match(/(Mac)/g) ? true : false);
var iOSVer8 = (navigator.userAgent.match(/(OS 8)/g) ? true : false);
var IE11 = !!navigator.userAgent.match(/Trident.*rv[ :]*11./);
if (iOS == true || macOsx == true) {
if (iOSVer8 == true) {
db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema, options);
}
else if (macOsx == true) {
db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema, options);
}
else {
db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema);
}
}else {
if (navigator.userAgent.search("IE") >= 0 || IE11 == true) {
db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema, IEOption);
} else {
db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema);
}
}
This code was written prior to iOS9.
We have added extra logic to determine if the os is iOS9, and use the appropriate options for it also. It just fails. We have been working with this for almost 3 years now. We aren't making some beginner's mistake.

Have you try removing size option? Probably it is not allow in iOS9.

We need the space. The 50MB is a serious constraint that we keep hoping they will get rid of. On Android devices I have up to 20 percent of the available disk space.

If we were to only have 5 MB, we can't do anything we are trying to do. Our web application uses apache and client side data storage to allow the user to continue to use our product (conducting audits) when there is no internet connection.

Suggested approach for opening ydn.db.Storage is just open without any options. Let the library select best options.

Will it make the correct decision to use WebSQL without being provided the option? That didn't work previously.

@JerryLumpkins don't worry about storage limit option, it never get approve from W3C. You will get the storage as platform provide. So if user approve, your app will get 50 MB in iOS.

Will it make the correct decision to use WebSQL without being provided the option?

Yes. If you use codova with Sqlite plugin, Sqlite is preferred over WebSQL. So there are too many stuff. Let the library do.

We don't want to keep asking the user to increase data storage space like 4 times during a single download. That's why we are asking for the max up front. IF you think it will work better without the hints we will try. I had a company buy $50,000 worth of iPads, and fly a team of auditors to Brazil on ly to find out that those running iOS9 (over half) wouldn't work.

Please close if your issue is resolved.

I will explore changing the option, and let you know what we find.

If you serious need 50 MB upfront, some people are writing dummy database the require storage. After then open the real database. So that is ugly workaround, since WebSQL silently fail (yes, silently fail) even if user approve the storage.

I hear what you are saying, except that this has been working reliably for us for more than a year.

@yathit I have been working along with @JerryLumpkins on this issue.
Webworker specific issue  :
Firstly I think we should see why the library is not working when we pass in the options parameter to the Storage
Demo : http://<IP_ADDRESS>/demo/index2.html
This issue is there in chrome as well.
If we do not pass in the options parameter and let it choose for itself then it doesn't work on Safari but does on Chrome.
Demo : http://<IP_ADDRESS>/demo/index.html

I think if you want to open more than 5MB in ios, you have to open database in user event, such as button click callback.  Could you try out? Thanks.

What we do is we create the schema from outside of the worker page also, from there it does ask for the storage prompt of 100mb on Mac Safari 9 and earlier versions. But we want to access the same schema in webworker also. But it is not able to open and use it.

It should be able to open in web worker if user already granted for the
origin.
On Oct 14, 2015 6:11 PM, "Swapnil Mhaske"<EMAIL_ADDRESS>wrote:

What we do is we create the schema from outside of the worker page also,
from there it does ask for the storage prompt of 100mb on Mac Safari 9 and
earlier versions. But we want to access the same schema in webworker also.
But it is not able to open and use it.
—
Reply to this email directly or view it on GitHub
https://github.com/yathit/ydn-db/issues/85#issuecomment-148002107.

Yes, but at this moment I am not able to create a schema with websql .
It doesn't work when I pass
var options = {
mechanisms: ['websql']
};
http://<IP_ADDRESS>/demo2/index.html

Yahit,
We are not wanting to ask for more than the 50 MB in iOS. But we want to ask for exactly 50 MB up front. We don't want the user to be prompted for 5, 10, and then 25. We want to have them approve the maximum allowed up front, and then not bother them any more.

Yahit,
We are not wanting to ask for more than the 50 MB in iOS. But we want to ask for exactly 50 MB up front. We don't want the user to be prompted for 5, 10, and then 25. We want to have them approve the maximum allowed up front, and then not bother them any more.

Please open again if more information available.
My suggestion is use in main thread. Since all DB request are async (no UI block), background worker is not necessary.

indexedDB API support in web worker is coming to Safari (and iOS?). https://developer.apple.com/safari/technology-preview/release-notes/


Samples Crashing (SharpDX.SharpDXException)

Release Type: Official Release
Version: 3.0 and 3.1
Platform(s): Windows
Describe the bug
Unable to run the sample projects, such as simple audio, JumpyJet, Space Escape etc. After creating a new project with these samples, I press the build and start game then a console appears with red text and an error saying the program has stopped working. The error is shown as "Unexpected exception. SharpDX.SharpDXException: HRESULT: [0x80070
057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The
parameter is incorrect."
To Reproduce

Downloaded and installed latest version
Created a new project using the samples
Build and run project

Expected behavior
Expecting the sample to run and be usable.
Screenshots

Log and callstacks
visual_studio.txt
console.txt
Additional context
Templates are working.
Tested on version 3.0 and 3.1.
Using Windows 7 and GeForce GTX 900 series.

I had a similar issue that disappeared once I updated my drivers (also Nvidia card).
What is the version of your driver package?

I read elsewhere too that updating drivers may fix the issue, so I did a clean install for the latest NVIDIA driver (430.86) but the problem still persists. This shows as version <IP_ADDRESS>86 in device manager.

I am currently having this problem with SimpleAudio, JumpyJet and SpaceEscape on an
AMD Radeon RX 580 using the 19.9.2 drivers (latest/stable as of this writing).
I am also on Windows 7 and using the stable 3.1 version of the engine.

I've had the same issue.
The problem seems to be Default Graphics Profile set to Direct3D 9.3 (and possibly lower) in the GameSettings -> Rendering section.
If you change it to 10.0 or higher, the SharpDX error goes away.

Enabling debug logging shows the following error:
D3D11 WARNING: ID3D11DeviceContext1::SetPrivateData: Existing private data of same name with different size found! [ STATE_SETTING WARNING #55: SETPRIVATEDATA_CHANGINGPARAMS]
D3D11 ERROR: ID3D11Device::CreateQuery: CreateQuery: EVENT and OCCLUSION queries are not available at this feature level. [ STATE_CREATION ERROR #232: CREATEQUERYORPREDICATE_INVALIDQUERY]
Exception thrown at 0x000007FEFCFFA06D in GameMenu.Windows.exe: Microsoft C++ exception: _com_error at memory location 0x000000000039E060.
Exception thrown: 'SharpDX.SharpDXException' in SharpDX.dll
'GameMenu.Windows.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll'.
[Game]: Error: Unexpected exception. SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

   at SharpDX.Result.CheckError()
   at SharpDX.Direct3D11.Device.CreateQuery(QueryDescription queryDescRef, Query queryOut)
   at SharpDX.Direct3D11.Query..ctor(Device device, QueryDescription description)
   at Xenko.Graphics.GraphicsDevice.Begin()
   at Xenko.Games.GraphicsDeviceManager.Xenko.Games.IGraphicsDeviceManager.BeginDraw()
   at Xenko.Games.GameBase.BeginDraw()
   at Xenko.Games.GameBase.InitializeBeforeRun()
[Game]: Error: Unexpected exception. SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

   at SharpDX.Result.CheckError()
   at SharpDX.Direct3D11.Device.CreateQuery(QueryDescription queryDescRef, Query queryOut)
   at SharpDX.Direct3D11.Query..ctor(Device device, QueryDescription description)
   at Xenko.Graphics.GraphicsDevice.Begin()
   at Xenko.Games.GraphicsDeviceManager.Xenko.Games.IGraphicsDeviceManager.BeginDraw()
   at Xenko.Games.GameBase.BeginDraw()
   at Xenko.Games.GameBase.InitializeBeforeRun()
Exception thrown: 'SharpDX.SharpDXException' in Xenko.Games.dll
An unhandled exception of type 'SharpDX.SharpDXException' occurred in Xenko.Games.dll
HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

The following steps increases the debug logging to show the above error:

Right click the Windows project -> Properties -> Debug
Tick Enable native code debugging
Set DeviceCreationFlags.Debug on the GraphicsDeviceManager, ie.

using (var game = new Game())
{
    game.GraphicsDeviceManager.DeviceCreationFlags = Xenko.Graphics.DeviceCreationFlags.Debug;
    game.Run();
}

I'm seeing this same error when trying to load the VR sample using the Valve Index. I'm not sure if it happens with other headsets.
After running with the debug flag, I receive this additional information:
D3D11 ERROR: ID3D11Device::CreateShaderResourceView: The Format (0x1b, R8G8B8A8_TYPELESS) is invalid, when creating a View; it is not a fully qualified Format castable from the Format of the Resource (0x1b, R8G8B8A8_TYPELESS). [ STATE_CREATION ERROR #127: CREATESHADERRESOURCEVIEW_INVALIDFORMAT]
D3D11 ERROR: ID3D11Device::CreateShaderResourceView: The format (0x1b, R8G8B8A8_TYPELESS) cannot be used with a ShaderResource view. [ STATE_CREATION ERROR #127: CREATESHADERRESOURCEVIEW_INVALIDFORMAT]
Exception thrown at 0x00007FFFBD3F3E49 in GameApp.Windows.exe: Microsoft C++ exception: _com_error at memory location 0x000000876617BFA0.
D3D11 ERROR: ID3D11Device::CreateShaderResourceView: Returning E_INVALIDARG, meaning invalid parameters were passed. [ STATE_CREATION ERROR #131: CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN]

I appears to be using the R8G8B8A8_Typeless defined in PixelFormat.cs in Stride.Graphics. It also occurs primarily while loading the Mirror texture specifically here:
https://github.com/stride3d/stride/blob/273dfddd462fd3746569f833e1493700c070b14d/sources/engine/Stride.VirtualReality/OpenVR/OpenVrHmd.cs#L53
I don't understand D3D11 well enough to do more than guess at the problem at this time.

@AmbulantRex does it still happen if you set Default Graphics Profile to Direct3D 10.0 or higher?

@xen2 It does. I'm currently using 11.

I've had the same issue. The problem seems to be Default Graphics Profile set to Direct3D 9.3 (and possibly lower) in the GameSettings -> Rendering section. If you change it to 10.0 or higher, the SharpDX error goes away.

I can repro, this is also exactly what happens for me (Windows 7 64-bit, most up-to-date drivers for Radeon RX 580).

@AmbulantRex does it still happen if you set Default Graphics Profile to Direct3D 10.0 or higher?

For me, any profile >= 10.0 (up until 11.0 included) works correctly, and any <= 9.3 breaks with exactly the "The parameter is incorrect" error (as described by OP).


Shrink text that is too large

Across many apps, text in things like titles and captions can overflow the container if it is longer than expected. Use something like textFit to handle this more gracefully.
Problem areas:

Item titles in Media Browser
Title in InfoStation
Various content in Timeline Explorer

Implemented in https://github.com/Cosmic-Chatter/Exhibitera/commit/e4e6e2f59785f66608d7b9e8053d8270cb479bfe


Command not found after install

Unsure if this is a go issue or a package issue but when after installing I am unable to execute the command.

I believe I can still use the module from code.
I've looked around and there isnt really a lot of info on this issue, most refer to setting up $GOPATH in ~/.profile which I already have done.

Any ideas?

Hey! Would you mind sharing the output of:
echo $GOPATH

I set my path like so:
export PATH="$PATH:$HOME/bin:$HOME/go/bin"

Which may be useful if GOPATH is in a default location

Changing my path to that and then reloading using
. ~/.profile re https://askubuntu.com/questions/59126/reload-bashs-profile-without-logging-out-and-back-in-again
fixed this.
I believe the issue was I wasn't reloading my profile when trying to get things working earlier so it obviously was going nowhere.
Thanks for being my rubber duckie on this.

@Hoanglam1134 to confirm, are you asking why exporting that environment variable may help alleviate this issue?

@jamietanna yes, do not know why setting PATH like yours help this works?


Update Gradle

Result of gradle clean wrapper --gradle-version 3.0 --no-daemon
If 3.0 is too new, stitching to 2.14.1.

Hi @kazuki-ma,
Thanks for the PR - we may look to upgrade gradle in the future, if the current version doesn't meet our need. We just want to minimise any potential risk by upgrading in isolation to other build changes.
All the best,
Ross

Hi @kazuki-ma just to let you know - we have updated gradle to 2.14.1 in aa82a6de6c34124e0645505b812467d7904a39bb


Migrate valid-v-for

reference #26

I will split this rule implementation into two or multiple PRs due to its complexity
For now only the simple checks are done


The plugin is not compatible with ckeditor 4.5.4

Very good work on the plugin but unfortunately tested it on ckeditor 4.5.4 (latest) and appears that the plugin has compatibility issues. The editor crashed immediately when adding the wordcount extension in the config, followed the same procedure as explained in the readme. With the extension loaded, the result was a blank box without ckeditor in the place where the editor was supposed to be visible, didn't check the error console on crome for the js error that it was causing.
Tried the same setup with older ckeditor 4.4.8, worked out of the box.

Please check the browser error console.

Did you add the notification plugin to your editor? this is now required

Ran into this too, adding the notifications plugin fixed it.
Can't plugins declare their dependencies somehow, so they fail gracefully?
If there's no infrastructure for that from CKEDITOR, could the plugin do the check itself?

No  there is no other solution


Create Wad.listener Object

Hello,
In light of differing supports for the AudioListener, could Wad wrap the Wad.audioContext.listener in a Wad.listener object that can:

Make the set position code to be uniform across different browsers, probably using the accepted positionX API, and that keeps track of the listener pos, so that if users use the Wad.listener object, they can always get the Wad.listener.positionX, even on Safari.

I am closing https://github.com/rserota/wad/issues/108 in favor of this one. The things from 108 I was commenting were:

Normalize the API
Currently, the set orientation requires a vector, but all the code in my systems uses angles and degrees. It would be extremely helpful for me if there was a set orientation function that would rotate the listener object through:
setOrientation(90)
There could also be a setPosition function that takes a theta and an amount to move, and sets the new position if the 3rd argument is true. Then it can return the new position.
This would also be a good place to allow someone to put effects over all sounds at once, as if the listener was having an effect put onto them.

I'm going to start working on this, unless you have already started.

I haven't started working on this. If you wanted to build it, that would be great.

Hm, so I'm looking on Chrome at listener.positionX, and there are quite a few functions here that are not on MDN. I wonder if it's possible to view their code somewhere?
AudioParamautomationRate: (...)
cancelAndHoldAtTime: ƒ cancelAndHoldAtTime()
cancelScheduledValues: ƒ cancelScheduledValues()
defaultValue: (...)
exponentialRampToValueAtTime: ƒ exponentialRampToValueAtTime()
linearRampToValueAtTime: ƒ linearRampToValueAtTime()
maxValue: (...)
minValue: (...)
setTargetAtTime: ƒ setTargetAtTime()
setValueAtTime: ƒ setValueAtTime()
setValueCurveAtTime: ƒ setValueCurveAtTime()
value: (...)
constructor: ƒ AudioParam()
Symbol(Symbol.toStringTag): "AudioParam"
get automationRate: ƒ automationRate()
set automationRate: ƒ automationRate()
get defaultValue: ƒ defaultValue()
get maxValue: ƒ maxValue()
get minValue: ƒ minValue()
get value: ƒ value()
set value: ƒ value()

I guess you could try searching through the Chromium source code? For example: https://github.com/chromium/chromium/search?q=cancelAndHoldAtTime&unscoped_q=cancelAndHoldAtTime

Do you think you could possibly push a release to this? I have a couple projects that I want to refactor to use this listener object, and rather than pointing them to my local version of the repository, I would like to just update them.

Version 4.9.0 is now up on npm.


re-entrancy doesn't work for object detection

I trained an object detection model in Model Builder (Azure ML environment)

Then saved I project and closed out of VS

I re-opened VS and train state was not saved and Train page looks like:

BUT if I go to data (which also is not completely updated and only shows small image previews):

And click on one of the previews, it takes ~20 seconds to load:

AND it brings back the train state:

Re-entrancy works for object detection with error dialog, could you help to take a look?

Validate this issue on Main branch: https://privategallery.blob.core.windows.net/gallery/refs/heads/main/atom.xml

Windows 10 Enterprise, Version 20H2
ML.Net Model Builder (Preview): <IP_ADDRESS>2301
Microsoft Visual Studio Enterprise 2019: 16.9.4
.Net: 5.0.202

Steps:
1). Prepare the JSON file according to: https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-model-builder#create-a-new-vott-project
2). Create new C# console app with .Net 5.0;
3). Add model builder by right click on the project;
4). Click "Object detection" on Scenario page to navigate to Environment page;
5). Select Azure and set up workspace on Environment page;
6). Click "..." to input the JSON file;
7). Click "Start training" on Train page, and wait Training complete;

8). Save and close the model builder;
9). Reopen the model builder, see prompt the error;
10). Close the error dialog, and navigate to Train page and Data page, see: the status is the last saved.

Reentrancy still occur model builder error on Main branch: https://privategallery.blob.core.windows.net/gallery/refs/heads/main/atom.xml

Windows 10 Enterprise, Version 20H2
ML.Net Model Builder (Preview): <IP_ADDRESS>2903
Microsoft Visual Studio Enterprise 2019: 16.9.4
.Net: 5.0.202

Verify this issue on main branch:

Windows 10 Enterprise, Version 20H2
ML.Net Model Builder (Preview): <IP_ADDRESS>5801
Microsoft Visual Studio Enterprise 2019: 16.9.5
.Net: 5.0.202

Re-opened model builder, closed the prompted error window, the train state was saved.

Tracking "Model Builder Error" issue on: Model Builder error occurs on the process of model builder for Azure. #1406


New version: FlyByWireSimulations.FlyByWireSimulationsInstaller version 2.2.0(1)

ARP entries are correct.
Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 1119
Microsoft Reviewers: Open in CodeFlow

/azp run


Compressing rolled files

How would you feel about an option to gzip rolled log files?

I think that would be very useful.  I think giving lumberjack a func (io.Writer) io.WriteCloser that it could use to wrap a file and use to write the backups would be good (so people can provide their own favorite zip algorithm). We could add zipping to the tasks we do on old log files in the cleanup function (doing the actual compression in a separate goroutine to a temp file and then replace the non-compressed backup atomically with the compressed version... see natefinch/atomic for atomic replacements on platforms other than Linux... and ug, I need to actually fix up that repo so that it has like, tests and such).

That sounds like a good plan to me. I like the idea of the atomic writing for when we compression the old log files, so we ensure we don't lose any of the files or data.


Question: What is the difference between “starter” and "begainer"?

I am sorry to ask this question. Because I couldn't find a reasonable explanation on the Internet.
I'm a little confused about these two words, and how do I understand if they mean "start touching" or "starter".
(╥╯^╰╥)

do you mean "beginner"? can't find the word "begainer" in a dictionary 😊

@devCrossNet Yeah, you're right.

beginner is related to a person that just starts to learn something and starter is related to a thing to get started
for example, if you have a menu in a restaurant and you order a starter - that means you have something small to eat before you eat the main dish.
translated to tech - a starter/kitchen sink/boilerplate is something you can take and build on top of it

I'm a kid, I'm starting to learn "vue-starter".
Question: Starter or begainner, which I'm?
My answer：“beginner”
I'm Engineer, I'm starting to use "vue-starter"
Question: Starter or begainner, which "vue-starter" is?
My answer：“Starter”
Right？

it's two different things. if you start using vue you are a beginner and use the vue-starter. if you are an advanced engineer you're using the vue-starter but you're not a beginner anymore.

@devCrossNet Thank you for your answer.😊


Can't Publish in Docker Linux (.NETFramework were not found)

Hi, I've  followed the tutorial and works great, except when I try to publish in docker Linux, I am getting this error:
#15 2.510 /usr/share/dotnet/sdk/6.0.402/Microsoft.Common.CurrentVersion.targets(1220,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.7.2 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/src/test-web/test-web.esproj]
I don't know why is calling NETFramework, is there something I can do to avoid this?
I am using the default dockerfile created by Visual Studio:
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["test-api/test-api.csproj", "test-api/"]
RUN dotnet restore "test-api/test-api.csproj"
COPY . .
WORKDIR "/src/test-api"
RUN dotnet build "test-api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "test-api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "test-api.dll"]

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

ID: f5beb7f5-5d28-d5e5-92ba-3e04c75e44b5
Version Independent ID: 867e3a3f-2387-ba46-c911-10822f8c4a81
Content: Create an ASP.NET Core app with React - Visual Studio (Windows)
Content Source: docs/javascript/tutorial-asp-net-core-with-react.md
Product: visual-studio-windows
Technology: vs-javascript
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@michael-aguilar-ps -- Michael, please see related issue #8585, and let me know if that helps answer your question.
cc @Mikejo5000 for awareness

No, there is no solution yet

@michael-aguilar-ps I will ask about this.

Try setting this in your esproj-file
false
The ResolveNuGetPackageAssets-targets has conditinal on the above property, and exists('$(ProjectLockFile)'). And ProjectLockFile is obj\project.assets.json, which probably got create in a previous build.

Apologies; forgot to mark code as code. Updated now

I tested the ResolveNuGetPackages setting and still got the same build error.

I am using NET 7 with Visual Studio updated and still getting the same error

I had this issue as well, and posting for anyone in the same situation as I've spent many hours on solving this.
The Microsoft.JavaScript.Sdk esproj template seems to be the cause of this, see Sdk.targets XML row 112 in nuget package
https://www.nuget.org/packages/Microsoft.VisualStudio.JavaScript.SDK
I solved it by going into the configuration management in Visual Studio and unchecking the "build" and "deploy" targets for the frontend project. Once they were unchecked my Tekton pipeline could invoke the custom targets from the template which allowed me to run npm install and npm run build to produce the frontend application artifacts.

@af-wieda you are right, that seems to be the issue.
Still, I hope this bug could be fixed, it shouldn't depend of NET Framework. I've tried to build my project on Linux and get the same error.
/usr/share/dotnet/sdk/7.0.202/Microsoft.Common.CurrentVersion.targets(1229,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.7.2 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/michael/Documents/TestReact/reactapp/reactapp.esproj]

I've found a workaround after many attemps:

In the esproj folder I had to create 2 files:

Directory.Build.props

<Project>
</Project>

Directory.Build.targets

<Project>
    <PropertyGroup Label="Globals">
      <TargetFrameworkMoniker></TargetFrameworkMoniker>
    </PropertyGroup>
</Project>

After this, the .NET Framework doesn't occurs anymore. Now I can build the app in Linux

In order to create the docker, it was necessary to check this doc, this is my final Dockerfile:

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs
WORKDIR /src
COPY ["reactapp/nuget.config", "reactapp/"]
COPY ["webapi/webapi.csproj", "webapi/"]
COPY ["reactapp/reactapp.esproj", "reactapp/"]
RUN dotnet restore "webapi/webapi.csproj"
COPY . .
WORKDIR "/src/reactapp"
RUN npm ci
WORKDIR "/src/webapi"
RUN dotnet build "webapi.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "webapi.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "webapi.dll"]

To the default Dockerfile, I had to install nodejs, and RUN npm ci
Hope this helps somebody else


Can ListViews have titles?

Hi,
I'd like to write some sort of "htop-like" console inside our Plastic SCM server. I guess ListView is the one to show lists of requests and open connections and things like that. But, can ListViews show titles?
Thanks!

Ok, just realized I need something like a table or a grid :-)

Good. It would be very useful to put here the code that you have implemented so that others who have the same question are also clarified. Thanks.

Of course, if I implement a view, I'll share it.
I think the best starting point for some sort of table will be the HexView, correct?

I would not like to give my opinion yet. However, you could take a look at this project where they use gui.cs and implement a ListView.
https://github.com/PowerShell/GraphicalTools/tree/master/src/Microsoft.PowerShell.ConsoleGuiTools

Another question: when I create a list and put inside a scrollbox... it doesn't really scroll completely, does it? I mean, I try to scroll horizontally but if the list is much bigger than the scrollbox, it doesn't work:
		// This is just to debug the visuals of the scrollview when small
		var scrollView2 = new ScrollView (new Rect (0, 0, 50, 4)) {
			ContentSize = new Size (120, 10),
			ShowVerticalScrollIndicator = true,
			ShowHorizontalScrollIndicator = true
		};

		var listView = new ListView(new string [] {
"Name                                      Request IP              Time      Thread   Status   Protocol  Sec  User",
"Unknown-plasticproto                           22 <IP_ADDRESS>       00:00:00  26       Proto    Plastic   None",
"CalculateMerge                                 21 <IP_ADDRESS>       00:00:00  24       Read     Plastic   None pablo"
			});

		listView.Width = Dim.Fill();
		listView.Height = Dim.Fill();

		scrollView2.Add(listView);

No matter how much I scroll, I can't go through the whole list :-)

There really is a bug and naturally in many other views. Normally, the fact that the X or Y limit is negative is not considered and starts to print at the beginning. The frame is correct, I just referred to the text that is printed on the screen. I will try to improve the ScrollView and ListView to demonstrate this.


What does I need for Slam mapping with only one rplidar?

How to make file .bag with Node /scan
How to setting .lua file
How to setting launch file

I'd recommend to start from:
Cartographer Wiki Page and adopt launch files already existing
ROS Wiki page, detailed .bag files recording tutorial :)


1.1.0 version is registered as file when integrating eureka

Use version 0.9.0, check "ConfigurationFactory # CURRENT_FILE_INSTANCE" static constant initialization, you can find "registry.typ" e value is "eureka", and use version 1.1.0 to track the value of the CURRENT_FILE_INSTANCE class, configure the collection and No "registry.type"

No "registry.type = eureka" configuration causes the default file method to be used

2020-03-19 22:05:38.789  INFO 1363 --- [           main] i.s.c.r.netty.NettyClientChannelManager  : will connect to <IP_ADDRESS>:8091
2020-03-19 22:05:38.789  INFO 1363 --- [           main] io.seata.core.rpc.netty.RmRpcClient      : RM will register :jdbc:mysql://39.106.161.xxx:3306/iot-service
2020-03-19 22:05:38.791  INFO 1363 --- [           main] i.s.core.rpc.netty.NettyPoolableFactory  : NettyPool create channel to transactionRole:RMROLE,address:<IP_ADDRESS>:8091,msg:< RegisterRMRequest{resourceIds='jdbc:mysql://39.106.161.xxx:3306/iot-service', applicationId='iot-server-service-device', transactionServiceGroup='iot-screen-tx-group'} >
2020-03-19 22:05:38.866  INFO 1363 --- [lector_RMROLE_1] i.s.core.rpc.netty.AbstractRpcRemoting   : ChannelHandlerContext(AbstractRpcRemotingClient$ClientHandler#0, [id: 0xb29f9590]) will closed
2020-03-19 22:05:38.866 ERROR 1363 --- [           main] i.s.c.r.netty.NettyClientChannelManager  : 0304 register RM failed.

io.seata.common.exception.FrameworkException: can not connect to services-server.
	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:217) ~[seata-all-1.1.0.jar:1.1.0]
	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:58) ~[seata-all-1.1.0.jar:1.1.0]
	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:34) ~[seata-all-1.1.0.jar:1.1.0]

@hengboy CURRENT_FILE_INSTANCE has always been the file, because it is used for reading configuration files, you should go to see whether can go EurekaRegistryServiceImpl.

@slievrly I encountered this problem when upgrading from 0.9.0 to 1.1.0. The value of the "registry.type" configuration is "eureka". I hit a breakpoint and did not go through "EurekaRegistryServiceImpl"

@slievrly The RegistryType obtained in the "io.seata.discovery.registry.RegistryFactory # getInstance" method is File, which returns "FileRegistryServiceImpl"

registry.conf：
registry {
  # file、nacos、eureka、redis、zk、consul
  type = "eureka"

  eureka {
    serviceUrl =<EMAIL_ADDRESS>    application = "seata-server"
    weight = "1"
  }
}

config {
  type = "file"

  file {
    name = "file.conf"
  }
}

String registryTypeName = ConfigurationFactory.CURRENT_FILE_INSTANCE.getConfig(
            ConfigurationKeys.FILE_ROOT_REGISTRY + ConfigurationKeys.FILE_CONFIG_SPLIT_CHAR
                + ConfigurationKeys.FILE_ROOT_TYPE);

The "registryTypeName" value is "file"，Expected value should be "eureka"


samples: boards: nrf: battery: fix usage without voltage divider

The nRF battery sample claims that it works without the need of a vbatt
node (voltage divider). However, this was currently not possible because
the sample code did have no means to extract the necessary ADC details
(instance and channel) from Devicetree unless vbatt was present. Similar
to other ADC samples, the zephyr,user node is used to define io-channels
property in this case. The sample README has been updated with an
example of how measurement without a voltage divider can be achieved.
Fixes #37865

cc: @gabbas1


[Curio] Add support for Curio Parachain

If this is your first time integrating, the following information is required

A short introduction about your project/ your team: Curio is a Kusama Parachain.
Curio chain is positioned primarily as a RWA Appchain - a network for the tokenization of real-world assets.
Basic information about your team: https://www.linkedin.com/company/curioag
Whitepaper: https://wiki.parachain.curioinvest.com/
Social media links:
Website: https://curioinvest.com/
Twitter: https://twitter.com/curio_invest
App: https://capitaldex.exchange/
Github: https://github.com/CurioTeam

If you want to integrate a chain, you would need to provide

Name of the blockchain: Curio
Metadata of the blockchain: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fparachain.curioinvest.com%2F#/explorer
Logo of the Curio Chain: [link]
Logo of the CGT token: [link]

Ac5HWQVcNPBKR7C9tPmmiouSymXNix7GTUXYwpRkGJkaJ8wsL9

resolved in https://github.com/Koniverse/SubWallet-Extension/issues/3020


Potential raid issue from discord's end

Hi, there was a raid in another dev server that happened due to a bot error, ending up making it look like this:

Friend sent me this explanation:
"This was an issue on Discords end not validating payloads properly in combination with bots that allow echoing any user input, both of which are not an issue in our server luckily.
more information in public announcement here:

Let me know if I need to answer more specific questions and I will, but this might be worth checking and making sure tru- i mean rob isn't affected by this.
Also, if possible, might be worth having at least one of the dev servers subscribe to the dev announcement channel from discord since they will post updates regarding bugs and issues. That's a side point though.

Edit: this is a webhook  and slash command issue, sorry for not clarifying that!

update on this:
https://gist.github.com/linuswillner/d3f3187a5b412ef3785b3a8c2d143f83
there was a statement put out here, still think the other thing is worth looking into, but yea


For some uses (e.g. Pages) support embedding HTML in Markdown

For custom pages, we should support embedding HTML directly in the markdown.
This should not be allowed elsewhere (e.g. on profiles, comments)

Decided against this as it's not in the spirit of what the pages system is for.
Instead when we have custom templates we'll allow pages to have different "blocks" on the templates. This is #61


node_modules doesn't get found when using a relative path for root

When config.root is a relative path, the call to find_node_modules won't find node_modules - the implementation of find_node_modules will return the paths so far if root isn't an absolute path, so the CACHE_DIR ends up going in process.cwd() instead of node_modules
Using an absolute path for config.root puts the CACHE_DIR in node_modules, but leads to other errors on Windows:
error: Plugin "vite:dep-pre-bundle" returned a non-absolute path: /Users/<user>/<path/to>/node_modules/.vite-electron-renderer/os.mjs (set a namespace if this is not a file path)
error: Plugin "vite:dep-pre-bundle" returned a non-absolute path: /Users/<user>/<path/to>/node_modules/.vite-electron-renderer/fs.mjs (set a namespace if this is not a file path)
error: Plugin "vite:dep-pre-bundle" returned a non-absolute path: /Users/<user>/<path/to>/node_modules/.vite-electron-renderer/electron.mjs (set a namespace if this is not a file path)
error: Plugin "vite:dep-pre-bundle" returned a non-absolute path: /Users/<user>/<path/to>/node_modules/.vite-electron-renderer/path.mjs (set a namespace if this is not a file path)

It would be great if we could keep config.root as a relative path in our config, and the plugin turns it into an absolute path when it needs to find node_modules

Thanks for the quick turnaround!


Snippet delete is not working

You can see related error in console when trying to delete a snippet:
Uncaught ReferenceError: alertify is not defined
    at HTMLButtonElement.deleteSnippetHandler (index.js?v=2.2.0:556:2)
    at HTMLButtonElement.dispatch (jquery-3.5.1.min.js:2:43090)
    at v.handle (jquery-3.5.1.min.js:2:41074)

@sadeq-qafari Thanks for reporting, it's resolved now ✅

@ehcaning your welcome.


GTN meeting (21st of February)

The next meeting of the GTN will take place during the next CoFest (#1152), on Thursday, the 21st of February
To accommodate different time zones and schedules, we will have 2 calls (with similar discussions) at 8am (UTC + 1) and 4pm (UTC + 1) via Hangout.

The detailed notes about the meetings can be find here: https://docs.google.com/document/d/1BA4TYe5snFd5866ZeF3OtuV9quhpvvfrIMn6qD2qxl0/edit?usp=sharing
Highlights of the discussion:

Migration of many tutorials from dagobah to GTM
Recent training stats

120 tutorials

7k visitors / month

200 answers on the embedded feedback form

More training events coming: hybrid, during conferences (INCUB), etc
Bridging effort with the Carpentries
Effort to improve english and automatic translation (demand)
Effort to offer data libraries for each tutorial
Effort to get working Docker images for each topics


Now using a trust strategy which accepts all certificates instead of …

…the TrustSelfSignedStrategy, which checks if the chain length is exactly 1.

Awesome, thanks for this.


Using gigabytes of memory when encoding 720p long clips

(Sorry for my bad English)
using commit 914fe8df0df9cdb87bd0f56fa8a57c8a3eab948
Footprint increases slowly and serially(about 8MB/s).
I closed it when 3 GB RAM was used by rav1e.Not a frame was encoded before closing it.
(Can encode with --limit 60, but it takes a long time before the first frame was encoded)
Is it expected?
(or anything wrong with my command?)
system: xubuntu 18.04 with sse4.1
ffmpeg -i tears_of_steel_720p.mov -an -f yuv4mpegpipe - | rav1e - --quantizer 120 -o output.ivf

Could you please test if 84c76ce11e449fc938b59215d26fc38ae0ac56b4 works in a different way?


Tooltip.position should default to "auto"

... and determine a good position for the tip based on the screen location.