Samples wanted

Please provide a short code sample in these kind of pages.
As something like:
    [Test]
    [HandlerFunctions('SendNotificationHandler')]
    procedure MyTestFunction();
    begin
      ...
    end

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

ID: d0b8d512-21a9-7235-4559-0a4067c258a7
Version Independent ID: b04c1739-a7e4-52bc-889e-7923e9059f4f
Content: HandlerMethods Property - Business Central
Content Source: dev-itpro/developer/properties/devenv-handlermethods-property.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Hello, thanks for the feedback. Sorry. we realize that the content around application testing, test codeunits, and methods, lacks information. We are working on improving this content, and more examples is definitely a goal. We hope to have some new content published soon! Thanks again.


"Gruiu" is listed in the drop-down menu

Description:
"Gruiu" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Gruiu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Gruiu, Argeș (Căteasca)".


no such module: spellfix1

Opening Plex sqlite database:
./sqlite-studio /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db --address <IP_ADDRESS>:3030
2024-06-17T07:55:25.304260Z  INFO sqlite_studio: found 82 tables in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
2024-06-17T07:55:25.304454Z  INFO Server::run{addr=<IP_ADDRESS>:3030}: warp::server: listening on http://<IP_ADDRESS>:3030
2024-06-17T07:55:35.726239Z ERROR sqlite_studio::handlers: error while getting database overview: Rusqlite("no such module: spellfix1")

Seems like the Plex SQLite database uses the spellfix1 SQLite extension. I will look into this. We might need to support the most common SQLite extensions.


Use specialised types to represent indices instead of bare integers

This PR adds new numeric types, to replace the use of bare integer types as indices into arrays and streams. This improves the readability of the code and allows the compiler to catch misuse of indices.
The u64 Indices used by FileVec and HybridIndex are replaced with a new Id<T> type associated with the type of data being indexed. Type aliases for our uses of Id<T> are added for clarity, e.g:

DeviceId is a type alias for Id<Device>.
PacketId is a type alias for Id<Id<u8>>>, because the packet index contains offsets into the packet data stream.
EndpointTransferId is a type alias for Id<Id<Id<Id<Id<u8>>>>> (!), because there is an index chain through the endpoint transfer index, endpoint transaction index, transaction index and packet index, ending in an offset into the packet data stream.

The u8 indices used in the usb module are replaced with newtypes such as DeviceAddr and EndpointNum which are tuple structs containing a u8 value. The derive_more crate is used to simplify implementing From<u8> and other required traits on these wrappers.

Rebased this to make it easier to see what's changed, now that #32 is merged.


Get prediction from trained model with only RGB and Depth image

Thank you again for your work!!
I was able to train your network with my own synthetic data (in the form of the Linemo dataset), evaluate it an visualize the result. So far so good!
Now I want to check how the trained model performs on real data. How do I do that?  So far I always feeded the netwok all the necessary data and got the result, but now I only want to give only the RGB and Depth image and get the prediceted pose out. How does it work? Do I need to train the Segnet?

I second the question, could you provide a demo code to run a 6D pose estimation on a single RGB and depth image, and perhaps visualize the result?

Thank you again for your work!!
I was able to train your network with my own synthetic data (in the form of the Linemo dataset), evaluate it an visualize the result. So far so good!
Now I want to check how the trained model performs on real data. How do I do that?  So far I always feeded the netwok all the necessary data and got the result, but now I only want to give only the RGB and Depth image and get the prediceted pose out. How does it work? Do I need to train the Segnet?

Maybe you can tell me how do you get your synthetic data?

I second the question, could you provide a demo code to run a 6D pose estimation on a single RGB and depth image, and perhaps visualize the result?

Do you have a wechat, can I make a friend with you? I have some experience in this repo, i want share you something, maybe you can share me something about ObjectDatsasetTools.

I also want to know the code for that.

I am also working on adapting this to another dataset, so I've been trying to interpret the code myself.
But to ask the latter question: Yes, you need to train some form of segmentation network  on your dataset. In the implementation/paper they use the same segmentation mask as from the PoseCNN paper, in order to make a fair comparison of the performance.
If you read in e.g. eval_linemod.py you can see that pose estimations are performed by the following call:
pred_r, pred_t, pred_c, emb = estimator(img, points, choose, idx)
, where estimator is an instance of the PoseNet model you have trained. If you look where img, points, choose, idx comes from (dataset.py), you will find that this is loading the segmentation from:
if self.mode == 'eval':
         self.list_label.append('{0}/segnet_results/{1}_label/{2}_label.png'.format(self.root, '%02d' % item, input_line))

@SebastianGrans Hi, I was wondering if you figured out how to do this. I am also trying to get a prediction from just RGB, Depth data. I am doing it on objects from the YCB dataset (so I don't need to do any training of my own), but am still struggling to figure out how to obtain the points, choose, idx, that I need to pass into the estimator. Any help would be greatly appreciated!

did anyone understand the meaning of choose ? I am trying to adapt this to a custom dataset as well.
thanks for any help

Thank you again for your work!! I was able to train your network with my own synthetic data (in the form of the Linemo dataset), evaluate it an visualize the result. So far so good! Now I want to check how the trained model performs on real data. How do I do that?  So far I always feeded the netwok all the necessary data and got the result, but now I only want to give only the RGB and Depth image and get the prediceted pose out. How does it work? Do I need to train the Segnet?

Hey since it seemed that you got it running with your own synthetic dataset: How do you need to label the data and provide it to the network? I want to create a synthetic dataset of my own object and train the network with it


e2e-simple complains about injection & fortio

https://circleci.com/gh/istio/istio/24851?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

This affects e2e-simple automated tests, please fix with priority.

@costinm was making it work on circle - I don't know that it's ready/working (or that that build is blocking yet), the PR may just need rebase ?

https://circleci.com/gh/istio/istio/tree/master seems green so I would think it's just a PR that needs rebase ? will close for now to avoid noise but if you see a recent or rebased PR that has the issue, please reopen


az network list-service-tags requires subscription level rights

Describe the bug
Command Name
az network list-service-tags
Errors:
Returns empty list if the user does not have subscription level rights. I didn't debug which rights are required but compared two logins; one that has Service Administrator to a subscription and other that does not have any role.
To Reproduce:

az network list-service-tags --location westeurope

Expected Behavior
Listing service tags doesn't of public Azure services does not require subscription level rights.
Environment Summary
macOS-10.15.3-x86_64-i386-64bit
Python 3.8.1
Shell: bash

azure-cli 2.0.80 *

Extensions:
azure-devops 0.17.0

add to S168

Based on swagger spec and python sdk, subscription id is a required argument. I invited service team to take a look.

Will take a look

@allegradomel please let us know any feedback.

Any updates on this issue?

@allegradomel any update?

Quick update: we're still looking into this - I have passed it on to the dev team

My finding was that this was done by design - you must have some read access to the subscription in able to receive results from the command. Please let me know if you have any other questions, @EitZei
#please-close

I'm running into a similar issue even when I have read access at the subscription level.  I can't pull back AzureCloud tags.  It ends at WindowsVirtualDesktop tags.
Also, why should it be required to have read access at the subscription level to pull back publicly known IPs?  You provide that info in a weekly file that requires no authentication, but you can't provide it without having read access at the subscription level?

@allegradomel I understand this is by design, but apparently this is bad design. :)
I fully support @matthewfrye here.

@mgrabarz @matthewfrye @allegradomel
How exactly do you give read access at the subscription level to an App account? I have my account set as Owner in the scope of "This resource", but I cannot get the AzureCloud tags in the response body.

For this API function to be of value it needs to output the same information as the publicly available file (which is not behind a subscription).
I also have owner permissions on the subscription used to call the API, I can't get the Azure Cloud tags either & I've noted that the "changeNumber: 67" in the response body is extremely outdated when compared to the publicly available file (changeNumber: 122).


set up CI

Given filesystem munging,  Appveyor (or some other windows-based CI) would also be useful.

We have CI at Travis. +1 for Windows (~= Appveyor).

https://ci.appveyor.com/project/whit537/filesystem-tree-py
@pjz Want to make a PR for Appveyor config over here based on what we're doing in Aspen?

I could add the config file, but I don't have perms to actually have appVeyor pay attention to this repo.  You'll have to do that bit.  Which is why I left it as an issue and didn't submit a PR.

Sorry, I should have been more explicit: I've set up the project at AppVeyor, though the link above is under whit537 and is 404 because I've since reconfigured for gratipay. Here's the new URL:
https://ci.appveyor.com/project/gratipay/filesystem-tree-py
I see an quick fail with Specify a project or solution file. The directory does not contain a project or solution file. That sounds like if you add the config file and push we should see a build.

Fixed with #14


Error in the procedure

In reference to:
"If you are prompted to enter a user name and password for AWTargetAppID it may be because when you created the SharePointGroupAccount SQL login, you did not uncheck the User must change password at next login option."
I'm asked SQL user name and password, but not for the reason above. I can use SMSS to logon to the DB with these credentials. What can be the reason for this problem?
I have followed the procedure 3 times, on 2 completely separate systems, one SP2016 and one SP2019, the problem is the same. In addition, after creating the external list and tring to access it, this error occurs:
"Unable to render the data. If the problem persists, contact your web server administrator.
Correlation ID:0fdee59e-6e49-000c-364d-f859f0032449"
From the SharePoint log:
	Line 38316: 06/12/2019 14:40:23.44 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Name=Request (POST:http://sp2019/_layouts/15/inplview.aspx?List={4DF8080C-8956-4677-BF10-7CBEBC360E42}&View={F4F4A46B-59EC-4ACF-87C7-DC8B697BF572}&ViewCount=0&IsXslView=TRUE&IsCSR=TRUE&ListViewPageUrl=http://sp2019/Lists/AdventureWorksCustomers/Read%252520List.aspx)	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38317: 06/12/2019 14:40:23.44 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Asp Runtime                   	avwhz	Medium  	SPRequestModule.BeginRequestHandler End, SP Build Version: '16.0.10345.12101'	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38318: 06/12/2019 14:40:23.44 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Claims Authentication         	bjkuz	Medium  	Using input cookie name. CookieName: 'FedAuth'.	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38319: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	DistributedCache              	air4a	Monitorable	Token Cache: Failed to get token from distributed cache. Key: '0).w|s-1-5-21-174240664-306433032-964745054-500'.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread).	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38320: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	DistributedCache              	air4b	Monitorable	Token Cache: Reverting to local cache to get the token. Key: '0).w|s-1-5-21-174240664-306433032-964745054-500'.	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38321: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Audience Validation           	a9fy6	Medium  	The absolute uri validation succeeded. AudienceUri: 'http://sp2019/'.	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38322: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Application Authentication    	bjvyg	Medium  	SPApplicationAuthenticationModule: Clear outgoing token context from SpThreadContext 	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38323: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Application Authentication    	bnksk	Medium  	SPApplicationAuthenticationModule: Clear cross tenant token context from SpThreadContext 	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38324: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Asp Runtime                   	avwh6	Medium  	SPRequestModule.PostAuthenticateRequestHandler Begin	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38325: 06/12/2019 14:40:23.45 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Authentication Authorization  	agb9s	Medium  	Non-OAuth request.  SPSite: '6218da2e-cb7e-46a8-8ce0-591947afdd7b', Source: 'SiteWithoutSiteSubscription'.	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38337: 06/12/2019 14:40:23.46 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Claims Authentication         	a6oo3	Medium  	Created claims operation context from site object. SPSite: '6218da2e-cb7e-46a8-8ce0-591947afdd7b', Source: 'SiteWithoutSiteSubscription'.	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38338: 06/12/2019 14:40:23.46 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Claims Authentication         	anvuv	Medium  	Context has no SMTP/UPN claims. IdentityContext: '{"nameid":"s-1-5-21-174240664-306433032-964745054-500","nii":"urn:office:idp:activedirectory","upn":"mcurko@mons.hr","userId":"0#.w|mons\\mcurko","appliesTo":"http:\/\/sp2019\/"}'	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38339: 06/12/2019 14:40:23.46 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Site=/	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38340: 06/12/2019 14:40:23.47 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Asp Runtime                   	avwhv	Medium  	SPRequestModule.PreRequestExecuteAppHandler End	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38341: 06/12/2019 14:40:23.49 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	General                       	99a4	High    	External Lists: Using the default Filter settings for Finder 'Read Item'in Entity 'AWcustomers' of EntityNamespace 'http://sp2019'. This will likely result in significant performance degradation.  Stack trace    at Microsoft.SharePoint.SPListDataSource.GetEntityInstanceEnumerator(XmlNode xnMethodAndFilters)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstancesInternal(XmlDocument xdQueryView, Boolean fFormatDates, Boolean fUTCToLocal, String firstRowId, Int32 firstRowIndex, Boolean fBackwardsPaging, String& bdcidFirstRow, String& bdcidNextPageRow, List`1& lstColumnNames, Dictionary`2& dictColumnsUsed, List`1& mapRowOrdering, List`1& lstEntityData)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstances(XmlDocument xdQueryView, Boolean fFormatDates, Boolean fUTCToLocal, String firstRowId, Int32 firstRowIndex, Boo...
	Line 38342: 06/12/2019 14:40:23.49*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	General                       	99a4	High    	...es.InplaceViewEditor.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotif...
	 Will not retrieve Thumbprint 759B9FE03FA5530B43DF9EA0968B51BD200F83CD from cache	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38350: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	General                       	bojl7	High    	[Forced due to logging gap, cached @ 06/12/2019 14:40:23.49, Original Level: VerboseEx] SPMonitoredScope {0} dispose is completing	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38351: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Usage Infrastructure          	brsbw	High    	[Forced due to logging gap, Original Level: VerboseEx] Usage Event {0} of type {1} is disabled for CIL	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38352: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Monitoring                    	b4ly	High    	Leaving Monitored Scope: (SPListDataSource.GetFilteredEntityInstances: EntityNamespace 'http://sp2019' Entity 'AWcustomers'.) Execution Time=60.5444; CPU Milliseconds=10; SQL Query Count=2; Parent=EnsureListItemsData	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38353: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Monitoring                    	b4ly	High    	Leaving Monitored Scope: (EnsureListItemsData) Execution Time=61.2859; CPU Milliseconds=10; SQL Query Count=2; Parent=Request (POST:http://sp2019/_layouts/15/inplview.aspx?List={4DF8080C-8956-4677-BF10-7CBEBC360E42}&View={F4F4A46B-59EC-4ACF-87C7-DC8B697BF572}&ViewCount=0&IsXslView=TRUE&IsCSR=TRUE&ListViewPageUrl=http://sp2019/Lists/AdventureWorksCustomers/Read%252520List.aspx)	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38354: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	Error while executing web part: Microsoft.BusinessData.Infrastructure.BdcException: The shim execution failed unexpectedly - Access is denied to the Secure Store Service.. ---> Microsoft.Office.SecureStoreService.Server.SecureStoreServiceException: Access is denied to the Secure Store Service.     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.GetRestrictedCredentials(Guid rawPartitionId, String applicationId)     at Microsoft.Office.SecureStoreService.Server.SecureStoreProvider.GetRestrictedCredentials(String appId)     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbConnectionManager.GetConnection()     at Microsoft.SharePoint.Busine...
	Line 38355: 06/12/2019 14:40:23.55*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	...ityRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs, IFilterCollection filters)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteFiltered(IEntity this, IFilterCollection filterCollection, IMethodInstance methodInstanceToExecute, ILobSystemInstance lobSystemInstance)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.<FindFiltered>b__4(IEntity e, IMethodInstance mi, IFilterCollection fc, ILobSystemInstance lsi)     at Microsoft.SharePoint.BusinessData.Runtime.EntityInstanceEnumeratorFactory.CreateEntityInstanceEnumerator(IEntity entity, IMethodInstance methodInstance, IFilterCollection filters, ILobSystemInstance lobSystem...
	Line 38356: 06/12/2019 14:40:23.55*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	...oft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments selectArguments, String aggregateString, Boolean wantReturn, BaseXsltListWebPart webpart, SPListItem& listItem, SPListItemCollection& listItems, String[]& fieldList)     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38357: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a2	High    	InnerException 1: Microsoft.Office.SecureStoreService.Server.SecureStoreServiceException: Access is denied to the Secure Store Service.     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.GetRestrictedCredentials(Guid rawPartitionId, String applicationId)     at Microsoft.Office.SecureStoreService.Server.SecureStoreProvider.GetRestrictedCredentials(String appId)     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbConnectionManager.GetConnection()     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbSystemUtility.ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, Object[] args, IExecutionContext c...
	Line 38358: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	General                       	99a4	High    	External Lists: Using the default Filter settings for Finder 'Read Item'in Entity 'AWcustomers' of EntityNamespace 'http://sp2019'. This will likely result in significant performance degradation.  Stack trace    at Microsoft.SharePoint.SPListDataSource.GetEntityInstanceEnumerator(XmlNode xnMethodAndFilters)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstancesInternal(XmlDocument xdQueryView, Boolean fFormatDates, Boolean fUTCToLocal, String firstRowId, Int32 firstRowIndex, Boolean fBackwardsPaging, String& bdcidFirstRow, String& bdcidNextPageRow, List`1& lstColumnNames, Dictionary`2& dictColumnsUsed, List`1& mapRowOrdering, List`1& lstEntityData)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstances(XmlDocument xdQueryView, Boolean fFormatDates, Boolean fUTCToLocal, String firstRowId, Int32 firstRowIndex, Boo...
	Line 38359: 06/12/2019 14:40:23.55*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	General                       	99a4	High    	....InplaceViewEditor.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotific...
	Line 38360: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	Business Connectivity Services	Business Data                 	ab8jz	Medium  	IsSystemTypeEnabled[Database] : True	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38361: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	Business Connectivity Services	Business Data                 	eec1	Medium  	Chose SqlServer database access provider	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38362: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	Business Connectivity Services	Business Data                 	c73o	Medium  	Initialized DbSystemUtility for LobSystemInstance with Id '149'	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38363: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	Business Connectivity Services	Business Data                 	c73p	Medium  	Db AuthN Mode: 'RdbCredentials' Db Provider: 'SqlServer'	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38364: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	Business Connectivity Services	Business Data                 	f8dk	Medium  	Checking for current connection to SystemInstance: AdventureWorks2017	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38365: 06/12/2019 14:40:23.55 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Topology                      	e5mc	Medium  	WcfSendRequest: RemoteAddress: 'https://sp2019:32844/489ae56c2e9a49aab6bee2dfb6636c33/SecureStoreService.svc/https' Channel: 'Microsoft.Office.SecureStoreService.Server.ISecureStoreServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/2009/06/securestoreservice/ISecureStoreServiceApplication/GetRestrictedCredentials' MessageId: 'urn:uuid:2146fc10-a18e-4489-845a-316b0ef3ec59'	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38366: 06/12/2019 14:40:23.58 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Monitoring                    	b4ly	High    	Leaving Monitored Scope: (SPListDataSource.GetFilteredEntityInstances: EntityNamespace 'http://sp2019' Entity 'AWcustomers'.) Execution Time=25.7071; CPU Milliseconds=4; SQL Query Count=2; Parent=EnsureListItemsData	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38367: 06/12/2019 14:40:23.58 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Monitoring                    	b4ly	High    	Leaving Monitored Scope: (EnsureListItemsData) Execution Time=25.8284; CPU Milliseconds=4; SQL Query Count=2; Parent=Request (POST:http://sp2019/_layouts/15/inplview.aspx?List={4DF8080C-8956-4677-BF10-7CBEBC360E42}&View={F4F4A46B-59EC-4ACF-87C7-DC8B697BF572}&ViewCount=0&IsXslView=TRUE&IsCSR=TRUE&ListViewPageUrl=http://sp2019/Lists/AdventureWorksCustomers/Read%252520List.aspx)	0fdee59e-6e49-000c-364d-f859f0032449
	Line 38368: 06/12/2019 14:40:23.58 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	Error while executing web part: Microsoft.BusinessData.Infrastructure.BdcException: The shim execution failed unexpectedly - Access is denied to the Secure Store Service.. ---> Microsoft.Office.SecureStoreService.Server.SecureStoreServiceException: Access is denied to the Secure Store Service.     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.GetRestrictedCredentials(Guid rawPartitionId, String applicationId)     at Microsoft.Office.SecureStoreService.Server.SecureStoreProvider.GetRestrictedCredentials(String appId)     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbConnectionManager.GetConnection()     at Microsoft.SharePoint.Busine...
	Line 38369: 06/12/2019 14:40:23.58*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	...ityRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs, IFilterCollection filters)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteFiltered(IEntity this, IFilterCollection filterCollection, IMethodInstance methodInstanceToExecute, ILobSystemInstance lobSystemInstance)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.<FindFiltered>b__4(IEntity e, IMethodInstance mi, IFilterCollection fc, ILobSystemInstance lsi)     at Microsoft.SharePoint.BusinessData.Runtime.EntityInstanceEnumeratorFactory.CreateEntityInstanceEnumerator(IEntity entity, IMethodInstance methodInstance, IFilterCollection filters, ILobSystemInstance lobSystem...
	Line 38370: 06/12/2019 14:40:23.58*	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	89a1	High    	...oft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments selectArguments, String aggregateString, Boolean wantReturn, BaseXsltListWebPart webpart, SPListItem& listItem, SPListItemCollection& listItems, String[]& fieldList)     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.SPList.RenderListData(XsltListViewWebPart xslWebPart, SPView view, TextWriter output)     at Microsoft.SharePoint.ApplicationPages.InplaceViewEditor.RenderListView()     at Microsoft.SharePoint.ApplicationPages.InplaceViewEditor.Execute(String strCmd)     at Microsoft.SharePoint.Ap...
	Line 38371: 06/12/2019 14:40:23.58 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	Web Parts                     	ah0xe	High    	InnerException 1: Microsoft.Office.SecureStoreService.Server.SecureStoreServiceException: Access is denied to the Secure Store Service.     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.GetRestrictedCredentials(Guid rawPartitionId, String applicationId)     at Microsoft.Office.SecureStoreService.Server.SecureStoreProvider.GetRestrictedCredentials(String appId)     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbConnectionManager.GetConnection()     at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbSystemUtility.ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, Object[] args, IExecutionContext ...
	 Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server : net.tcp://SP2019:22233    ...
	Line 40368: 06/12/2019 14:41:33.44 	w3wp.exe (0x2694)                       	0x0068	SharePoint Foundation         	DistributedCache              	air4g	Monitorable	Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server : net.tcp://SP2019:22233     at Microsoft.ApplicationServer.Caching.DataCache.ThrowEx...

---
#### Document Details

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

* ID: d570260c-b65d-7d40-9bea-246e86c1fe95
* Version Independent ID: df533eb7-e1e1-5ef2-1658-11f5f24062b4
* Content: [Deploy a Business Connectivity Services on-premises solution in SharePoint Server](https://docs.microsoft.com/en-us/sharepoint/administration/deploy-an-on-premises-solution#feedback)
* Content Source: [SharePoint/SharePointServer/administration/deploy-an-on-premises-solution.md](https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/blob/live/SharePoint/SharePointServer/administration/deploy-an-on-premises-solution.md)
* Product: **sharepoint-server-itpro**
* GitHub Login: @MikePlumleyMSFT
* Microsoft Alias: **mikeplum**

Since you're looking for technical help, I would suggest you post this on the TN forums as this repo is for documentation issues.
https://social.technet.microsoft.com/Forums/sharepoint/en-US/home?forum=SP2019.

Access is denied to the Secure Store Service.

That is your issue, though.

@mcurko Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


Add more disposable providers

from the following sources(see https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.json):

http://torvpn.com/temporaryemail.html
http://www.bloggingwv.com/big-list-of-disposable-temporary-email-services/
http://www.warriorforum.com/main-internet-marketing-discussion-forum/147524-list-temporary-email-services-you-may-want-block-your-autoresponder-little-rant.html
http://xenforo.com/community/threads/ban-temporary-email-addresses.5461/
Added by @fgribreau
Added by @watadarkstar from http://www.fakemailgenerator.com/
Added by @vikbez from http://www.yopmail.com
Added by @nicolasbruel
Added from http://spamdecoy.net
Added from http://10minutemail.com
Added by @gierschv
Added by @fgribreau from https://raw.githubusercontent.com/lavab/disposable/master/domains.json
Added by @fgribreau from https://raw.githubusercontent.com/martenson/disposable-email-domains/master/disposable_email_blacklist.conf
Added by @fgribreau from https://gist.github.com/adamloving/4401361

Thanks!


Subscriptions Videos

Hi, is it possible somehow, to view subscriptions only, simply sorted by newest.
Because with playlists, its a bit stupid somehow for me, to go into youtube first, add all the newest videos that i subscribed to, to an playlist etc...
Im wondering that no one else requested this.
Otherwise the app is working really great! Just a bit stupid in my case with subscriptions xD
Thanks Aayush for this app anyway!!

I can't promise anything, but I'll definitely look into it!
Thanks a lot for the support ❤
You da best

https://github.com/Elijas/auto-youtube-subscription-playlist-2
Im using this now as workaround, works actually good and a great solution in the meantime for everyone that wish his subscriptions either.
Just one thing to this, you have to tick in the playlist sorting options, "new videos by release ontop" and nativeplayer will show it then the same way.
Thx again aayush!


[BUG] Confidential Ledger Authorization Error

Library name and version
Azure.Security.ConfidentialLedger 1.0.0-beta.2
Describe the bug
I have run the same code in documentation few days back it was working perfectly, yesterday and today facing this error knowing that my user is global admin and admin of the confidential ledger resource and nothing changed in the azure settings. What could have changed?
Azure.RequestFailedException: 'Not allowed to call POST /app/transactions
Status: 403 (Forbidden)
ErrorCode: NotAllowed
Expected behavior
Expected to commit the data to confidential ledger and return the transaction id.
Actual behavior
Azure.RequestFailedException: 'Not allowed to call POST /app/transactions
Status: 403 (Forbidden)
ErrorCode: NotAllowed
Reproduction Steps
Used this code in console app:
string ledgerId = "MyConfLedger1";
Uri identityServiceUri = new Uri("https://identity.confidential-ledger.core.azure.com");
        var identityClient = new ConfidentialLedgerIdentityServiceClient(identityServiceUri);

        Response response = identityClient.GetLedgerIdentity(ledgerId);
        var eccPem = JsonDocument.Parse(response.Content)
            .RootElement
            .GetProperty("ledgerTlsCertificate")
            .GetString();

        X509Certificate2 ledgerTlsCert = new X509Certificate2(Encoding.UTF8.GetBytes(eccPem));
        X509Chain certificateChain = new X509Chain();
        certificateChain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
        certificateChain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot;
        certificateChain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllowUnknownCertificateAuthority;
        certificateChain.ChainPolicy.VerificationTime = DateTime.Now;
        certificateChain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(0, 0, 0);
        certificateChain.ChainPolicy.ExtraStore.Add(ledgerTlsCert);

        bool CertValidationCheck(HttpRequestMessage httpRequestMessage, X509Certificate2 cert, X509Chain x509Chain, SslPolicyErrors sslPolicyErrors)
        {
            bool isChainValid = certificateChain.Build(cert);
            if (!isChainValid) return false;

            var isCertSignedByTheTlsCert = certificateChain.ChainElements.Cast<X509ChainElement>()
                .Any(x => x.Certificate.Thumbprint == ledgerTlsCert.Thumbprint);
            return isCertSignedByTheTlsCert;
        }

        var httpHandler = new HttpClientHandler();
        httpHandler.ServerCertificateCustomValidationCallback = CertValidationCheck;

        var options = new ConfidentialLedgerClientOptions { Transport = new HttpClientTransport(httpHandler) };
        var ledgerClient = new ConfidentialLedgerClient(new Uri("https://MyConfLedger1.confidential-ledger.azure.com"), new DefaultAzureCredential(), options);

Error here -->            Response postResponse = ledgerClient.PostLedgerEntry(
RequestContent.Create(
new { contents = "Some test data" }));
Environment
Visual studio 19
C# project with .NET 5
Azure.Security.ConfidentialLedger 1.0.0-beta.2

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Any updates on this?
I'm receiving the exact error after following the documentation to create a service principal for app authentication.
Azure.RequestFailedException: Not allowed to call POST /app/transactions
Status: 403 (Forbidden)
ErrorCode: NotAllowed

Hi @mattmoodytunecoin - Can you reproduce this with the latest version? https://www.nuget.org/packages/Azure.Security.ConfidentialLedger/1.1.0-beta.1

Hi @mattmoodytunecoin - Can you reproduce this with the latest version? https://www.nuget.org/packages/Azure.Security.ConfidentialLedger/1.1.0-beta.1

Apologies, updated my original post to include the version of the library I was using, which in fact was the one you mentioned.

I believe you need to bootstrap at least one principal ObjectId or certificate via ARM to assign access, and then those identities can add users via the API. Here is an example of what the ARM template looks like for assigning access.

I believe you need to bootstrap at least one principal ObjectId or certificate via ARM to assign access, and then those identities can add users via the API. Here is an example of what the ARM template looks like for assigning access.

That worked for me! Using the link you provided with this documentation I was able to get past the authorization error.
👍

Thanks for confirming. I've created the following issue to track an improvement to the readme docs concerning this issue. #31056


Doesn't build with Xcode  8.3.2

I think there is some configuration step that I'm not doing ?
<unknown>:0: error: no such file or directory: '/Users/ahalls/Work/github/IBM-OpenWhisk/incubator-openwhisk-xcode/ZipArchive/SSZipArchive/SSZipArchive+Swift.swift'

You'll need ZipArchive.
Further down in the README::
There is a dependency on an ObjC project ZipArchive. OS X CLI targets and frameworks don't play together very well. The "easiest" way to reference it is to add the code manually to WhiskSwiftTools. Clone ZipArchive and install per the documentations on the ZipArchive readme. Copy the SSZipArchive folder into the project folder and link to the libz library. WhiskSwiftTools includes bridging header file you can reference.```

I tried to follow your instructions here @paulcastro and got totally lost.  I notice that ZipArchive can be pulled in via Carthage.  Could that alleviate some of the problems if this project had a Cartfile?

I also think things have changed in the ZipArchive project since the WhiskSwiftTools.xcproject file has been created as the aes and minizip directories are no longer parallel to each other.  The ZipArchive project has aes directory UNDER minizip.

Yes, it does appear that ZipArchive has changed.  I downloaded ZipArchive version 1.7 just now and I'm able to build wsktools.

so I could just download the 1.7 source zip, unzip into the incubator-openwhisk-xcode directory git clone created (change name of directory from ZipArchive-1.7 to ZipArchive), then open the WhiskSwiftTools.xcproject and do command+B and it will build?   (might be forgetting part with adding the libz library..)

Those are the steps that worked for me.

Closing as project is being archived.


Make cloud functions asynchronous

Description
Right now, the cloud function for retrieval and deletion are synchronous. We can try to make everything asynchronous in order no to block the thread

Cloud function are actually asynchronous. Closing the issue


Use the recommended version instead of latest

Our customers typically copy-paste the doc when configuring a preview environment.
Having the recommended version for the version of the docs they are looking at should reduce the likelihood of them using the wrong CLI version.

It would be cool if docusaurus could pull the version from something defined in package.json, or in a version-cliVersion map, but couldn't figure out a way. That could be done in a later PR.

It would be cool if docusaurus could pull the version from something defined in package.json, or in a version-cliVersion map, but couldn't figure out a way. That could be done in a later PR.

@rlamana could you investigate the best way to have global variables? it would help with different settings like kubernetes and cli versions in our samples

@pchico83 it is using javascript, so it is a matter of just importing a file where the variables are set and use them. Should be simple to do I think. Where do we want to set these variables values? In the package.json? Env vars?

@pchico83 it is using javascript, so it is a matter of just importing a file where the variables are set and use them. Should be simple to do I think. Where do we want to set these variables values? In the package.json? Env vars?

@rlamana whatever works better for you. If you can add a sample for KUBERNETES_MIN_VERSION and KUBERNETES_MAX_VERSION I can create independent issues to use variables for other values:
https://github.com/okteto/docs/blob/main/src/content/get-started/cloud-provider-guides/eks.mdx#L33

@pchico83 can we merge this in the meantime?

@pchico83 can we merge this in the meantime?

@rberrelleza check my comments. We recommend using latest for github actions, and the tag stable for the okteto/okteto image in GitLab

@pchico83 why do we need two different tags for github actions and gitlab?

@pchico83 why do we need two different tags for github actions and gitlab? Could we unify to keep things simpler?

@rberrelleza it's legacy. We should standarize in stable, which is our cli release channel


Vulkan NullPointerException on Ubuntu with AMD Radeon

Version
3.3.0 (nightly)
Platform
Linux x64
JDK
openjdk version "11.0.14" 2022-01-18
Module
Vulkan
Bug description
LWJGL application running Vulkan code on Ubuntu (AMD) throws a NullPointerException here:
java.lang.NullPointerException
	at org.lwjgl.system.Checks.check(Checks.java:188)
	at org.lwjgl.vulkan.VK13.vkCmdSetDepthTestEnable(VK13.java:3011)

The exact same code runs fine on Windows 10 and 11 with Nvidia and AMD respectively.
Using version 3.3.1.
It looks like it is stemming from this code in VK13.java:
public static void vkCmdSetDepthTestEnable(VkCommandBuffer commandBuffer, @NativeType("VkBool32") boolean depthTestEnable) {
        long __functionAddress = commandBuffer.getCapabilities().vkCmdSetDepthTestEnable;
        if (CHECKS) {
            check(__functionAddress);
        }
        callPV(commandBuffer.address(), depthTestEnable ? 1 : 0, __functionAddress);
    }

Under what circumstances would commandBuffer.getCapabilities().vkCmdSetDepthTestEnable; return null?
Stacktrace or crash log output
No response

Your issue is somewhat inconsistent. The title says "Vulkan NullPointerException on Ubuntu with AMD Radeon"
however in your text you are writing "LWJGL application running Vulkan code on Apple M1 chip (MacOS) throws a NullPointerException here".
Which OS does the error occur? Linux/Ubuntu or macOS?
If macOS, then note that macOS does not provide a Vulkan 1.3 implementation natively. When you run your Vulkan/LWJGL3 application under macOS, the adaptation layer https://github.com/KhronosGroup/MoltenVK is being used, which translates Vulkan 1.1 API calls to Metal.
MotelVK does not provide a Vulkan 1.3 implementation. Only Vulkan 1.1, and that also with certain restrictions.
So, the MoltenVK Vulkan instance simply does not expose that function (i.e. "dynamic graphics pipelines").

My apologies, that was a copy and paste error from a previous issue submission. In this case it is indeed Ubuntu (original post updated).
Thanks for the information regarding MoltenVK for MAC, as that likely applies to my other issue.
With regards to Linux, do you have any advice on this NullPointerException?
Thanks.

Hey @cacophany53,
The most likely reason is that the AMD driver on Linux does not support Vulkan 1.3 (or did not when you tested it). When using versioned APIs like OpenGL or Vulkan, applications should examine the flags in the "capabilities" classes before using the corresponding core or extension functionality. In this case, see the VKCapabilitiesDevice.Vulkan13 flag.


Self test in fips mode

Hi,
Can anyone suggest on ways to corrupt the self test KATs programatically?

The fipsinstall command can do this.  Look at what it does.

Thanks for the reply.
Is there a way to register an application callback which can be hooked inside openSSL code ?
I'm looking to get the results of OSSL_SELF_TEST_onend and OSSL_SELF_TEST_oncorrupt_byte APIs in my callback API.

Yes, look at the fipsinstall source code for details...


chore: fail asciidoctor if there are warnings

@sterobin @bhardesty This one is there for a while. Number of scripts were updated including modular docs.
They are working locally. If you can take look into this


rustfmt all

Since many development environments automatically format the code - any
minor edits in the file lead to a change in the entire file. Therefore
it's easier to format all files at once.

It's so strange why Cargo fmt doesn't format and rustfmt does.

It's so strange why Cargo fmt doesn't format and rustfmt does.

the if_hyper macro breaks the formatting. rustfmt doesn't see the modules if it gets only pointed to lib.rs.

It's so strange why Cargo fmt doesn't format and rustfmt does.

the if_hyper macro breaks the formatting. rustfmt doesn't see the modules if it gets only pointed to lib.rs.


enableNestedDataAccess option to disable nested data when needed #909

also added 2 tests for  option enableNestedDataAccess : false :

making sure that table is not generated same way like when with  enableNestedDataAccess : true
table is correctly omitting nested data.

Coverage increased (+0.07%) to 76.508% when pulling dcd49b52fd04333d11f734493fcca0fba551a22f on domind:fix-for-#909--nested-data-access into 4f836096a56be93ee1322f3c98cbaca485f0b064 on gregnb:master.

Hello @domind. Can you explain the use case for shutting off this functionality via an option? It was my thinking that one would simply not use the dot notation if he/she did not want to use nested data.

Hi @gabrielliwerant you proposed to add this as an option

I'm open to suggestions about how to work around this. It's a little messy, but we could add an option like enableNestedDataAccess which could be flagged on or off to enabled/disable parsing the dot.

Right now, by default nested data are enabled, so if there is a dot in name data are not displayed.

@domind Ok, thanks for reminding me. So, another way to do this would be to allow an option for choosing which character to use as a separator for objects. The advantage of this approach would be that there would be a way for someone to use this feature even if there are dots in the names, instead of having to choose between enabling/disabling the feature, What do you think?

Sounds reasonable. Should we still keep name "enableNestedDataAccess" in such case? Guess default will be enabled with dot as separator, but should we allow to disable it completely?
Might be to rename it to nestedDataSeparator and it would take string value, and "disable" string would turn it off. Should I rewrite it that way?

@gabrielliwerant - arranged following:

changed enableNestedDataAccess to string, so now nested data can use any separator,
default value in case option is omitted is set to '.' (processing of nested data enabled)
to disable - you need to pass empty string enableNestedDataAccess : ''

Thank you for putting this together!
I've gone ahead and merged this into v3 and added some documentation in the README.
This feature was previously mentioned only in one example, and that was for something else and wasn't even linked on the README page. So it was kind of a hidden feature. I actually think having it on by default is bad since it leads to confusing bugs as seen in https://github.com/gregnb/mui-datatables/issues/909. I think I'm going to set it to be off by default in v3. It's a breaking change, but I'll have it documented in the write-up for v2 to v3.


Allow to use single quotes in import

It doesn't work with single quotes now. @import 'folder/*' throw an error.
I've made the PR to let you check my commit to be sure that everything is ok.

Looks good, thanks @denisborovikov!

Could you update the npm package?

0.3.1 should be up-to-date on npm. let me know if its not for some reason


User relation

I need a function in my User model e.g.:
public function posts() {
    return $this->hasMany('App\Post');
  }

And I want to use it this way.
$user->albums
Where $user is equal to authenticated user.
How can I do that and what is the best way to get authenticated user in order to use it anywhere?

$user = App::make('authenticator')->getLoggedUser();
This will return you currently logged in user


SSL errors on Travis

I'm switching a small project of mine over to trust. Builds on Travis are failing when they didn't previously. I'm getting SSL errors when testing the crate with TARGET=*-unknown-linux-* on Travis.  darwin is fine, and the tests don't run on BSD or Windows. Testing locally on debian and arch linux also works.
It looks like reqwest can't find certificates:
Error { kind: Io(Error { repr: Custom(Custom { kind: Other, error: Ssl(ErrorStack([Error { code: 336134278, library: \"SSL routines\", function: \"ssl3_get_server_certificate\", reason: \"certificate verify failed\", file: \"s3_clnt.c\", line: 1264 }])) }) }), url: Some(\"https://inspirehep.net/search?of=hx&p=Higgs%3A2014aqa\")

Example log on Travis
Line where the panic happens
This looks like a related issue: https://github.com/japaric/trust/issues/55 . It's not exactly same though; everything seems to build but there is an error during tests.
Thanks for this project!

Disabling https is a temporary work around: https://travis-ci.org/musoke/inspirer/builds/271306689
Possibly also related: https://github.com/seanmonstar/reqwest/issues/70

Interesting: the errors are not from running the cross command itself but from running the test suite within the cross / Docker environement. Hmm, maybe the ca-certficates inside the Docker images need to be updated. I can test that locally. If that works making a new Cross release should fix all the trust instances.

I tried a few things here: just rebuilding the Docker image as it is, bumping the OpenSSL version, basing the Docker image on a more recent OS (12.04 -> 14.04) but I still see the same problem.
I must admit that I don't understand the root of the problem. A similar problem was reported in japaric/cross#119; in that case, a binary compiled with Cross doesn't work when executed on the host (not in the Cross environement) because it panics with some SSL related error.

Thanks for looking into this!

Thanks @musoke, I too had this problem and worked around it adding to the Cargo.toml
[dependencies.libinspire]
git = "https://github.com/musoke/libinspire"
branch = "no-https"

Spoke too soon! When I download the release file produced by travis I still get the same error!

This issue seems to have been resolved.  Don't know how or when.


Teleport command problem and /keys view command error

Spark link
No response
Plugin Version
3.5.5
Server Version
1.21
Server Platform
Paper
Describe the bug
Teleport command says there is no location even that location exists in Locations.yml.

/keys view command gives unexpected error when player name is not provided

https://mclo.gs/jArdxnN
Note: This was a fresh new installation so I thought that unexpected error is because I didnt have any keys in data.yml but this error is thrown even after giving virtual key. After testing I found out its because I didnt provide player name because I though it will use my name (the name of player who user the command). The same problem is with /crates teleport command when the number is not provided.
Cosmetic issue: In the default messages.yml in admin help is /crates tp  but this is uknown command and only /crates teleport works.
Crate Type
None
Steps to reproduce

Join Minecraft server with CrazyCrates 3.5.5 (BETA) installed.
Create crate with /crates set  command.
Type /crates teleport and use the number it will suggest you.
Type /keys view command.
Look into the console for the error.
Profit?

Additional context
No response
Agreements

[X] I have searched for and ensured there isn't already an open issue regarding this.
[ ] I ticked all the boxes without actually reading them
[X] My version of Minecraft is supported by CrazyCrew.

Next time, please create 2 separate issues.

I tested ./crazycrates teleport <location_id> and it worked, it sent me to one of my locations in the locations.yml.. Cannot reproduce that one

Fixed the keys view issue, still can't reproduce the other one.


adding windows and macos CI

Signed-off-by: Amit Galitzky<EMAIL_ADDRESS>Description
adding windows and macos to CI runs
Issues Resolved
resolves #274
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #701 (2c1d5b5) into main (7a05826) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #701      +/-   ##
============================================
- Coverage     79.23%   79.16%   -0.07%
  Complexity     4253     4253
============================================
  Files           301      301
  Lines         17872    17871       -1
  Branches       1897     1897
============================================
- Hits          14160    14148      -12
- Misses         2813     2820       +7
- Partials        899      903       +4

Flag
Coverage Δ

plugin
79.16% <ø> (-0.07%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...rch/ad/transport/ForwardADTaskTransportAction.java
94.06% <0.00%> (-3.39%)
:arrow_down:

...java/org/opensearch/ad/task/ADBatchTaskRunner.java
84.19% <0.00%> (-1.52%)
:arrow_down:

...rch/ad/transport/AnomalyResultTransportAction.java
79.95% <0.00%> (-0.24%)
:arrow_down:

...ava/org/opensearch/ad/model/TimeConfiguration.java
100.00% <0.00%> (ø)

...ain/java/org/opensearch/ad/task/ADTaskManager.java
77.66% <0.00%> (+0.30%)
:arrow_up:


Source.findMimeType(File file) has no information about the contents of package.json

As the Source class has no information about the current Context in which a source is going to execute, when the options js.commonjs-require and js.commonjs-require-cwd are set and a query is made to figure out the mimetype of an entry file with org.graalvm.polyglot.Source.findMimeType(File file) the function does not respect the contents of the local package.json file where "type":"module" is set.
A file with:

.mjs is correctly identified with application/javascript+module
.js continues to report application/javascript

The use case is the following:
Context context = Context.newBuilder("js")
        .allowAllAccess(true)
        .option("js.ecmascript-version", "2022")
        .option("engine.WarnInterpreterOnly", "false")
        .option("js.commonjs-require", "true")
        .option("js.commonjs-require-cwd", engineWorkingDirectory.toString())
        .build();

File jsFile = new File("index.js");
var mimeType = Source.findMimeType(jsFile); // or another way of identifying the mimetype
context.eval(Source.newBuilder("js", jsFile)
        .mimeType(mimeType)
        .build()
);

Is there another way of getting the information? Using another class? All the files imported by the entry-point are correctly identified. How is their mimetype detected and can that method be used here?

The basic support for type : module should be there and work, I don’t think that we have a mechanism to retrieve the ESM mime type via Source.findMimeType when the file extension is not mjs

Yes. "type": "module" does work.
I could rephrase as: When the js.commonjs-require option is set, the package.json file contains "type": "module" and an import is made from within a Javascript file, the engine is able to determine that a .js file is in fact a ESM file ("application/javascript+module").
Can we use that method, which has information about the current Context, to "replace" the call to Source.findMimeType in the above example?

const mimeType = Foo.contextAwareFindMimeType(context, jsFile);

I'm afraid we don't have a context-aware API to detect the mime-type of a source and we don't have any plans to add something like that currently.
So I guess you would have to either parse package.json yourself or work around the issue by importing it from some other source (e.g. context.eval("js", "exports = require('" + jsFile + "');")).

Thanks for the prompt reply. That's a nice hack. I think I'll use it.


Light2D has performance issues on Android

Operating system or device - Godot version:
Android, Samsung S7 - Godot 2.1.3
Issue description:

Light2D is very slow and laggy. On the desktop it runs smooth but on Android it slows down unusable. Without shadow and without shader. But as it should be in this state only a texture with add blendmode, it should be have no such impact on the framerate.
Steps to reproduce:
Marble.zip
I have attached a simple example project. Just tab (or click) the marbles to switch their lights on and off. On Android you will experience a major slowdown. The marbles can be moved with arrow keys (PC) and the accelerometer (Android).
Link to minimal example project:

I'm also hit by this. But I'm not sure a real fix is possible.
I'd say this affects any platform on which overdraw, state changes, etc. are expensive. Each  CanvasItem is rendered 1 + N  times, being N the number of lights that intersect it. And before that, every light has to be checked for intersection against every item. This checks is restricted to what is visible in the viewport, and I don't know it it's a bottleneck, but it has to happen.
I tried to optimize the renderer with several approaches:

VBOs and some bookkeeping to reduce state changes: didn't pay, the performance on mobile even worsened a bit;
using the depth buffer to try to reduce drawn pixels and also reduce state changes, it's work-in-progress, but probably won't work either;
I implemented the AT_LIGHT_PASS shader builtin to at least get code from the vertex and fragment shaders removed at runtime, for those computations not needed in lighting, but with no big difference.

Instead, the way to go would be to embrace some good practices:

keep the light count to the minimum;
make them as small as possible;
try to avoid intersection between lights;
etc.

If someone has a more promising approach, I'd be glad to hear it!

If it helps, another thing I found to speed up lights on Android is to make
a small light texture, then use the scale parameter. This reduces memory
bandwidth
On Fri, Jul 28, 2017 at 8:24 AM, Pedro J. Estébanez <
<EMAIL_ADDRESS>wrote:

I'm also hit by this. But I'm not sure a real fix is possible.
I'd say this affects any platform on which overdraw, state changes, etc.
are expensive. Each CanvasItem is rendered 1 + N times, being N the
number of lights that intersect it. And before that, every light has to be
checked for intersection against every item. This checks is restricted to
what is visible in the viewport, and I don't know it it's a bottleneck, but
it has to happen.
I tried to optimize the renderer with several approaches:

VBOs and some bookkeeping to reduce state changes: didn't pay, the
performance on mobile even worsened a bit;
using the depth buffer to try to reduce drawn pixels and also reduce
state changes, it's work-in-progress, but probably won't work either;
I implemented the AT_LIGHT_PASS shader builtin to at least get code
from the vertex and fragment shaders removed at runtime, for those
computations not needed in lighting, but with no big difference.

Instead, the way to go would be to embrace some good practices:

keep the light count to the minimum;
make them as small as possible;
try to avoid intersection between lights;
etc.

If someone has a more promising approach, I'd be glad to hear it!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9944#issuecomment-318628093,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z20FKImUPJVfae0VvOQQ1ZSOICM5pks5sScTngaJpZM4OmV26
.

There are also not many ways to optimize this. Using a single pass for all
lights is also slow because of non dependent texture reads, which also kill
the performance on Android. Mobile performance in general is crappy..
On Fri, Jul 28, 2017 at 8:28 AM, Juan Linietsky<EMAIL_ADDRESS>wrote:

If it helps, another thing I found to speed up lights on Android is to
make a small light texture, then use the scale parameter. This reduces
memory bandwidth
On Fri, Jul 28, 2017 at 8:24 AM, Pedro J. Estébanez <
<EMAIL_ADDRESS>wrote:

I'm also hit by this. But I'm not sure a real fix is possible.
I'd say this affects any platform on which overdraw, state changes, etc.
are expensive. Each CanvasItem is rendered 1 + N times, being N the
number of lights that intersect it. And before that, every light has to be
checked for intersection against every item. This checks is restricted to
what is visible in the viewport, and I don't know it it's a bottleneck, but
it has to happen.
I tried to optimize the renderer with several approaches:

VBOs and some bookkeeping to reduce state changes: didn't pay, the
performance on mobile even worsened a bit;
using the depth buffer to try to reduce drawn pixels and also
reduce state changes, it's work-in-progress, but probably won't work either;
I implemented the AT_LIGHT_PASS shader builtin to at least get code
from the vertex and fragment shaders removed at runtime, for those
computations not needed in lighting, but with no big difference.

Instead, the way to go would be to embrace some good practices:

keep the light count to the minimum;
make them as small as possible;
try to avoid intersection between lights;
etc.

If someone has a more promising approach, I'd be glad to hear it!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9944#issuecomment-318628093,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z20FKImUPJVfae0VvOQQ1ZSOICM5pks5sScTngaJpZM4OmV26
.

Just to remind: if I make "fake lights" using sprites with the blend mode "add" using the same texture, there is no slowdown! And that's the thing I don't get: this should be basically the same, or am I wrong?

It's not the same. As Pedro mentioned, lights need rendering the canvas
items again in a different blend mode plus the light texture. This allows
effects such as darkening the whole scene with a CanvasModulate and then
making sections properly visible using a light. With just additive, you
lose color precision
On Fri, Jul 28, 2017 at 8:35 AM, Noisefever<EMAIL_ADDRESS>wrote:

Just to remind: if I make "fake lights" using sprites with the blend mode
"add" using the same texture, there is no slowdown! And that's the thing I
don't get: this should be basically the same, or am I wrong?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9944#issuecomment-318629878,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z20-iqqLA-gQw55iXFBmkptEBIZY2ks5sSceBgaJpZM4OmV26
.

Okay, I see. Tried to remember how I do this in my animation software. There I have a black layer, mix the lights in using "add", group the layers together and "subtract" the whole group. I thought Godot do that the same way. Seems I have to rebuild that by hand (and hope it makes a difference).

GLES2 Light2D rendering performance has been improved since 3.2.2 thanks to the introduction of 2D batching and light scissoring. GLES3 Light2D rendering performance also has been improved in 3.2.4beta1 onwards thanks to https://github.com/godotengine/godot/pull/42119, closing.


fix: invalid memory or nil pointer issue

Signed-off-by: Jing Qi<EMAIL_ADDRESS>Implement loop in the test script itself to avoid the invalid memeoy or nil pointer issue
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Issue ticket number and link
Type of change

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

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

/lgtm
/approve


[enh] ported to v1.0.0 of embedded-hal

Migrated to the new API of embedded-hal which unified some traits.
Tested on Linux with both linux_embedded_hal and ftdi_embedded_hal:
use clap::Parser;
// use ftdi;
// use ftdi_embedded_hal as hal;
use linux_embedded_hal::I2cdev;
use vl6180x;

use std::{thread, time};

/// Simple vl6180x scanner
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
    /// Bus number (/dev/i2c<x>)
    #[arg()]
    bus: u8,
}

fn main() {
    let args = Args::parse();
    let mut i2c = I2cdev::new(format!("/dev/i2c-{}", args.bus)).unwrap();

    // let device = ftdi::find_by_vid_pid(0x0403, 0x6011)
    //     .interface(ftdi::Interface::B)
    //     .open()
    //     .unwrap();
    // let hal = hal::FtHal::init_freq(device, 100_000).unwrap();
    // let mut i2c = hal.i2c().unwrap();

    let mut tof = vl6180x::VL6180X::new(&mut i2c).expect("vl");
    loop {
        thread::sleep(time::Duration::from_micros(500));
        match tof.poll_range_mm_single_blocking() {
            Ok(range) => println!("Range Single Poll: {}mm", range),
            Err(e) => println!("Error reading TOF sensor Single Poll! {:?}", e),
        }
    }
}

Cargo.toml:
[package]
name = "vl6180x-test"
version = "0.1.0"
edition = "2021"

[dependencies]
clap = { version = "4.5.21", features = ["derive"] }
embedded-hal = "1.0.0"
# ftdi = "0.1.3"
# libftd2xx = "0.33.1"
# ftdi-embedded-hal = { version = "0.9.1", features = ["libftd2xx"] }
linux-embedded-hal = "0.4.0"
vl6180x = { path = "../vl6180x" }

@lucazulian this means #14 and #18 can be closed

@lucazulian this means #14 and #18 can be closed

Super cool; thank you so much! Let me give it a try with a real board!


Update example app

This pull request updates the example to use nativewind@next as well as adds some demonstration of nativewinds features to the example app.

I updated the root package.json workspace config to include examples/* as a workspace.
I updated npm run example to reference the correct workspace package and ensure that nativewind is built before expo starts.
I added nativewind to examples/expo/package.json and removed the custom webpack config.

Issues I ran into when doing this:

In order to use platformSelect and hairlineWidth in tailwind.config.js I needed to import them directly from theme-functions. Trying to require them directly from require("nativewind") caused nativewind to complain when trying to build it.

import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1031:15)
    at Module._compile (node:internal/modules/cjs/loader:1065:27)

I'm assuming this is happening because the tailwindcli does not know what to do with react-native imports.

I'm confused as to the difference between what toggleColorScheme vs setColorScheme does when using useColorScheme. Calling toggleColorScheme works as I would expect it to (updating the UI colors) and while calling setColorScheme(colorScheme === "dark" ? "light" : "dark") updates the value of colorScheme it seems to have no effect on the UI. Is this by design?

I could not get typescript to stop complaining about className on View in the example app. I'm guessing it has to do with nativewind being hoisted to the root node_modules and I couldn't figure out the nohoist config with npm that I'm used to with other package managers.

Happy to make any changes necessary to get this merged. Thanks for your hard work on getting v3 to the finish line!
EDIT: Also, this PR appears bigger than it actually is because it moves the example app to be managed by the mono repo where previously it was treated independently so the root package-lock.json has grown in size and example app package-lock.json has been removed.

I think this is little too much for a Hello World example. I think this would be better as a GitHub Template


cmd/compile: internal compiler error: dictionary variable not captured by value

What version of Go are you using (go version)?

$ go version
go version go1.19.9 linux/amd64

Does this issue reproduce with the latest release?
worked in 1.20
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xxx/.cache/go-build"
GOENV="/home/xxx/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/xxx/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/xxx/go"
GOPRIVATE=""
GOPROXY=""
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.9"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1259709727=/tmp/go-build -gno-record-gcc-switches"

What did you do?
A simplified version of our actual code compiles successfully in 1.20, but not in 1.19.

https://go.dev/play/p/-rFoI3jndSq?v=goprev
What did you expect to see?
build successfully
What did you see instead?
build failed
internal compiler error: dictionary variable not captured by value

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

CC @mdempsky @griesemer

CC @golang/compiler

Go 1.20 uses a completely different implementation of generics than Go 1.19 did. Backporting a fix for this to Go 1.19 is impractical, sorry.


little i18n fix

"Use minimal editor" was missing

I think it's better if we skip the translations until before the release (I have to create that habbit) unless we're certain of them.


Autostart App

Hi,
Thanks for the project. Is this supposed to start automatically at boot or do we need to setup it via a service?
Any recommendation on how to do it?
Thanks
Originally posted by @mart-e in https://github.com/mgrl/photobooth-app/discussions/72

https://mgrl.github.io/photobooth-docs/installation/#install-photobooth-service-on-startup
Instructions added.


Feature request: a safe subset version of this

This project is really cool! I've been using https://github.com/coleifer/pysqlite3 for a while, but I'm really excited to see this emerge as an alternative.
My primary interest is having a way to get the most recent version of SQLite installed on installations of Python that might otherwise be lagging behind. It looks like sqlean.py gives me SQLite 3.42.0 which is the most recent release!
I do have one problem: I'd like to use this with my Datasette tool, which is often deployed as a public site where anyone can execute SQL queries - e.g. https://latest.datasette.io/fixtures?sql=select+*+from+pragma_function_list()
It looks to me like sqlean.py may introduce some functions which are unsafe in that environment. These ones caught my eye:

eval() - can be used for select eval('create table tmp(value int)');
define() - this looks like it modifies state as part of a SELECT
regexp_like() and friends - do you know if these are susceptible to denial-of-service attacks? Some regular expression implementations are, others are not. https://observablehq.com/@asg017/introducing-sqlite-regex is an example of one that isn't.
fileio_read(), fileio_write() etc

Would it be possible to provide either a version of sqlean.py that only bundled "safe" functions (safe to be executed by untrusted users), or provide a mechanism whereby these unsafe functions could be disabled?
I'd love to update Datasette to be able to use sqlean.py if it's available, but I need to understand the security implications first.

Thank you for your interest in the project, Simon! I'd love to see sqlean.py used in Datasette.

regexp_like() and friends - do you know if these are susceptible to denial-of-service attacks?

This particular implementation allows lookarounds and is not guaranteed to run in O(n). So I believe they do.

Would it be possible to provide either a version of sqlean.py that only bundled "safe" functions (safe to be executed by untrusted users), or provide a mechanism whereby these unsafe functions could be disabled?

Implementation-wise, the easiest way is probably to rely on env variables:

All extensions are enabled by default.
You can disable some (or all) of them by setting specific env variables in your Python environment.

For example, by setting the following:
export SQLEAN_ENABLE_DEFINE=0
export SQLEAN_ENABLE_FILEIO=0

You disable the define and fileio extensions.
What do you think?

Yeah that could work - presumably I would need to set those environment variables in Python code before importing the module?

To be honest though for Datasette projects it would probably make more sense to have a sqlean just with "safe" functions bundled, and then show people how to use the load extension mechanism to add extra extensions that make sense for their project.
Users with Datasette authentication configured might be very happy to run some of the "dangerous" ones.

Sorry, not sure I follow. I'm looking at the code now:
try:
    import pysqlite3 as sqlite3

    using_pysqlite3 = True
except ImportError:
    import sqlite3

Here is how to disable some extensions using the env variable approach:
try:
    os.environ["SQLEAN_ENABLE_DEFINE"] = "0"
    os.environ["SQLEAN_ENABLE_FILEIO"] = "0"

    import sqlean as sqlite3

    using_pysqlite3 = True
except ImportError:
    import sqlite3

It is completely transparent to the end user, providing only the "safe" extensions. What am I missing here?

Alternatively, the package may contain two bundles: safe and full.
Then people will either do import sqlean.full as sqlite3 or import sqlean.safe as sqlite3. Datasette will do the latter.
But it will make it impossible to just do import sqlean. Also, the package size will increase because it will contain two bundles.

We can even have a nice Pythonic API without explicitly messing with env variables, like this:
try:
    import sqlean as sqlite3
    sqlean.extensions.disable("define", "fileio", "regexp")

    using_pysqlite3 = True
except ImportError:
    import sqlite3

It'll still use env variables, but they'll be hidden behind the API.
I don't see any downside to this approach.

One option is to include different "entrypoints" in the compiled extension. sqlite-lines does this here:
https://github.com/asg017/sqlite-lines/blob/main/sqlite-lines.c#L539-L595
There are two entrypoints here: sqlite3_lines_init and sqlite3_lines_no_read_init. The default entrypoint is sqlite3_lines_init, which contains a SQL function that reads files (lines_read()). Then sqlite3_lines_no_read_init is another opt-in entrypoint that doesn't load in the lines_read() function.
In Python you can specify which entrypoint to use:
import sqlite3
db = sqlite3.connect(":memory:")
db.load_extension("./lines0") # uses default "sqlite3_lines_init" entrypoint
db.load_extension("./lines0", entrypoint="sqlite3_lines_no_read_init") # uses "sqlite3_lines_no_read_init" entrypoint

Here's the sqlite-lines Python bindings that expose a load() function that loads the full extension by default, and load_no_read() function that loads the safe version.
But I'm not entirely sure how it would work in sqlean.py. I could see multiple entrypoints in the underyling sqlean.dylib extension, but since sqlean.py statically links a new fresh sqlite3 lib, might be tricky to expose it on a higher level

Alternatively, the package may contain two bundles: safe and full.
Then people will either do import sqlean.full as sqlite3 or import sqlean.safe as sqlite3. Datasette will do the latter.
But it will make it impossible to just do import sqlean. Also, the package size will increase because it will contain two bundles.

One way to avoid that could be to ship two libraries to PyPI - sqlean.py and sqlean-safe. Datasette could depend on the latter.
The environment variable thing might work. I'm a bit nervous about it because I want users to be able to opt-in to the full version if they like, at which point I guess I tell them to set their own environment variables and have Datasette learn not to set further variables that conflict with those.

This came up for me again today while looking at these two issues:

https://github.com/simonw/llm/issues/60
https://github.com/simonw/sqlite-utils/issues/235
In both cases the root problem is that the sqlite3 that comes bundled with Python3 on macOS has a key feature disabled in it.

I'd like to be able to tell users who encounter that problem that they can pip install pysqlite3-binary to work around it - but pysqlite3-binary doesn't have macOS wheels available on PyPI.
sqlean.py DOES have those wheels, and if it was "safe" by default it would be an easy workaround to tell people to install that (after teaching sqlite-utils and datasette how to load it if it's available). But without the safe version I'm hesitant to suggest it, just in case people get themselves into a pickle later on.
To be honest, for my tools that use sqlite-utils that's not actually a concern - it's only Datasette that can be used to run a web server that allows untrusted users to execute SQL. So maybe I can go ahead and add sqlean.py support to sqlite-utils as-is today.

I guess really what I'm hoping for here is a version of pysqlite3-binary that installs cleanly on macOS - filed a related issue here:

https://github.com/coleifer/pysqlite3/issues/57

If what you need for Datasette is a "clean" sqlite3 replacement without any extensions (but with load_extension enabled) — it's only logical to use pysqlite3-binary and not sqlean.py. But the maintainer has already rejected your issue, and it's not the first time they've done this — I've seen a similar proposal rejected by them before.
Creating a separate package is something I'd like to avoid at all costs.
What I can do, however, is to disable all extensions by default and make them opt-in like this:
import sqlean
sqlean.extensions.enable_all()
# or
sqlean.extensions.enable("math", "text", "regexp")

I'm not super happy with the opt-in approach, but if it works for Datasette, I'd rather do that than create a separate package.

That would work brilliantly for me.

At what point would calling sqlean.extensions.enable_all() have effect? Would it impact only connections created after that method had been called?
Datasette has this plugin hook: https://docs.datasette.io/en/stable/plugin_hooks.html#prepare-connection-conn-database-datasette
@hookimpl
def prepare_connection(conn):
    # Do stuff with conn

I'd like to be able to have plugins that enable those features. Maybe that would look something like this?
import sqlean

@hookimpl
def prepare_connection(conn):
    conn.load_extension(sqlean.path_to_extension("regexp"))

I have a branch of sqlite-utils that can use sqlean here: https://github.com/simonw/sqlite-utils/tree/sqlean
I successfully used it to solve a sqlite3.OperationalError: table sqlite_master may not be modified error in llm - details in this comment: https://github.com/simonw/llm/issues/60#issuecomment-1604530997

At what point would calling sqlean.extensions.enable_all() have effect? Would it impact only connections created after that method had been called?

It would affect all connections created in the same Python process after this call.

I'd like to be able to have plugins that enable those features. Maybe that would look something like this?

Unfortunately, it would not work. If there is a connection object, all enabled extensions are already loaded. There is no way to load them for the specific connection afterwards like conn.load_extension() does.
To enable a different set of extensions for a particular plugin, it must somehow call sqlean.extensions.enable() just before the connection is created. And restore the previous state after the connection is created. Which is probably clumsy and undesirable.

I might be able to use my startup() plugin hook for that: https://docs.datasette.io/en/stable/plugin_hooks.html#startup-datasette
Presumably I could still use sqlean without extensions and then use conn.load_extension() against compiled versions of the extensions, e.g. regexp.dylib from the sqlean-macos-arm64.zip file on https://github.com/nalgeon/sqlean/releases/tag/0.21.5
Really what I'm looking for here is a reliable way to get a modern version of SQLite with the ability to load extensions in a way that's easy for my Mac users to install without having to run a compiler.

Presumably I could still use sqlean without extensions and then use conn.load_extension() against compiled versions of the extensions

Sure, you can do that.
OK, so it's settled then? Should I release a version of sqlean.py with extensions disabled by default and an opt-in mechanism?

Have you considered a Python package for your extensions that works like these ones by @asg017 ?

https://pypi.org/project/sqlite-http/#files
https://pypi.org/project/sqlite-lines/#files
etc

Docs here: https://github.com/asg017/sqlite-http/blob/main/python/sqlite_http/README.md
They let you do this in code:
import sqlite_http
print(sqlite_http.loadable_http())
# '/.../venv/lib/python3.9/site-packages/sqlite_http/http0'

import sqlite3
conn = sqlite3.connect(':memory:')
sqlite_http.load(conn)
conn.execute('select http_version()').fetchone()

OK, so it's settled then? Should I release a version of sqlean.py with extensions disabled by default and an opt-in mechanism?

Huge +1 from me on that plan!

Implemented in <IP_ADDRESS>. All extensions are disabled by default and can be enabled with sqlean.extensions.enable_all() or sqlean.extensions.enable(*names).

sqlite-utils 3.33 is released, and it now uses sqlean.py if it is installed in the same virtual environment: https://sqlite-utils.datasette.io/en/stable/changelog.html#v3-33
This has helped resolve a bunch of issues, most notably this one:

https://github.com/simonw/sqlite-utils/issues/235#issuecomment-1606415188

Okay, since there are no more questions, I'll close this. To install extensions, you might want to check out the sqlpkg package manager.


K3s install script should support INSTALL_K3S_FORCE_RESTART

The K3s install script today currently performs a checksum comparison between the "old" and "new" binaries for K3s (along with the environment file and service files). If it does not detect a change of any of these files, it will not perform a service restart, which is not ideal if you are manually placing k3s binaries into place and using the INSTALL_K3S_SKIP_DOWNLOAD feature of the install script. We should add this feature to the install script to support the system-agent

Already merged, needs testing.

Validated on k3s version v1.21.1+k3s1, INSTALL_K3S_FORCE_RESTART=true restarts k3s even when the binary is not changed.


"unresponsive script" warning / performance of larger forms

My form contains an array field. Each array item is a subobject with about 5 fields. When the array has only a few entries everything is working fine. But if the number of array items increases the page gets slower (if there are more than 10 array items, clicking on the "plus" symbol to add an item already takes 1-2sec). The submitting also takes a long time. With 15 array items it takes more than 30s (and takes all CPU during that time). The main problem is that the browser raises an "unresponsive script" warning asking the user to stop the script (which kills meteor). But an array with 15 items is a pretty common usecase.
With autoform 5 the performance increased by about 60-70% but it still takes 15s on bigger forms. So there is always the danger of the "unresponsive script" error.
Are there ways to increase the performance of autoform? (maybe making some features not responsive? making validation not responsive?) How could the Browser Warning be avoided?

There was another report of this. Have you tried yet with Meteor <IP_ADDRESS>? I think I saw something in the release notes about performance improvements for array iteration. Could be some autoform issue aggravating it, too. I'll look into it when I have some time.

I tried with autoform 4 and Meteor 1.0.4. This did not make the rendering any faster. And the submitting took about 25% longer than with Meteor 1.0.3.
I could not try autoform 5 and Meteor 1.0.4 yet because of issue 790.

It would really help to have a repo I can clone with a reproduction of this issue.

Here is a reproduction: https://github.com/nate331/arrayfieldPerformanceReproduction
If you add 10 array items it will take a long time to save.
I was trying the same thing with the books schema as array item schema. Then it took a lot less time. It seems like my custom validation functions might be responsible for the long submitting time, but not sure.
In the console it is also showing a lot of "duplicate _id" prints. Maybe that's refers to a problem as well.

I have noticed this aswell, with a very similar use case to @nate331 with an array of objects.
The performance of afArrayField is terrible. I spent the better part of the afternoon debugging why, and it seems to me that there are a number of contributing factors. Most of it is seems to be because of the reactivity.
Here is what I've found:
Adding or removing array items, or changing field values inside the array invalidates the computations for every single field in the entire form. The call to self.info[formId][field].deps.changed(); inside ArrayTracker.prototype.addOneToField seems to be the root cause when adding a new array item. It appears to eventually invalidate one of the reactive dependencies of afFieldInputContext for every single field present in the form. That function then runs updateTrackedFieldValue for every single field, which invalidates the dependencies for every single field in the form (including AutoForm.getFieldValue, which makes it unusable for arrays). I haven't been able to debug Blaze to figure out why. The more fields in the form (or array), the longer this will take to process and it takes a ridiculous amount of time.
@aldeed Do you have any idea where I might start to debug this further? I'd like to help make this more performant if I can.

I should also note that the timeout on markChanged exasperates the problem, causing any AutoForm.getFieldValue computations to run several times.

+1 to the list :(
I'm rendering a dynamic table of dropdown items, 180 items takes around 30 seconds and freezing the browser.

Same issue here. Any suggestion to workaround this?

Render the fields yourself in an each loop. Avoid afArrayField. You can
still use quickField
On Nov 13, 2015 7:35 AM, "Mark Downey"<EMAIL_ADDRESS>wrote:

Same issue here. Any suggestion to workaround this?
—
Reply to this email directly or view it on GitHub
https://github.com/aldeed/meteor-autoform/issues/795#issuecomment-156465356
.

Hi, we're having this issue massively right now, with autoform arrays nested 3 levels deep in some cases.
It's crazy how fast it gets to become really really slow really really quickly when adding to the form, it seems to be becoming exponentially slower, not linearly. This is really biting us at the moment because we're on a very tight deadline at the moment and destructuring these forms definitely would take some time...
If anybody has an idea for a patch to autoform to speed this up, event if it'd have some other tradeoffs maybe, i'd be very interested.

My only solution was to completely avoid using afArrayField. I've poured over the code for the array field and its very difficult to figure out due to an insane amount of nested reactivity.
You can still do forms with array-like fields, but you need to build that component yourself. You can either create a custom AutoForm input type (which is what I do now), or render the array items yourself and patch them into the submitted form document via the formToDoc hook. The former method being preferred because it allows you to maintain automatic validation.
Read more about creating custom input types: https://github.com/aldeed/meteor-autoform#defining-custom-input-types
You can create your own array field component and you can even continue to use validation on array-nested object properties via afFieldMessage.

Hi @abecks, thank you for the hints. I'll see how we can solve this properly, probably by decomposing our big-a** form / document into multiple collections and creating separate interfaces for some parts of it.


drop Datastore StructuredQuery#Aggregate as it is going away

Given in API: projection A, B, C and distinct on (A, B)
Produces proto:  group by (A, B) projection (A, B, FIRST(C))
Remove from API group by and aggregation. Change group by to distinct. Note that this should support both distinct(properties) and just distinct:
SELECT DISTINCT A, B FROM K implies:
SELECT DISTINCT ON(A, B) A, B FROM K

Closing this as StructuredQuery#Aggregate was removed in the transition to v1beta3.


Form input datetime-local not showing time in IOS

Framework7 version: 5.7.1
Platform and Target: iphone 7 iOS 13.4.1

The bug:
The time is not showing in the input box after selection or with pre value.
Please advise.
Screenshots

<!--

Kind regards,
Mario

This is how iOS natively handles this type of input https://developer.mozilla.org/ru/docs/Web/HTML/Element/Input/datetime-local
You may want to use custom picker instead https://framework7.io/docs/picker.html


Sync failed: Please check your network connections

The more we know about your system and use case, the more easily and likely we can help.
Environment info

OS: macOS Mojave 10.14.6
App Version (Command/Ctrl + ,): 1.8.1

Description of the problem / feature request / question:
First time install, DMG image copy to Applications folder.
Login seems to work (I see the login page and then the 2nd auth page) but after that the error "Sync failed: Please check your network connections" appears.
I can access github, gists, etc pages from my system perfectly fine.
If possible, provide a sample gist or screenshot:
If possible, provide the log files
2019-10-08T05:53:31.618Z - info:
----- Lepton v1.8.1 darwin-----
2019-10-08T05:53:31.619Z - info: [conf] Looking for .leptonrc at /Users//.leptonrc
2019-10-08T05:53:31.619Z - info: [conf] The resolved configuration is ...
2019-10-08T05:53:31.619Z - info: "theme": "light"
2019-10-08T05:53:31.619Z - info: "userPanel": {"hideProfilePhoto":false}
2019-10-08T05:53:31.619Z - info: "logger": {"level":"debug"}
2019-10-08T05:53:31.619Z - info: "proxy": {"enable":false,"address":"socks://localhost:1080"}
2019-10-08T05:53:31.619Z - info: "snippet": {"sorting":"updated_at","sortingReverse":true,"expanded":true,"newSnippetPrivate":false}
2019-10-08T05:53:31.619Z - info: "editor": {"tabSize":4}
2019-10-08T05:53:31.619Z - info: "enterprise": {"enable":false,"host":"","token":"","avatarUrl":""}
2019-10-08T05:53:31.620Z - info: "type": "literal"
2019-10-08T05:53:31.807Z - info: Checking for update
2019-10-08T05:53:31.886Z - debug: -----> registering login-page-ready listener
2019-10-08T05:53:33.427Z - debug: -----> Inside getCachedUserInfo
2019-10-08T05:53:33.429Z - debug: -----> [false] cachedProfile is undefined
2019-10-08T05:53:33.432Z - debug: -----> [false] cachedToken is undefined
2019-10-08T05:53:33.440Z - debug: -----> Inside LoginPage componentWillMount with loggedInUserInfonull
2019-10-08T05:53:33.440Z - debug: -----> Registering listener for auto-login signal
2019-10-08T05:53:33.441Z - debug: -----> sending login-page-ready signal
2019-10-08T05:53:33.441Z - info: [signal] sending auto-login signal
2019-10-08T05:53:33.551Z - debug: -----> Received "auto-login" signal with loggedInUserInfo null
2019-10-08T05:53:34.039Z - info: Update for version 1.8.1 is not available (latest version: 1.8.1, downgrade is disallowed).
2019-10-08T05:53:34.040Z - debug: checkForUpdatesAndNotify called, downloadPromise is null
2019-10-08T05:53:36.361Z - debug: -----> Inside launchAuthWindow with token undefined
2019-10-08T05:53:36.371Z - debug: loading authUrl https://github.com/login/oauth/authorize?client_id=9e42611bb02db4547abf&scope=gist
2019-10-08T05:53:36.380Z - info: [Dispatch] updateAuthWindowStatus ON
2019-10-08T05:53:58.713Z - info: [Dispatch] updateAuthWindowStatus OFF
2019-10-08T05:53:58.715Z - info: [Dispatch] updateUserSession IN_PROGRESS
2019-10-08T05:53:58.719Z - debug: [REST] Exchanging authCode with access token
2019-10-08T05:53:58.756Z - error: Failed: {"code":"SELF_SIGNED_CERT_IN_CHAIN"}
2019-10-08T05:55:54.536Z - error:  message=Cannot read property 'removeListener' of undefined, stack=TypeError: Cannot read property 'removeListener' of undefined
at Object.unregisterAll (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/electron-localshortcut/index.js:91:20)
at App.app.on (/Applications/Lepton.app/Contents/Resources/app.asar/main.js:164:29)
at App.emit (events.js:182:13)

I got this error when the .leptonrc file is not a valid json, give it a try.

https://github.com/hackjutsu/Lepton/issues/250

I had the same warning when I first time used this app. However, it has worked successfully since I quit it and run it again.