Add Site Template Support

Description of problem
When the functionality for Site Import/Export (which users a SQL Lite database) was introduced, it replaced the old Site Template functionality (which uses an XML file).  However, when creating a new site, the new site is populated using the old XML template.  This leaves site admins unable to create templates to use when creating new sites.
Description of solution
I propose that SQL Lite templates be used when creating new sites, rather than XML templates.
Description of alternatives considered
We could also consider re-introducing the ability to create XML site templates.
Affected version

[x] 9.2.2
[x] 9.2.1
[x] 9.2
[x] 9.1.1
[x] 9.1
[ ] 9.0

most likely, the old export format has not been removed. However, if we re-add the UI for it, we will need to maintain both formats. This would be easy, if just the storage interfaces were different, however it looks to me that the whole process has been implemented again (in the context of the module) and we would need to maintain two independent export engines, which doesn't make sense.
IMO we should review both export formats and engines and try to elaborate the best of both. This should be implemented as DNN API in the core and the PB module providing a User Interface for it.

@bdukes Do you have any idea of the time involved for this?

No, I haven't looked into those APIs.  I would imagine it might take a couple of full days to re-use the site import for a new site.

Ouch this is still not fixed. Its been almost a year and i desperately need it this feature.

Does anyone know of a 3rd party import / export module?

Does anyone know of a 3rd party import / export module?

@tmaler  This is a Request For Comments, imo there is nothing broken here, what feature are you talking about?

Hi @schotman, i cannot get the site template to export in DNN 9.1.1+. I go to the Import / Export screen, select my portal from the dropdown, click export, select which pages i want to export, and click Begin Export. It creates the task but thats about it. I also go into schedule task under "Site Import/Export" and click Run Now. Nothing happens.

i just figured out the issue. For whatever reason server name had "COMPUTERNAME" as a value. I removed it and it started to work. I apologize for posting my comments.

@tmaler please delete them (and upgrade to the latest version ;)  )

I have done more research on this. The Template generation code is still there but no longer called from the front end. It would probably not require a lot of work to reimplement site template generation. I'm thinking less than a day.
As to the Import/Export format: the logic is

more robust (it is done through a scheduled task to avoid nasty timeout for larger tasks and it is even designed to survive scheduler timeouts)
supports/designed for upgrades/migration tasks
your module's code depends less on the quirky Microsoft XML patterns (used in IPortable) and can probably be more terse

So the latter looks like a more future-bound approach. But @schotman is right in that it is not human editable and this was a real strength of the old templates.
For now I think these systems will live side-by-side as ripping out templates would have a huge repercussion and the import/export stuff is just an add-on to DNN. We should make sure we can export templates again. I'm going to take a stab at this.

Cool, I think that Import/Export and creating a template could live side by side for some time. I hate that there is a lot of duplication in the two solutions but I prefer that than breaking IPortable :)

@donker if you need a tester, happy to help out

Any updates?

still a valid issue

still valid...

Is anyone planning on implementing this?

I just successfully imported/exported a site in 9.6.  Everything worked successfully would this be ok to close then?
Is there a way to create page templates or only "Site" templates and select the pages you want to put in the template?

Yeah, I would say overall this is brought back now. By original design the site templates customizations would have to be in the actual export manually. I gonna go ahead and mark this done, if other people want to add some sort of UI to customize the export, please do open a new issue. As for the vocabularies I think this might be worth a new issue if you have some steps to reproduce that kinda explain what worked and what did'nt


Lack of non-nightly Flatpak, how to use?

How do I get a non-Nightly flatpak? I'm fine installing a flatpak, but you use the KDE Nightly releases. Where's the latest versioned release, not nightly?

That's a wonderful question and i would like it answered too. I did some researches on my own as you can see here, and to current date i still can't find it on flatpak. If you want it out of the nightly branch i think you should redirect your question to the XWVB developers themselves!

Well, I found this forum thread, and replied to it. Only been a few days and over the weekend, so sometime next week I'll try and bump the thread if nobody has replied https://discuss.kde.org/t/fixing-wayland-xwayland-screen-casting/217/20?u=drizzt321

There is no non-nightly flatpak yet, like @Tox46 said here:

and to current date i still can't find it on flatpak.

Unfortunately there's nothing I can do until they get it on Flathub or KDEApps non-nightly.


fix: npm package contains default_index.ejs file

Summary

const HtmlWebpackPlugin = require('@rspack/plugin-html')
module.exports = {
  // ... other config
  plugins: [
    new HtmlWebpackPlugin({ title: 'My App' })
  ]
}

Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>Test Plan

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

please sign the CLA


Create the release version tag

Describe the proposal
Currently, we have not created the version tag for samples and contributors have changed the samples. then samples in master would be inconsistent with the latest dapr runtime release, which will make users confused.
To resolve this issue, I proposed to add the tag version.

[ ] : Add tag version
[ ] : Add latest version link to README.md

cc/ @yaron2 @Haishi2016 @amanbha @msfussell


Mono: Add Dictionary and Array classes

Please test :)
Any opinion on the way I did Array <---> Array<T> (type safe)? (and Dictionary)

@neikeq So when do we get those conflicts fixed? ;)

So, what's up with this PR?

Not the first in my priority list right now. I need to add PoolArrays as well and decide what to do with exceptions.

What are the advantages gained in this PR over C#'s built-in Dictionaries and Arrays?

@aaronfranke Array and Dictionary are mutable in Godot. So are C#'s Dictionary and List, but you need to make a copy when marshaling them to Godot. There are methods in the Godot API that rely on them being mutable:
var output = []
var pid = OS.execute('ls', [], true, output)
print(output.size()) # Output: 1
# output[0] contains the application standard output

var output = new List<object>();
int pid = OS.Execute("ls", new string[] {}, true, output);
GD.Print(output.Count); // Output: 0
// Oops!

All right, this is done for now. I'll add PoolArray on a separate PR.
In order to avoid breaking compatibility, I added a new method, erase_checked, to Dictionary (not exposed to scripts) instead of modifying the return type of erase.

Cherry picked into 3.0.6


Crash on FastBlurHelper.doBlur in v2

Hi, only on a Samsung Galaxy S4 i9500 i get this crash when i try to open a SupportBlurDialogFragment:
0 java.lang.RuntimeException: An error occured while executing doInBackground()
1   at android.os.AsyncTask$3.done(AsyncTask.java:300)
2   at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
3   at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
4   at java.util.concurrent.FutureTask.run(FutureTask.java:242)
5   at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
6   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
7   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
8   at java.lang.Thread.run(Thread.java:841)
9 Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2304; index=2805
10  at fr.tvbarthel.lib.blurdialogfragment.FastBlurHelper.doBlur(FastBlurHelper.java:132)
11  at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:392)
12  at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$300(BlurDialogEngine.java:41)
13  at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:563)
14  at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:520)
15  at android.os.AsyncTask$2.call(AsyncTask.java:288)
16  at java.util.concurrent.FutureTask.run(FutureTask.java:237)
17  ... 4 more

Hope it helps!

Hi @mlessio
Thanks a lot for your report (:
What do you mean by "in v2" ?
Could you tel us which version of the library you are using as well as the configuration of blur engine (blur radius, renderscript enabled, etc.)?
Hope we will be able to solve it (:

Genymotion Samsung Galaxa S4, API level 19
mRadius = 8;
mDownScaleFactor = 4.0f;
dependency:
compile 'fr.tvbarthel.blurdialogfragment:lib:2.1.4'

Hi @Nook2007 (=
Thanks for all the details.
It seems to be the same issue as :
https://github.com/tvbarthel/BlurDialogFragment/issues/2
The ArrayIndexOutOfBoundsException might be only thown on genymotion devices. The first reports was for a nexus 10 emulated thanks to Genymotion but it worked fine for a real nexus 10.
I found another issue from another "blur project" on GitHub with the same exception :
https://github.com/kikoso/android-stackblur/issues/10
I will try to find more information in order to understand what's happening (=

+1

So on occasion I see this problem as well.
I dug into the code a bit and realized it's because it was using an older version (circa 2012) of the Stack Blur algorithm. Will create a PR with the latest version of the Stack Blur, which should fix this problem.

+1，how to fix this bug

+1
Library version: 2.2.0

The issue is still opened in API 19 when we use SupportBlurDialogFragment.
Is there any possible workaround?
FATAL EXCEPTION: AsyncTask #2                                                                     Process: gr.cosmote.prepaid, PID: 22012                                                                     java.lang.RuntimeException: An error occured while executing doInBackground()                                                                         at android.os.AsyncTask$3.done(AsyncTask.java:300)                                                                         at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)                                                                         at java.util.concurrent.FutureTask.setException(FutureTask.java:222)                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:242)                                                                         at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)                                                                         at java.lang.Thread.run(Thread.java:841)                                                                      Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2304; index=2532                                                                         at fr.tvbarthel.lib.blurdialogfragment.FastBlurHelper.doBlur(FastBlurHelper.java:132)                                                                         at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:422)                                                                         at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$400(BlurDialogEngine.java:42)                                                                         at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:593)                                                                         at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:550)                                                                         at android.os.AsyncTask$2.call(AsyncTask.java:288)


Set-Location or any of it allies (cd) without any parameters takes you back to user directory.

In Windows Powershell:

In Powershell:

This is normal behavior to set home location, just like in all other command shells. Except for cmd.exe, where cd outputs the path to the current directory.

Yes, this was implemented like in bash.

Just as an FYI this is a change in behaviour from WinPS. Doing Set-Location or cd doesn't change any location.

This is normal behavior to set home location, just like in all other command shells. Except for cmd.exe, where cd outputs the path to the current directory.

This is not the case in WinPS. And I wish this change was documented somewhere from WinPS to Powershell changes etc.

We have these two docs:

https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?view=powershell-7.1
https://docs.microsoft.com/en-us/powershell/scripting/whats-new/breaking-changes-ps6?view=powershell-7.1

I'm not sure if this was done in 6.0 or later on, though, because I don't see it on this list. Do we have all the release notes in the docs site somewhere? 🤔

And I wish this change was documented somewhere

 PS > Get-Help Set-Location -parameter Path

-Path <System.String>
    Specify the path of a new working location. If no path is provided, `Set-Location` defaults to the current user's home directory.
...

And I wish this change was documented somewhere

 PS > Get-Help Set-Location -parameter Path

-Path <System.String>
    Specify the path of a new working location. If no path is provided, `Set-Location` defaults to the current user's home directory.
...

Is this already in place? I am confused...
>Get-Help Set-Location -parameter Path                                                                       ❮  

-Path <string>

    Required?                    false
    Position?                    0
    Accept pipeline input?       true (ByValue, ByPropertyName)
    Parameter set name           Path
    Aliases                      None
    Dynamic?                     false
    Accept wildcard characters?  false`

You may need to run Update-Help by the looks of it.

 Update-Help -UICulture en-US                                                                                ❮   Update-Help: Failed to update Help for the module(s) 'PSReadline' with UI culture(s) {en-US} : One or more errors occurred. (Response status code does not indicate success: 404 (The specified blob does not exist.).). English-US help content is available and can be installed using: Update-Help -UICulture en-US. Update-Help: Failed to update Help for the module(s) 'HgsClient, HgsDiagnostics' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.. English-US help content is available and can be installed using: Update-Help -UICulture en-US.
And this is known issue.

This was implemented in #1534

This was new to me ... then I realised it's because I have re-aliased CD to PUSH-Location instead of SET-Location (I have CD- for POP-Location.)
If you prefer cd to behave in the cmd / win-PS method this work round has the benefit that your directories are stacked.


[$250] Update UpdatePolicyConnectionConfiguration to be 1:1:1 - Part 4

Problem
Our UpdatePolicyConnectionConfiguration API command is not 1:1:1 - it is the same API call for all related user actions, when it should be split up for each connection (QBO, Xero, etc.) and configuration setting (autoSyncVendor, enableNewCategories, etc.). At the end of this we should not call that function anywhere.
This is polish for the Collect QBO project.
Solution
When we created the NetSuite commands, we followed the correct pattern, and so need to do so here too.
This requires backend and frontend work in tandem (to create the commands and then to use them), so we're looking for a contributor(s) to handle the frontend. You can see an example PR here - there is some extra prep work there that you can ignore, but adjusting all calls like this is what we're going for:
- Connections.updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.QBO, CONST.QUICK_BOOKS_CONFIG.REIMBURSABLE_EXPENSES_ACCOUNT, row.value);
+ QuickbooksOnline.updateQuickbooksOnlineReimbursableExpensesAccount(policyID, row.value);

Here is a list of the commands handled in this issue:

UpdateQuickbooksOnlineAutoSync
UpdateQuickbooksOnlineSyncPeople
UpdateQuickbooksOnlineReimbursementAccountID
UpdateQuickbooksOnlineExport - We will need to split up this one even further, one for each piece of the object that it is updating. We can discuss this on the PRs.

If there are others that follow the same pattern as UpdateQuickbooksOnlineExport (same object, different keys) we will need to split those as well.
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01eef0bc66034bca70
Upwork Job ID:<PHONE_NUMBER>140040932
Last Price Increase: 2024-08-19
Automatic offers:

shubham1206agra | Contributor | 103590186

Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @shubham1206agra

Sorry @zanyrenney forgot to remove Bug from this one - you can ignore until we're ready for a payment

Sounds good, thanks for the update @dangrous

@shubham1206agra @rushatgabhane can you comment here so I can assign you? Thanks!

@dangrous fyi, we don't need to comment for getting assigned as we're on exfy org in GitHub

oh whoops! sorry about that.

any update here please @shubham1206agra

cool!

fyi backend pr is deployed now so should be able to test the new commands!

Noted in Slack but for the GitHub record - QBO backend PR not yet on staging, should be there today!

back end PR is up on staging!

Shush Melvin this was just merged!

Why no automationnnnnnn - went to prod 3 days ago according to the comment on the PR

Hi! I will be OOO until 7th october, please can you handle the final stage here of the payment @RachCHopkins thanks!

Payment Summary:

Contributor: @shubham1206agra to be paid $250 via Upwork
Contributor+: @rushatgabhane to be paid $250 NewDot Manual Requests

Upwork job here
@rushatgabhane I'm late to the party here - can you confirm that's correct please?

Ok, I see that @dangrous updated the GH title last week, so I assume if the pricetag was wrong, it would have been corrected. Going to go ahead and pay this as it's due.

@shubham1206agra the original offer had expired, so I have sent you a new manual offer.

Payment Summary:
Contributor: @shubham1206agra  paid $250 via Upwork - completed.
Contributor+: @rushatgabhane to be paid $250 NewDot Manual Requests
Thanks for the new manual offer sent @RachCHopkins I have paid it out.

$250 approved for @rushatgabhane


show the bricked phone's content in sdcard

I can list phone's all directory with this command  lglaf.py --debug -c '!EXEC  ls\0'
..
data
dev
...
sdcard
storage
...
Can I further list one of the above directories, say sdcard, using the above command?

Yes sure, to list for example sdcard, use:
-c '!EXEC ls sdcard/\0'
For photos there:
-c '!EXEC ls sdcard/DCIM/\0'
Etc etc
However,  for me it did not work to list sdcard in download mode, maybe it works for you though.

Internal sdcard is located at /data/media/0. I'll have to check my notes as to the exact path of the external sdcard... Gimme a few.

Ok. External sdcard is located at /storage/external_SD


[Roadmap] workflow-alpha-02

The second release of the workflow library adds support for $apply operation:

#656

Using $apply, it is possible to generate a CarePlan from a PlanDefinition for a given patient

closing as obsolete


Not working on IOS 11.1 emulator

Secure storage fails after upgrading to Xcode 9 and running IOS emulator on IOS 11.1. Anyone else experiencing this issue?
Error: {"line":59,"column":50,"sourceURL":"/plugins/cordova-plugin-secure-storage/www/securestorage.js"}
Emulator command:
ionic cordova emulate ios --target=iPhone-5s -lc
Ionic Info:
cli packages: (/Users/{user}/.nvm/versions/node/v6.11.4/lib/node_modules)

    @ionic/cli-utils  : 1.16.0
    ionic (Ionic CLI) : 3.16.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    Cordova Platforms : android 6.3.0 ios 4.5.2
    Ionic Framework   : ionic1 1.3.1

System:

    ios-deploy : 1.9.1
    ios-sim    : 6.1.2
    Node       : v6.11.4
    npm        : 3.10.10
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Same issue here with Ionic.
It works when I run "cordova build ios" and then run the simulator from XCode. It doesn't work when directly running "cordova run ios" or "cordova emulate ios" from the CLI with or without the parameters for livereload.
I also enabled KeyChain sharing in the XCode project
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils  : 1.17.0
ionic (Ionic CLI) : 3.17.0

global packages:
cordova (Cordova CLI) : 7.1.0

local packages:
@ionic/app-scripts : 3.0.1-201711040536
Cordova Platforms  : ios 4.5.3
Ionic Framework    : ionic-angular 3.7.1

System:
Android SDK Tools : 26.0.2
ios-deploy        : 1.9.2
ios-sim           : 6.0.0
Node              : v8.4.0
npm               : 2.15.12
OS                : macOS Sierra
Xcode             : Xcode 9.1 Build version 9B55

Environment Variables:
ANDROID_HOME : /Users/******/Library/Android/sdk

Misc:
backend : pro

Somebody will have to volunteer to fix this.

Not have any experience with iOS Native code but if you can point out to the problem then I can try & fix it.

@ggozad just like @sagrawal31 said, I could also try to fix it as well, if you could just point us in the right direction. I need this for an app I'm working on and would gladly give it a shot.

@sagrawal31 @joshterrill
I am not entirely sure there is something you can do. When the emulator stoped working a year ago we had to wait for a new release of xcode.

We got it working by setting a value for the preference:

@alesrosina I think you had a similar problem with a similar fix as @mikeg-red5hift documents?

@huerlisi I had to manualy open project in Xcode and set Keychain Sharing to ON under Capabilities in project Settings. Without this manual setting this did not work for me.
But as mentioned in the thread, this works only for buliding, not for debuging. So same problem as inital report :)

Still having a problem with this. Running emulator on 12.1
Build command
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
`Ionic:
ionic (Ionic CLI)             : 4.6.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework               : @ionic/angular 4.4.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics    : 7.3.9
@angular/cli                  : 7.3.9
@ionic/angular-toolkit        : 1.5.1
Cordova:
cordova (Cordova CLI) : 8.1.2<EMAIL_ADDRESS>Cordova Platforms     : ios 4.5.5
Cordova Plugins       : cordova-plugin-ionic 5.3.0, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 11 other plugins)
System:
ios-deploy : 1.9.4
NodeJS     : v11.1.0 (/usr/local/bin/node)
npm        : 6.5.0
OS         : macOS Mojave
Xcode      : Xcode 10.1 Build version 10B61
`
I've tried adding the KeychainAccessibility  and turning on Keychain Sharing but no luck!


Making an Existing Chest Radiant Doesn't Add it to the Network

Recently started up Arcane Archives, and for whatever reason, shift + R-Clicking a chest with radiant quartz to turn it into a radiant chest doesn't add it to the network. Placing the chest down by hand works just fine, however. It's more of an inconvenience than anything, but some of my chests are quite full, so it'd be nice if there was a fix for this besides breaking and replacing them.

I just used the Debug Orb to check, and it printed out these two logs:
https://paste.dimdev.org/cinoqabawa.debugClient
https://paste.dimdev.org/okesijudam.debugServer
The network UUID is my UUID on the server, so that part looks fine actually. The only difference is that, on the Client side, it doesn't seem to be part of the "network tile list". I assume that's the issue?

Are you in single-player or multiplayer? Are you part of a network?
The Network Tile List only exists on the server-side, so it's not something you need to worry about.
Obviously, have you tried relogging?

Multiplayer server, and I assume that I'm part of a network (like I said, any Radiant Chest that I put down manually connects to my Manifest just fine).
I actually didn't even think to try re-logging; I'll try that the next time I make a radiant chest and see if it fixes the issue.

Also, what version are you running?

Running <IP_ADDRESS>. I'll be on the server later today, so I'll test if relogging fixes the issue.

Finally got a chance to test, and no, relogging doesn't fix the issue.

I'm not able to actually replicate this with (a slightly variant) <IP_ADDRESS> either in multiplayer or on a server. I'm gonna guess it's some sort of cross-mod interaction as it works perfectly fine with vanilla chests in my dev environment/dev server + dev client.


MIxS Google Sheets -> LinkML timeline/retrospective

The effort to convert Google Sheets like MIxS6 Core- Final_clean into LinkML began in Chris Mungall's GitHub organization.
@turbomam made a fork of that and moved some term knowledge out of LinkML comments and into LinkML annotations, like XXX
GSC also had a fork of Chris M's mixs-source code. I'm not sure if any development took place there.
More recently, @ramonawalls hand-merged @turbomam's  mixs-source code into the mixs6_release branch of https://github.com/GenomicsStandardsConsortium/mixs
Once branch mixs6_release is merged into master, we should probably consider all mixs-source repos, from Chris M, @turbomam and @genomicstandardsconsortium deprecated.
@sujaypatil96 switched the LinkML automated documentation generation from gen-markdown (old example) to the much more flexible gen-docs (new example).
@turbomam did a lot of Makefile cleanup
There's a PR now for cumulatively merging @sujaypatil96's and @turbomam's contributions into the mixs6_release branch
After that, the mixs6_release branch could be merged into master, but that will require manual merge resolution.
Some ongoing improvements to the gen-docs will probably be required.

No longer relevant due to MIxS 6.2, whose conversion took place in https://github.com/GenomicsStandardsConsortium/mixs6.2_release_candidate


buttonaction is not work correctly

let menu = storyboard!.instantiateViewController(withIdentifier: "RightMenuNavigationController") as! UISideMenuNavigationController
menu.sideMenuManager.menuPushStyle = .subMenu
menu.sideMenuManager.menuPresentMode = .menuSlideIn
menu.sideMenuManager.menuFadeStatusBar = false
present(menu, animated: true, completion: nil)
this is my code and i want menu slide in.
gesture action in work correctly. but action in button,  menu is popover from bottom to top.
how can i fix it?

Please follow the README carefully.


Search

Hi guys,
i would really appreciate search field to be available on documentation official page.

That'd be a lot of work to implement and maintain, you can use one of the many existing search engines out there.


[General Question] Does this CLI understand updates from other writers?

Let’s say a S3 prefix is being used by multiple services. I want to update certain object content locally and write it back to the same S3 object key IFF no other service touch that one before my work. Would it possible with this CLI?
Like for my own work, I interact with that S3 prefix with this CLI, will I be able to easily pull and tell objects added/updated/deleted by others?
Curious how does the versioning work in such case?

Yes, sure. The collaboration is fundamental requirement for a version control system. Just like git, there would be multiple users push commits to repository.
In ArtiV, you can use

art log to see the commit logs
use art pull to pull the latest version to local.
If both local and remote have changes, we can use art pull --sync or art pull --merge or default art pull to merge remote data to local
You can use art pull --dry-run or art push --dry-run to see the different between local and remote in two direction.

About the underlying design, you can check the document here
https://github.com/InfuseAI/artiv#how-it-works
Actually, the file structure is similar as .git. Welcome to ask more questions about any implementation detail.

Thanks for the clarification! it is still unclear to me if the .git is maintained locally (my temporary storage, like on my laptop) or remotely (e.g., S3, the destination storage of choice)?

The .git like files are stored at the remote, but there are metadata cache locally.
The repository stucture
<artifact repository root>
├── commits
│   └── <commits>
├── objects
│   ├── 03
│   │   └── cfd743661f07975fa2f1220c5194cbaff48451
│   ├── 23
│   │   └── 715d393e1b723b249642a586597426885f64d1
│   ├── 2b
│   │   └── 77b0d6a5f3bd047fb2c6e44bbb22822f773f94
│   ├── 32
│   │   └── e2eb1b2f4b757fcc3e112d57ca702c65dad526
│   ├── 6d
│   │   └── 7cb1f44cb598a0db93f912791a1c20e3bd7c6b
│   ├── 84
│   │   └── 44869206da2a25b8ee79a8959ed4b34144f2a8
│   ├── ac
│   │   └── 9bcb803e59cd45610d87f2b683319420e7f76b
│   └── d7
│       └── 153b344c84ae187e2a894688310f1956dc45b7
└── refs
    ├── latest
    └── tags
        ├── v1.0.0
        └── v1.0.1

local structure
.
├── .DS_Store
├── .art
│   ├── commits
│   │   └── <commits>
│   ├── config
│   └── refs
│       ├── tags
│       │   └── <tags>
│       └── latest
└── <your workspace files>

Comparing to git,
Git: git remote repo is like a bare repo. The local git repo contains workspace + repo (which contains the whole files and metadata)
ArtiV: arti repo at the remote is like a bare repo of git. The local is only the workspace  (and some metadata cache).
So the nature of git local repo which save all files of all version makes git not suitable for large files.


Add option to minimize the window to tray

I'd like to give this a shot!

Thank you @cisnejo! I'm assigning you

Thanks! I'm hoping to get this to you by end of tomorrow at the latest.


Humiditi AND temperature

Hi,
how do I get it to work so humidity and temperature will show in Home app? I can only see humidity data but no temperature. I am using sonoff with DHT11 sensor. thank you

Would love to know this as well. Both temperature and humidity packages, as well as the accessories are installed and added to the config.json file. I am using the SI7021 sensor.
The www console doesn't show my sensor type though...

I have SI7021 now as sensor property name.
None is working...

where can we find the correct settings in the www browser? Eg. what to modify at the different config menus?

https://github.com/arendst/Sonoff-Tasmota/issues/735
Might help

alesoblak, assuming you have both added the humidity and temp plugin,
in the configuration module parameters you have to select the TH10.
According to the sensor config wiki, the DHT11 is a single wire sensor
The following single wire sensors are supported:
DHT11 Temperature and Humidity - DHT11 (1) in group 1
So your configuration should be as follows:

anyone?


WWW-Authenticate & discovery authentication server

The current version of the specification does not indicate how to identify the authorization server locations.
The source Docker documentation ( https://docs.docker.com/registry/spec/auth/token/ ) contains considerations around realm in WWW-Authenticate for that:

Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:samalba/my-app:pull,push"

I would like to draw attention to the work carried out under draft-hardt-oauth-distributed-01, where the following ideas were proposed for this problem:

Authorization Server Discovery

Figure 1, step (A)
To access a protected resource, the client needs to learn the
authorization servers or issuers that can issue access tokens that
are acceptable to the protected resource.  There may be one or more
issuers that can issue access tokens for the protected resource.  To
discover the issuers, the client attempts to make a call to the
protected resource URI as defined in [RFC6750] section 2.1, except
with an invalid access token or no HTTP "Authorization" request
header field.  The client notes the hostname of the protected
resource that was confirmed by the TLS connection, and saves it as
the "host" attribute.
Figure 1, step (B)
The resource server responds with the "WWW-Authenticate" HTTP header
that includes the "error" attribute with a value of "invalid_token"
and MAY also include the "scope" and "realm" attribute per [RFC6750]
section 3, and a "Link" HTTP Header per [RFC8288] that MUST include
one link of relation type "resource_uri" and one or more links of
type "oauth_server_metadata_uri".
For example (with extra spaces and line breaks for display purposes
only):
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="example_realm",
                         scope="example_scope",
                         error="invalid_token"
Link: <https://api.example.com/resource">; rel="resource_uri",
      <https://as.example.com/.well-known/oauth-authorization-server>; rel="oauth_server_metadata_uri"

The client MUST confirm the host portion of the resource URI, as
specified in the "resource_uri" link, contains the "host" attribute
obtained from the TLS connection in step (A).  The client MUST
confirm the resource URI is contained in the protected resource URI
where access was attempted.  The client then retrieves one or more of
the OAuth Server Metadata URIs to learn how to interact with the
associated authorization server per [OASM] and create a list of one
or more authorization server token endpoint URLs.

It seems to me that it will be better for everyone when work in this area is coordinated to unify the way of detecting server authorization. I have noticed the convergence of problems and various solutions to this problem, hence I am creating this issue to facilitate cooperation on the extensive Internet.

ping! +1 on this issue, I'm looking for the "right way" to implement the authentication. Is there a formal guide that the distribution-spec can point to use?

Also, I'd be interested to know what subset of endpoints (other than obvious push/pull) require authentication. For example, can I list tags without it?

The spec isn't touching on anything auth at the moment. Most registries are using a "docker-style" version of OAuth 2.0
Here is the OAuth 2.0 document: https://tools.ietf.org/html/rfc6749#section-3.3
and here is a Docker page regarding a "Token Authentication Specification": https://docs.docker.com/registry/spec/auth/token/
The part that is unique -ish to docker and containers is the scope piece of the auth challenge, and the format of JWT tokens that are returned. Example decoded JWT payload (see access section).
{
  "iss": "auth.docker.com",
  "sub": "jlhawn",
  "aud": "registry.docker.com",
  "exp":<PHONE_NUMBER>,
  "nbf":<PHONE_NUMBER>,
  "iat":<PHONE_NUMBER>,
  "jti": "tYJCO1c6cnyy7kAn0c7rKPgbV1H1bFws",
  "access": [
    {
      "type": "repository",
      "name": "samalba/my-app",
      "actions": [
        "push"
      ]
    }
  ]
}

As far as which endpoints are protected by this - there is no rule. If you make a request, and a 401 is returned, inspect the Www-authenticate header which will contain information on how to retrieve a token. Then retry the original request, adding an Authorization header in the form Authorization: Bearer <token>. This is purely OAuth2. The scope can also be arbitrary, such as scope=abc123.
It may be nice if the spec had some discovery mechanism and known token type, so that clients could ultimately fetch a token without first triggering a 401.

Heyo! I'm well into the auth implementation but I have one quick question. What are best practices for the secret used to decode? Should they be generated for one time use, on the level of the repository, or the server? If the purpose is only for the server to generate (encode) and then decode, it seems like it doesn't add much, security wise, and even could just be one value. I ask because I was looking over quay's implementation and they use some kind of public key? https://github.com/quay/quay/blob/38be6d05d08bc72cc13a89073bb5364b8adf6c04/util/security/registry_jwt.py#L100 And they pass it via some kind of kid header?
    kid = headers.get("kid", None)
    if kid is None:
        logger.error("Missing kid header on encoded JWT: %s", bearer_token)
        raise InvalidBearerTokenException("Missing kid header")

How does the header get passed around, and is the kid equivalent to the jti? Thanks!

As a rule (as per the RFC standards on OAuth), the Bearer token is an opaque value that is passed between the authorization servers and the resource provider via the client. In practice, this value is often a JWT token.
Claim "kid" is an element provided by OpenID Connect standard, which - together with an appropriate "audience" - allows for distributed verification and enables resource providers to verify the token coming from many authorization servers. The current registry protocol does not make it possible (due to the lack of proper discovery of authorization servers) to use multiple authorization servers, but the details of the JWT format are often adopted at the organization-wide level and used throughout the organization.

Okay, so given a JWT token in context of OAuth - to return to my question - you are saying that it doesn't really matter then how it's encoded and decoded? There is no best practice for the secret?

I believe that this term should not be the scope of the Registry standard. The value should be provided by the authorization server, provided by the client as is, and then understood and trusted by the resource provider. Various environments may approach this issue in a completely different way. I don't see a security problem (and this is a standard mechanism in JWT) to use symmetric cryptography if the secret distribution is limited e.g. within one server that acts as both an authorization server and resource provider. As the environment grows, symmetric cryptography becomes cumbersome, and then key distribution mechanisms can be helpful. There is even no obstacle for the value to be random, in the style of the classic statefull session identifier. The issue requires an analysis of the needs and risks of a specific environment.

Thanks @ad-m! @jdolitsky what are your thoughts?

JWTs are not encrypted, but base64 encoded and signed, and can be used by any client who obtains it to access target resource(s). The security added comes with the fact that these tokens expire after a short period of time. Additionally, the auth server can rotate private key at any time, marking previous tokens as invalid.
I agree w/ @ad-m - I'm not so sure this should be part of the distribution spec. It is purely OAuth. There are some aspects, however, that seem to be unique to registries. This is that JWTs are almost always used, and contain an access section, which has a unique schema related to push/pull/delete access to specific resources.
The auth dance between the client and auth server isn't something that should be defined by the spec, but maybe described. If anything, the unique format of JWT tokens and scope params could become part of the spec.

JWTs are not encrypted

JWT might be encrypted eg. thanks to JWE. I have the impression that some hyper-scalers encrypt their tokens, but I haven't paid much attention to it.

This is that JWTs are almost always used, and contain an access section, which has a unique schema related to push/pull/delete access to specific resources.

For me, this is an implantation detail that should be not described in the distribution specification, because client should use token as opaque value. Such elements may be presented in supportive and educational non-normative documentation that presents experiences from actual implementations.

Thanks to you both! I didn’t mean to suggest this should be part of the spec, I was just generally asking for advice.

Thanks again for all the good discussion, I think we're good https://vsoch.github.io/django-oci/docs/getting-started/auth.

@ad-m - just to clarify your original issue - are you suggesting any change to the spec, or just sharing information on the distributed OAuth stuff? (Link header etc.)

At this stage, I share information for possible use and draw attention, I have no specific expectations regarding the specification changes.

@ad-m we have tried to avoid a need to including authorization in the specification. From an implementation standpoint though, it is hard to be completely opaque and attempting to do oauth just based on the results of WWW-Authenticate can be tricky. Some discovery system like @jdolitsky mentioned would make that better. Things to consider...

Oauth server is not known, so the realm is used...this is non standard behavior
scope is used directly from registry...however, most clients add scope to avoid additional requests, making the format not opaque
the client id is static and not provided by the service...this makes doing things like authorization code grant types hard (along with other missing configuration)


999 distractor snippets

Thank You for CodeSearchNet. A quick question: if we wish to replicate Table 3 (of your paper) where can we find the 999 distractor snippets and how did you form those 999 snippets?

Hi, @ncshrikanth!
As far as I can tell, they were generated randomly:
https://github.com/github/CodeSearchNet/blob/e792e1caea20fbd4fba439565fe20c10d4798435/src/model_test.py#L58

I see, thanks @Zamony !


Initial implimentation

still TODO:

[x] Pagerduty
[ ] More testing ?
[ ] Dockerisation
[ ] Documentation

❓ Let me check my understanding of the design and the feature of errm/alertdog first... Is my understanding roughly correct?

I've read the design, and so AFAIU, errm/alertdog receives POST /webhook  occasionally from AlertManager, and talks to AlertManaegr per each configured Prometheus instances by checking the alert status (Alert/Resolved). It is useful when some/all Prometheus instances are down.
Also, one goroutine periodically checks if the alertdog does not receive any webhook within expiry time or not.
The alertdog at first tries to trigger an alert at Alertmanager, but if it fails for some reason (e.g. Alertmanager is down, transient network failure, etc.) it raises PD incident as well.

I'll review the PR tomorrow if you need more 👀  on this PR

One addition to the TODO list: add a description of what alertdog does and why and in which situations you'd want to adopt it (perhaps that is already covered by the "Documentation" item).

Is this allready covered by the README here https://github.com/errm/alertdog#design
@kenju thanks for making the diagram ... yes it is accurate... do you think it would be good to add to the README ?

@errm I was picturing a tagline, something like "Alertdog alerts you when your alerting system fails to do it". I only get to understand the objective of this in one of the last sentences of the current README, and it is not explicit:

Alertdog is designed to be used in situations where a single Alertmanager is used to route alerts from multiple Prometheus instances to different teams, each with there own alerting setup.

Does this make sense?

do you think it would be good to add to the README ?

Well, I wrote the diagram for myself to understand the design to review this PR, and having diagram has disadvantage for maintanance cost on the other hand, so TBH I don't have strong opinion on this.
But if you and/or other members think it good, of course let's put them on README! :)

I am merging this now as I think all the technical issues are now resolved!
I will cover documentation in another PR as this one is far to big allready :)


New package: JlSensemakr v0.0.1

Registering package: JlSensemakr
Repository: https://github.com/d2cml-ai/JlSensemakr.jl
Created by: @RodrigoGrijalba
Version: v0.0.1
Commit: 2e03340cded8e2c4039720cb13a3578c47d80749
Reviewed by: @RodrigoGrijalba
Reference: https://github.com/d2cml-ai/JlSensemakr.jl/issues/1#issuecomment-1273497220

Does the prefix Jl mean Julia?
[noblock]

Does the prefix Jl mean Julia?
[noblock]

It does
[noblock]

The prefix seems redundant with the suffix?
[noblock]


Refactoring metaprogramming

Refactoring metaprogramming. Now it uses the mako templating engine. c2cl is now a script that is used inside mako templates. tag2tag was removed.

Added non local means denoising to the liquid engine in two different flavors that differ in the parallelization strategy.

Other QoL and miscellaneous bugfixing.

potential error in the data downloader but that is also happening on main


[New Feature]: Need to create a Nodejs based backend for better functionality

🎮 feature Request
For a modern level website , there is always a need for a backend based on Node / Django / Php / Ruby. As this wwebsite doesn't currently have a backend , I would like to create the needful.
Point down the features

The backend will be created on Nodejs and Expressjs ( JS based )
To keep the frontend like HTML , a similar templating language EJS will be used , which is just like HTML
After creating the basic backend of the website , it will be deployed on Vercel

I would like to do this under GSSoC'24
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@Manaregr8 Please see to it

@Durgesh4993

@Durgesh4993 Please look into this one.

🎮 feature Request
For a modern level website , there is always a need for a backend based on Node / Django / Php / Ruby. As this wwebsite doesn't currently have a backend , I would like to create the needful.
Point down the features

The backend will be created on Nodejs and Expressjs ( JS based )
To keep the frontend like HTML , a similar templating language EJS will be used , which is just like HTML
After creating the basic backend of the website , it will be deployed on Vercel

I would like to do this under GSSoC'24
Select program in which you are contributing
GSSoC24
Code of Conduct

[x]  I follow CONTRIBUTING GUIDELINE of this project.

@Durgesh4993 Please Review it's allignment with project.

@Durgesh4993 Kindly add the level ( for me , I think it is level 3) :))

Yup


python312Packages.wsgidav: 4.3.0 -> 4.3.1

Diff: https://github.com/mar10/wsgidav/compare/refs/tags/v4.3.0...v4.3.1
Changelog: https://github.com/mar10/wsgidav/blob/v4.3.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 298911 run on x86_64-linux 1

10 packages built:

powerhub
powerhub.dist
python311Packages.webdav4
python311Packages.webdav4.dist
python311Packages.wsgidav
python311Packages.wsgidav.dist
python312Packages.webdav4
python312Packages.webdav4.dist
python312Packages.wsgidav
python312Packages.wsgidav.dist


Drops Python 3.7 support and adds Python 3.11 and 3.12

Let's wait for pycdfpp before adding support for Python 3.12


Prevent Default Icon from loading

Is it possible to prevent the default icon from loading at startup? At the moment I have no icons but I have it setup to auto start with openbox. I just want to disable it so that in the future when I do want to add an icon the default one isn't added as well.

Nevermind, I managed to remedy this by removing the loaddesktopicons function from DesktopConfig.cpp, DesktopConfig.h, and XDesktopContainer.cpp


Update New-QuarantinePolicy.md

Issue #8507

Docs Build status updates of commit 7edc0f2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-QuarantinePolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 7ca77b5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-QuarantinePolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-QuarantinePolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Structured scalar values underflow on access

When accessing a scalar from an existing structured array initialized with np.zeros (also happens with np.empty), the field values seem to underflow. This happens even when explicitly assigning 0 to each field. The only consistent workaround I found was to access the scalar immediately in the assignment combined with manually assigning 0 to each field afterwards.
from numba import njit
import numpy as np

structured_array_dtype = np.dtype({
    'names': ('field1', 'field2'),
    'formats': (np.float64, np.int8),
    'aligned': True,
})

def underflowing_structured_scalar():
    structured_array = np.zeros(1, dtype=structured_array_dtype)
    structured_scalar = structured_array[0]
    structured_scalar['field1'] = 0
    structured_scalar['field2'] = 0
    print('array: ', structured_array)
    print('scalar:', structured_scalar)

def functioning_structured_scalar():
    structured_array = np.zeros(1, dtype=structured_array_dtype)
    structured_scalar = np.zeros(1, dtype=structured_array_dtype)[0]
    structured_scalar['field1'] = 0
    structured_scalar['field2'] = 0
    print('array: ', structured_array)
    print('scalar:', structured_scalar)

Python produces the expected output in both cases:
underflowing_structured_scalar()
# array:  [(0., 0)]
# scalar: (0., 0)
functioning_structured_scalar()
# array:  [(0., 0)]
# scalar: (0., 0)

Numba leads to underflow when accessing existing structured array:
njit(underflowing_structured_scalar)()
# array:  [(0., 0)]
# scalar: (-9.86830992e+148, -34)
njit(functioning_structured_scalar)()
# array:  [(0., 0)]
# scalar: (0., 0)

I get this behavior on a Linux environment (Python 3.8.5) and a Windows environment (Python 3.8.6), both with Numba 0.53.0.

Thanks for the report, I think this is a lifetime issue and that something is being deallocated too early. The "underflow" values in the structure scalar suspiciously (0xdededededededede, 0xde):
from numba import njit, objmode
import numpy as np

structured_array_dtype = np.dtype({
    'names': ('field1', 'field2'),
    'formats': (np.float64, np.int8),
    'aligned': True,
})

@njit
def underflowing_structured_scalar():
    structured_array = np.zeros(1, dtype=structured_array_dtype)
    structured_scalar = structured_array[0]
    structured_scalar['field1'] = 0
    structured_scalar['field2'] = 0
    print('array: ', structured_array)
    with objmode():
        print('scalar:', hex(np.float64(structured_scalar['field1']).view(np.uint64)))
        print('scalar:', hex(np.int8(structured_scalar['field2']).view(np.uint8)))
    return structured_scalar

@njit
def functioning_structured_scalar():
    structured_array = np.zeros(1, dtype=structured_array_dtype)
    structured_scalar = np.zeros(1, dtype=structured_array_dtype)[0]
    structured_scalar['field1'] = 0
    structured_scalar['field2'] = 0
    print('array: ', structured_array)
    print('scalar:', structured_scalar)
    return structured_scalar

print(underflowing_structured_scalar())
print(functioning_structured_scalar())

and if I make the decref operation a no-op then the values are correct.
Further:
from numba import njit
import numpy as np

structured_array_dtype = np.dtype({
    'names': ('field1', 'field2'),
    'formats': (np.float64, np.int8),
    'aligned': True,
})

@njit
def underflowing_structured_scalar():
    structured_array = np.zeros(1, dtype=structured_array_dtype)
    structured_scalar = structured_array[0]
    structured_scalar['field1'] = 0
    structured_scalar['field2'] = 0
    return structured_scalar

underflowing_structured_scalar()
print(underflowing_structured_scalar.inspect_llvm(underflowing_structured_scalar.signatures[0]))

gives:
define i32 @"_ZN8__main__34underflowing_structured_scalar$241E"([16 x i8]** noalias nocapture %retptr, { i8*, i32, i8* }** noalias nocapture readnone %excinfo) local_unnamed_addr {
entry:
  %.54 = tail call i8* @NRT_MemInfo_alloc_safe_aligned(i64 16, i32 32)
  %.5.i = getelementptr i8, i8* %.54, i64 24
  %0 = bitcast i8* %.5.i to i8**
  %.6.i = load i8*, i8** %0, align 8
  tail call void @llvm.memset.p0i8.i64(i8* nonnull align 1 dereferenceable(16) %.6.i, i8 0, i64 16, i1 false)
  tail call void @NRT_decref(i8* %.54)
  %.149 = bitcast i8* %.6.i to double*
  store double 0.000000e+00, double* %.149, align 8
  %.164 = getelementptr inbounds i8, i8* %.6.i, i64 8
  store i8 0, i8* %.164, align 1
  %1 = bitcast [16 x i8]** %retptr to i8**
  store i8* %.6.i, i8** %1, align 8
  ret i32 0
}

looks like there's a decref on the structure but live pointers to part of that structure in use in subsequent instructions.

Thanks a lot for the detailed answer @stuartarchibald, that even gives me some pointers (pun intended) on how to debug these things in the future.


Supporting writing files to disk.

Hey,
really cool project. I might be blind, but does this project support storing the midi files back to disk?
Thanks,
Adam

Well, it didn't when you opened the issue, but now it does (as of 0.3). And it's multithreaded™!
Guess this closes the issue :)


result previews

sends the result list as a PM (for endpoints that support collection results).
bonus points: create a new clickable uri that auto posts the gif
i.e., slack://postMessage/#fun/makeit gif id asdfasdf

some discussion here: http://stackoverflow.com/questions/32146706/slack-url-to-open-a-channel-from-browser

slack team confirmed this is not possible, but agreed that it could be a neat concept to look into.


Upgrade to Version 21: Missing Step for (Re-)Publishing the system.app (symbolsonly)

This upgrade side misses a step for publishing the system.app.
Check out older upgrade steps (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-unmodified-application-v16-to-v17#task-6-publish-symbols-and-extensions)

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

ID: 31423217-760c-0c19-b213-b782ba85ddcb
Version Independent ID: 31423217-760c-0c19-b213-b782ba85ddcb
Content: Upgrading Microsoft System and Base Application to Version 21 - Business Central
Content Source: dev-itpro/upgrade/upgrade-unmodified-application-to-v21.md
Service: dynamics365-business-central
GitHub Login: @jswymer
Microsoft Alias: jswymer

Hi, thanks for the feedback.
Starting around version 20, the Invoke-NavApplicationDatabase should install the system symbols automatically when you are going from one major version to the next. Did you happen to get an error or warning when you ran the Invoke cmdlet?

But shouldn't we publish the new version of the system.app?
Or did you mean that  Invoke-NavApplicationDatabase publishs the new System.App Version?

Sorry, yes what I meant is that Invoke-NAVApplicationDatabaseConversion adds the system symbols for the new version to the database, so you don't have to manually publish the System.app extension, as you had to do with early releases.

Okay. thanks for you quick response.
Someone on twitter reported this - I will talk to my it guys internally.

Although it doesn't apply to major version upgrades, but when running a minor update, it's important to use the -force switch with the Invoke-NavApplicationDatabaseConversion cmdlet.

@jswymer

Although it doesn't apply to major version upgrades, but when running a minor update, it's important to use the -force switch with the Invoke-NavApplicationDatabaseConversion cmdlet.

It doesn't apply to version upgrades? Because it specifically states it does in the upgrade manual

As described here.
And it doesn't have force as a mandatory parameter either

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrading-cumulative-update-v22#convert-existing-database-to-new-platform

My statement was referring to using the -force parameter when running a major upprade. The step for the minor update is:
Invoke-NAVApplicationDatabaseConversion -DatabaseServer $DatabaseServer -DatabaseName $TenantDatabase|$ApplicationDatabase -Force


Added Conversation model and basic unit tests

Summary
Conversation models for the new Conversation service.
Additionally, there's a ConversationHelper object that provides STT, TTS, and
Conversation in one object.
Other Information
ConversationHelper has been added but not
integrated to the new REST models due to TTS and STT not
being switched over yet.

@germanattanasio  @vherrin Any thoughts?

Hey @tdalbo92. Sorry for the silence.
We've been working pretty hard to prepare the rest-kit branch for a release and just haven't had the time yet to sit down and thoroughly review this PR.
I'm not sure about @germanattanasio or @vherrin, but I should have time on Monday or Tuesday to review these changes.
Thanks for all of your hard work!

Hey, not a problem at all.  I want to make sure I've done it all right.

Okay, @tdalbo92. I went line-by-line and made comments on the Conversation service.
I skimmed the ConversationHelper code, but I'm confused about the goal that it's trying to address. Can you tell me a bit more about what the ConversationHelper code is intended to do? What does it aim to provide clients that isn't already available in the SDK?
As far as I can tell, ConversationHelper provides an Objective-C wrapper around Text to Speech, Conversations, and Speech to Text. If that's the primary goal, then I wonder if there isn't a better way to support Objective-C applications...
One thing that concerns me is having to update code in multiple places, because one is an Objective-C wrapper. That's really easy to forget. As an example, I almost forgot about a recent bug fix we made to Speech to Text's TranscriptionSettings object, which needs to be ported to the Objective-C wrapper.
I wonder if we could fork the repository and just add NSObject inheritance to many of the objects. Then any changes to the ios-sdk repo could be pulled in and merged into the objc-sdk repo. We might want to look into this further and should also brainstorm other possible approaches.

agree with @glennrfisher. When I was looking at the ConversationHelper I couldn't find a use case where I would use that class.

What could help is to get code written with and without the ConversationHelper so that we can see the value

So, two main reasons why we wanted to have ConversationHelper.  The first is that we were contractually obligated by a certain customer to provide a "WEA SDK", which needed Objective-C compatibility.  Until we're given the OK by someone higher up to remove it, it has to live somewhere (maybe an objc-sdk repo).
The second reason is that we thought maybe a pattern of "STT, Dialog, TTS" would be something useful to have with one object without needing to create service instances for three (or more) separate objects.  I'm not completely sold on this as a solid reason because it's not too hard to create three objects and "orchestrate" on your own.

The Speech-dialog pattern is valid but there is a lack of  value in ConversationHelper right now it only calls the different APIs.

Regarding the Objective-C wrapper. I think it's a good idea but we need to find someone that will own/maintain that wrapper/repo

I agree with @germanattanasio.
I'd be interested to know if we can design the Objective-C wrapper in such a way that it's very easy to maintain. As it stands with this PR, there would be a lot of duplicated code in the repository that exists simply to port the Swift structures to Objective-C.
It might be worth playing around with a fork:

Fork the ios-sdk repository.
Turn all structs into classes that inherit from NSObject.
Modify all enums to have an associated integer value.
Test in Objective-C.

Since Git would maintain and manage the history, any updates to an object in the ios-sdk repository could be pulled into the objective-c-sdk fork. If it works, that seems a lot simpler.
Do we have information on just how required the Objective-C support is? Swift can be integrated and called from within an Objective-C application. This has been our stance so far with the ios-sdk: we embrace the best "Swifty" practices which often sacrifice direct compatibility with Objective-C, but developers who wish to use the SDK can still use it from .swift files within their Objective-C application.

@glennrfisher I'll see if we can get out of the Objective-C obligation, but at the moment it is required that some SDK has Objective-C support somewhere.  If it's not the public WDC SDK, then it'll have to remain internal, but it needs to exist somewhere.
I'm fine with pulling it out of this and putting it back into the internal one we have.

I'll address the rest of your concerns in a commit soon here, and then we can talk about what to do with ConversationHelper.

Closing this because it's messy with ConversationHelper in the mix.  See #298  for the Conversation merge.


hey i am trying to fetch markers nearby user location

Hey guys i am trying to fetch markers nearby user location. I have used haversine formula and stored markers as an object in a selectedMarker array . I can see markers in the array when i console log it but when i am passing it as an MapView.Marker i get warnings can any body help me out
here is the function which calculate distance and stores marker in an array
getWithinDistance: function(){
    var selectedMarker = [];
    var lat1 = this.state.region.latitude;
    var lon1 = this.state.region.longitude;
    for(var i = 0 ; i <= 3 ; i++)
      {
      var lat2 = this.state.a[i].latitude;
      var lon2 = this.state.a[i].longitude;
      var R = 6371;
      var dLat = (lat2-lat1) * (Math.PI/180);
      var dLon = (lon2-lon1) * (Math.PI/180);
      var a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos((lat1) * (Math.PI/180)) * Math.cos((lat2) * (Math.PI/180)) * Math.sin(dLon/2) * Math.sin(dLon/2);
      var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
      var d = R * c;
      if(d <= 2.00){
        var latlng = {
          latitude: lat2,
          longitude: lon2
        }
        selectedMarker.push(latlng);
      }
      }
      console.log(selectedMarker);
      var at = selectedMarker.map(marker => {
        return(
          <MapView.Marker coordinate={marker.latlng} />
        );
      })

  },

and here is the snap what i can see after running the app

You are incorrectly referencing marker.latlng instead
var at = selectedMarker.map(marker => {         return(           <MapView.Marker coordinate={marker} />         );       })


Socket Exhaustion Starvation Issue

Just a heads up.
The library is susceptible to Socket Exhaustion issues due to creating a new HttpClient for each request.  I did hit it myself but it is easy enough to duplicate.
https://www.aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/

Good call! I'll get to work on a fix. Appreciate it!

Available in v1.3.0!


Setting/number failed

Unable to connect to firebase ,please help ,urgent
For Firebase_demo code

same thing happening with my nodemcu also

even i have the sane problem...

I´m with the same problem and i don´t know what i should do to solve!

You need to use the newest headerfiles. You can download the repo as a zip and inlcude the neccesary files by hand. This is not an elegant solution, but it works.

I'm having the same problem, I downloaded it again, updated but it does not work.
Someone?

I downloaded it again too, but not work.

Guys, I've been able to solve my problem.
I removed the bar "/"  from the end of the url
Ex:
#define FIREBASE_HOST "test.firebaseio.com"
That's Work!!!

I removed the second parameter of the method Firebase.begin(FIREBASE HOST); I passed the firebase host only and work to me!!

Hi, I had the same problem. I was using the wrong token. Apparently you have to go to Firebase "Settings" > "Service Accounts" tab > under Legacy Credentials click "Database Secrets" > select your firebase project anda click "Show".
The following video shows how to get the token.
youtube

Thanks bro. I will watch your video! In my case I removed the key.

It’s not my video, but I hope it will help.  :)

Thanks for figuring that out!

maybe it will help https://youtu.be/VrBPvXSxYAI

After the strive of whole day long, at last I reached to solution that the file "FirebaseHttpClient.h" had a problem.
(C:\Users\XXXXX\Documents\Arduino\libraries\firebase-arduino-master\src  )
Just change the fingerprint in "static const char kFirebaseFingerprint[]" to another one [without : ] . You can find one for yours here"https://www.grc.com/fingerprints.htm". Just scroll down and put your firebase host (ie. https://xxxxxxx.firebaseio.com/) here.
found same kinda problem here "https://github.com/firebase/firebase-arduino/issues/236"

@ArsamHashmi I think fingerprint not change from 1 year ago.. because i use old libary 1 year ago..
recently i check still remain the same

@adamrabbani I'm new to this stuff so please correct me if I'm wrong. I tried it on old library today. It refused to work on the fingerprint found in the firebase console idk why but it worked like a charm when i used the upper link to find fingerprint.
A little bird told me that it's only compatible with version 1.6.9 of arduino ide. Not sure about this one

@ArsamHashmi
i use the newest arduino IDE 1.85.
i think library you using is old libary but old fingerprint..
so when you change old fingerprint to new fingerprint.. so working perfectly..
btw, what version library are you using ?
use this library for while.. https://github.com/RaemondBW/firebase-arduino.
this old library but the newest fingerprint so work smoothly..
*but function like "stream" doesnt work

@ArsamHashmi just now firebase fingerprint has changed..
6F D0 9A 52 C0 E9 E4 CD A0 D3 02 A4 B7 A1 92 38 2D CA 2F 26

@adamrabbani  yesterday I came across the same thing. I'm 100% sure that this tweak can solve the problem. Thanks for updating

Fingerprint updated with #368

Bütün gün süren gayretten sonra, en sonunda "FirebaseHttpClient.h" dosyasının bir problemi olduğu sonucuna vardım.
 Burada sizin için bir tane bulabilirsiniz " https://www.grc.com/fingerprints.htm ". Sadece aşağı kaydırın ve firebase sunucunuzu buraya yerleştirin (ör. Https://xxxxxxx.firebaseio.com/ ).
Burada aynı sorun bulundu " # 236 "
sorguma  sonucu
AN ERROR OCCURRED

That's worked for us, thanks a lot.

I tried everything you guys mentioned above (check the fingerprint, switch to the old library but with the new fingerprint, delete key), but none of them work for me.... omg, what can I do now, pls help...

@leozhoushu please am facing the same problem here, i have changed the fingerprint, tried removing the secrete-key, tried old library, but non of these solution work for me, please if you find solution do let me know, thanks

Just upload your sketch and you getting Setting/number failed and then press reset button on your esp8266 nodemcu than its been working great for you. it is worked for me

@khoiwalvikram2 thank you and all for your help, now working!, my problem was actually from the host url (was https://iothome-xxxxx.firebaseio.com/ instead of iothome-xxxxx.firebaseio.com )

Its fixed!!!
go to C:/Users/{username}/My Documents/Arduino/libraries/firebase-arduino-master/src
open FirebaseHttpClient.h file, and paste following fingerprint =>
6F D0 9A 52 C0 E9 E4 CD A0 D3 02 A4 B7 A1 92 38 2D CA 2F 26
Now build and upload the sketch to NodeMCU using Arduino IDE

I am facing same problem.Setting / number failed:
Please help.

@joy2012bd Updated fingerprints ?

@joy2012bd Updated fingerprints ?

Yeah.The problem is solved.But another issue with get value. Firebase.getString("S2").toInt(); always return 0. Any suggestion? What is the perfect way to get value of a key? Is .Firebase.getFloat() enough to get all types value?

@joy2012bd I too had similar issue. Try this 2 methods

Delete the location S1 from firebase.
In void setup() add  **Firebase.set("S1", 0); **

Inside void loop
**int S1_value = firebase.getInt("S1"); **

Let me know if it fix the issue.

@joy2012bd I too had similar issue. Try this 2 methods

Delete the location S1 from firebase.
In void setup() add  Firebase.set("S1", 0);
Inside void loop
int S1_value = firebase.getInt("S1");

Let me know if it fix the issue.

Thank you so much.It worked for me.But another issue.After running few seconds it returns error in Serial monitor setting number failed: And it does not stop until the reset switch is pressed.
I am using the code below.
#include <ESP8266WiFi.h>
#include<FirebaseArduino.h>
#define FIREBASE_HOST "***"                     //Your Firebase Project URL goes here without "http:" , "\" and "/"
#define FIREBASE_AUTH "***"       //Your Firebase Database Secret goes here
#define WIFI_SSID "***"             //your WiFi SSID for which yout NodeMCU connects
#define WIFI_PASSWORD "***"        //Password of your wifi network

void setup()
{
  Serial.begin(115200);                                                   // Select the same baud rate if you want to see the datas on Serial Monitor
  WiFi.begin(WIFI_SSID,WIFI_PASSWORD);
  Serial.print("connecting");
  while (WiFi.status()!=WL_CONNECTED){
    Serial.print(".");
    delay(500);
  }
  Serial.println();
  Serial.print("connected:");
  Serial.println(WiFi.localIP());

  Firebase.begin(FIREBASE_HOST,FIREBASE_AUTH);
  Firebase.set("loads/switch1",1);
}
void firebasereconnect(){
  Serial.println("Trying to reconnect");
    Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}

void loop(){
  if (Firebase.failed()){
      Serial.print("setting number failed:");
      Serial.println(Firebase.error());
      firebasereconnect();
      return;
  }

  int S1_value = Firebase.getInt("loads/switch1");
  Serial.println(S1_value);
}

Any suggestion will be highly appreciated.Thank you.

@joy2012bd I too had similar issue. Try this 2 methods

Delete the location S1 from firebase.
In void setup() add  Firebase.set("S1", 0);
Inside void loop
int S1_value = firebase.getInt("S1");

Let me know if it fix the issue.

Thank you so much.It worked for me.But another issue.After running few seconds it returns error in Serial monitor Trying to reconnect setting number failed: And it does not stop until the reset switch is pressed.
I am using the code below.
#include <ESP8266WiFi.h>
#include<FirebaseArduino.h>
#define FIREBASE_HOST "***"                     //Your Firebase Project URL goes here without "http:" , "\" and "/"
#define FIREBASE_AUTH "***"       //Your Firebase Database Secret goes here
#define WIFI_SSID "***"             //your WiFi SSID for which yout NodeMCU connects
#define WIFI_PASSWORD "***"        //Password of your wifi network

void setup()
{
  Serial.begin(115200);                                                   // Select the same baud rate if you want to see the datas on Serial Monitor
  WiFi.begin(WIFI_SSID,WIFI_PASSWORD);
  Serial.print("connecting");
  while (WiFi.status()!=WL_CONNECTED){
    Serial.print(".");
    delay(500);
  }
  Serial.println();
  Serial.print("connected:");
  Serial.println(WiFi.localIP());

  Firebase.begin(FIREBASE_HOST,FIREBASE_AUTH);
  Firebase.set("loads/switch1",1);
}
void firebasereconnect(){
  Serial.println("Trying to reconnect");
    Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}

void loop(){
  if (Firebase.failed()){
      Serial.print("setting number failed:");
      Serial.println(Firebase.error());
      firebasereconnect();
      return;
  }

  int S1_value = Firebase.getInt("loads/switch1");
  Serial.println(S1_value);
}

Any suggestion will be highly appreciated.Thank you.

Not sure about it. Try without firebasereconnect()
you can refer to this code

Abort called

stack>>>

ctx: cont
sp: 3ffffd50 end: 3fffffc0 offset: 01b0
3fffff00:  3ffe863a 00000028 3ffeedd0 40204693
3fffff10:  3fff6f3c 00000000 3fffff50 402075e0
3fffff20:  3fffff50 3ffeedd0 3fffff50 40207616
3fffff30:  3ffe863a 3ffeedd0 3ffeee6c 3ffeeef0
3fffff40:  00000001 3ffeedd0 3ffeee6c 4020287f
3fffff50:  3fff2c0c 0000002f 00000028 3fff3234
3fffff60:  0000001f 00000019 00000000 402070f0
3fffff70:  3fffdad0 3ffeedd0 3ffeee6c 402028fa
3fffff80:  00000000 00000000 00000000 00000000
3fffff90:  00000000 00000000 00000001 4020810d
3fffffa0:  3fffdad0 00000000 3ffeeec0 40208198
3fffffb0:  feefeffe feefeffe 3ffe8590 401008b5
<<<stack<<<
last failed alloc call: 40212604(16)
ets Jan  8 2013,rst cause:2, boot mode:(3,0)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v951aeffa
~ld
connecting.....
connected:<IP_ADDRESS>
this is the error on  serial monitor not connecting with firebase pls help me out

After the strive of whole day long, at last I reached to solution that the file "FirebaseHttpClient.h" had a problem.
(C:\Users\XXXXX\Documents\Arduino\libraries\firebase-arduino-master\src )
Just change the fingerprint in "static const char kFirebaseFingerprint[]" to another one [without : ] . You can find one for yours here"https://www.grc.com/fingerprints.htm". Just scroll down and put your firebase host (ie. https://xxxxxxx.firebaseio.com/) here.
found same kinda problem here "#236"

Thanks. It worked!

Try this method:
use latest firebase arduino library from the github.
use firebase 5.13.5
use esp8266 board manager 2.6.0
use firebase database rule like this
{
"rules": {
".read": "true",
".write": "true"
}
}
use firebase url like this : ######.firebaseio.com
then everything will work

dont use the firebase token in the script

dont use the firebase token in the script
Awesome, like butter!!

After the strive of whole day long, at last I reached to solution that the file "FirebaseHttpClient.h" had a problem.
(C:\Users\XXXXX\Documents\Arduino\libraries\firebase-arduino-master\src )
Just change the fingerprint in "static const char kFirebaseFingerprint[]" to another one [without : ] . You can find one for yours here"https://www.grc.com/fingerprints.htm". Just scroll down and put your firebase host (ie. https://xxxxxxx.firebaseio.com/) here.
found same kinda problem here "#236"

This worked for me, Thanks a lot!!!

hi, i make a same error, i was change fingerprint but it still don't work, can anyone tell me how to u slove it, please

Well, I managed to solve my problem which was the same as the ones above, I did the following steps, I changed the esp8266 core to version: 2.4.1, I put the json arduino to: 5.13.1 and finally, I did it the video steps:https://www.youtube.com/watch?v=ZZ5JvSA-Ed8&ab_channel=TrickSumo

@vienbu  follow this video, I had the same problem:https://www.youtube.com/watch?v=ZZ5JvSA-Ed8&ab_channel=TrickSumo

Above methods tried but same problem occur,have any solution for this?

The error comes when Firebase Fingerprint is expired and your NodeMCU keeps trying to connect to Firebase.
The solution of the error is to generate a new fingerprint and insert in code.
The steps on how to generate and new key and insert is here- https://stackblogger.com/setting-number-failed-firebase-nodemcu/

Hi, I make a "setting/number failed error".  I'm using nodemcu esp8266. I installed arduino json 5.13.1 version and esp8266 2.4.1 version and ı updated firebase fingerprint. But it doesn't work for me :( Please help.

I removed the second parameter of the method Firebase.begin(FIREBASE_HOST); I passed the firebase host only and work to me!!

I'm sorry could you elaborate more : for example my firebase host is this (randomdata-39a3b-default-rtdb.firebaseio.com)


Add Support For Intellij 2024.2

Hello, this theme is not supported on intellij idea 2024.2, it would be awesome to add support, thanks in advance.

Hi @AFBadBoy
Thanks for reporting it.
I've deleted the until-build attribute so the plugin will be supported by all new Intellij Idea versions. I don't why I haven't done it earlier...
Please, update the plugin to 1.0.5 version when it becomes available (usually it takes 2 business days from JetBrains team to approve the new plugin version)

thank you for the quick timing


Unable to make xRDP connection using TLS certificate

I'm a novice to much of this, so I decided to use this github guide suggested to me by a nice person on this subreddit: https://github.com/neutrinolabs/xrdp/wiki/TLS-security-layer
I followed the github instructions as described, but I'm now no longer able to xRDP in with or without an SSH tunnel.
To provide some perspective, I'm using an Ubuntu 20.04.4 client to access a Debian 11 remote server. Both machines are updated and placed on the same VLAN.
Here were the exact steps I took in my Debian server as root:

Security changes made to xrdp.ini and xRDP was restarted

tls_cipher=high

security_layer=tls

The system was restarted, there were no issues yet

Generate a private key and self-signed certificate

$ openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 3650

Move key.pem (private key) and cert.pem (self-signed certificate) to /etc/xrdp/

The path to the key.pem and cert.pem was specified in xrdp.ini (global)

certificate=/etc/xrdp/cert.pem

key_file=/etc/xrdp/key.pem

Users were added to ssl-cert group

xRDP service was restarted, server was restarted

Was not able to log into xRDP, but SSH worked just fine

For reference, here is my xrdp.ini file: https://pastebin.com/Su2igSwn
Here were the outputs I received when I switched security_layer from rdp to tls: https://imgur.com/a/cgRqL7D
I was able to temporarily fix the issue by going into xrdp.ini (global) and changing security_layer from tls to rdp. When I did that, xRDP worked again.
Any suggestions?

File permissions?
On Debian (unless you're building from source), xrdp runs as the xrdp user.
You only need to worry about the ssl-cert group if you're using the standard Debian 'snakeoil' certificates. If you're setting up your own certificates you don't need to do this.
What do you get for ls -l /etc/xrdp/key.pem /etc/xrdp/cert.pem?
Certificate should be owned by root:root, permissions 644. Key should be owned by root:xrdp and should have permissions 640.

@matt335672 Thank you, when I run the command I see the below permissions:
-rw-r--r-- 1 root root 1558 Jun 26 22:57 /etc/xrdp/cert.pem
-rw------- 1 root root 1704 Jun 26 22:55 /etc/xrdp/key.pem
From here, should I try running "$ chmod 644 /etc/xrdp/cert.pem" and "$ chmod 640 /etc/xrdp/key.pem"?

In addition to that,
chown :xrdp /etc/xrdp/key.pem

The cert is fine. It's world-readable, as it should be as it contains no secrets.
The key does contain a secret and so it needs to be readable by xrdp. If you do the chmod 640 ... and the chown :xrdp as @metalefty suggests, you should end up with:-
-rw-r----- 1 root xrdp 1704 Jun 26 22:55 /etc/xrdp/key.pem

Does that make sense?

No further input - closing.

Fantatstic, this helped me acces my kalilinux 2023 purple with xrdp. I followed instructions /1
https://www.kali.org/docs/general-use/xfce-with-rdp
but it stops at starting the service and when I tried to RDP to the kali box my login was rejected. After issuing the 3 commands, I was able to RDP like a charm, so many thanks. Thanks @matt335672 again for your help

I believe it's documented in /usr/share/doc/xrdp/README.Debian . I recommend you guys see distro-specific README when using the distro package.
https://salsa.debian.org/debian-remote-team/xrdp/-/blob/debian/<IP_ADDRESS>-1/debian/README.Debian?ref_type=tags

@metalefty Thanks, but in the link you provided it indicates only
Consider using TLS encryption instead of the default RDP encryption.........
but it does not say how (I am not a security expert), can you please tell me how this can be done?
Thanks again

It is definitely there!

Don't forget that xrdp might have to be a member of the ssl-cert group to read your private key.

@metalefty xrdp is not a user it is a group, what I understand that we cant add a group to a group. So my comment is "How to make xrdp member of ssl-cert? Thanks

I'm not familiar with  Kali Linux however xrdp is a user and also a group at least on Debian/Ubuntu. So we CAN add xrdp user to ssl-cert group.
ubuntu@jammy:~$ id xrdp
uid=114(xrdp) gid=123(xrdp) groups=123(xrdp)

root@jammy:/etc/ssl/private# ls -l
total 4
-rw-r----- 1 root ssl-cert 1704 Nov 14 08:12 ssl-cert-snakeoil.key

The following command adds xrdp user to ssl-cert group.
root@jammy:/etc/ssl/private# usermod -G ssl-cert xrdp
root@jammy:/etc/ssl/private# id xrdp
uid=114(xrdp) gid=123(xrdp) groups=123(xrdp),122(ssl-cert)

There is also a guide added by Debian maintainers in xrdp.ini. I think the documents added by Debian team are very good. All Debian-specific SSL stuff is already explained in their documentation. So I recommend everyone to read Debian documentation first when using xrdp on Debian-based distro.
https://salsa.debian.org/debian-remote-team/xrdp/-/blob/debian/<IP_ADDRESS>-1/debian/patches/document-certs.diff
adduser xrdp ssl-cert will make the same result with usermod -G ssl-cert xrdp.
root@jammy:/etc/ssl/private# id xrdp
uid=114(xrdp) gid=123(xrdp) groups=123(xrdp)
root@jammy:/etc/ssl/private# adduser xrdp ssl-cert
Adding user `xrdp' to group `ssl-cert' ...
Adding user xrdp to group ssl-cert
Done.
root@jammy:/etc/ssl/private# id xrdp
uid=114(xrdp) gid=123(xrdp) groups=123(xrdp),122(ssl-cert)

So many thanks @metalefty , OK, I did and will read the doc,  but tell me I need also to execute the 3 mentioned commands as well
chmod 644 /etc/xrdp/cert.pem
chmod 640 /etc/xrdp/key.pem
chown :xrdp /etc/xrdp/key.pem

Then it might be a Debian documentation issue. Report it to Debian team. We're not responsible on that.
Anyway, Debian does distro-specific customization on SSL certiticates. Following Debian documentation is the most standard way that package maintainer expects. If their guide will not working, report it them.

@eliassal

OK, I did and will read the doc, but tell me I need also to execute the 3 mentioned commands as well
chmod 644 /etc/xrdp/cert.pem
chmod 640 /etc/xrdp/key.pem
chown :xrdp /etc/xrdp/key.pem

I don’t know about Kali Linux, but on Debian, it's not necessary. The SSL private key is owned by the "ssl-cert" group. The "xrdp" user is the user that runs the "xrdp" binary, and has to have access to the key if you want a TLS connexion. So either you add the "xrdp" user to the "ssl-cert" group ( sudo adduser xrdp ssl-cert ), or you change the group owning the key to the "xrdp" group ( chown :xrdp /etc/xrdp/key.pem ), which the "xrdp" user is part of.
The 2 other commands ( chmod 644 /etc/xrdp/cert.pem and chmod 640 /etc/xrdp/key.pem ) seem unnecessary, since the 2 files already have 644 (cert) and 640 (key) permissions (on Debian at least). If you want to make sure, you can run sudo stat -L -c %a /etc/xrdp/key.pem and sudo stat -L -c %a /etc/xrdp/cert.pem commands.

Hi @metalefty , its me again. I downloaded the kali linux 2024, followed all steps but still I get "Connection Refused". I thought it was a firewall issue. I did

ufw allow 3389/tcp but it seems that no firewall is installed

Always getting "Could not open connection to the host, on port 3389"
I tried to telnet to 3389 port from win machine I get
Connecting To <IP_ADDRESS>...Could not open connection to the host, on port 3389: Connect failed
When I run Port scanner, 3389 is not listening in spite of the fact that xrdp is up and running on the kali linux machine. Doing

netstat -tnlp | grep 3389

returns nothing, how can this be possible? Thanks for your help

After digging in the xrdp.ini file, I saw
port=vsock://-1:3389
I changed it to
port=tcp://:3389
and hop it worked fine and was able to connect using RDP


[Feature request] Xbox 360 Legacy edition TU1

Add Xbox 360 TU1 as a generator since being in a limited world can be interesting and feels cosy, it also brings back nostalgia playing 360 so this would fit the plugin. Since TU1 terrain is the same as Beta 1.7.3 it could be easy to implement, you would just need to generate infinite flat ocean after 432 blocks out and smooth the edge to the infinite ocean like it's done on 360. But you'll need to make sure they are exactly the same terrain shape smoothing on the edge.
Hope you like my suggestion.

Rather late to this, but yeah this would be pretty cool! Would also be useful for friend groups etc who want to create a single "island" to play on. Maybe a configurable size option for Xbox One/PS4-esque worlds?

This would be really cool

Maybe all TUs generations, and maybe even Xbox One's EUs would be a good idea too.

I'd like to see that, too.
I quite enjoyed playing on the 360, and the limited map size is quite nice in multiplayer. A much more natural border than the literal world border.
I would like to see the border distance be customizable, though.

I know this is an older thread, but please look forward to the upcoming 1.19.4 update. =)

Oh dang, are they doing it? I've love to see that. Especially if it is this original version of the terrain.

Well, I don't know exactly how it's done in the old TU editions, but it should look very close.

It was basically alpha or beta 1.7 terrain, but it dropped off quickly around the edges of a square map in to the ocean.
There was also a sort of invisible 'world border' past the edge, and I remember that, while the inner playable area of the map dropped down on the edges, the inaccessible outside world past that was flat, and often several blocks higher than the lowest part of the playable area, so you could see this wall underwater.

Yes, I'm aware of how it 'looks', I meant on a technical level. As such, I wouldn't be able to guarantee 100% accuracy with the generation.

A world preset emulating the old TU world generation has been added with 6.0+1.19.4 as an alt world preset called "Beta Xbox Legacy".

Ah, I found it! You have to actually hold Alt while clicking the button to reach these settings.
Although, it seems the world can't be displayed on a single map anymore. Is there any way to adjust the 'map center' so it can show the whole island, or adjust the position of the island itself so it lines up with the map?


Add emulator support

I'd like to use this driver to run queries against https://github.com/goccy/bigquery-emulator, which is a new emulator for BigQuery.

Based on some quick tests, in addition to the scopes query parameter which was added in #10, two new parameters are required which correspond to option.WithoutAuthentication() (true when set, false otherwise) and option.WithEndpoint() (string). For the endpoint one, I tested passing in http://<IP_ADDRESS>:9050 and that worked just fine.
Please let me know if this addition interests you. Happy to send a PR.

Wow, I was just looking for it, thanks for contribution. Can you add example usage of it to readme too?

@Mistic92 Good point, I should've done that... I'll add it to my list, since I also want to add this driver to https://benthos.dev for the sql_select / sql_insert / sql_raw components. Currently, it only has gcp_bigquery_select which isn't very flexible and I want people to be able to also stream data to BigQuery using Benthos.


#10111 - Puppet should do OCSP instead of CRL

Hi,
Please find my attempt at bringing OCSP to Puppet.
OCSP is a way for a node in an X509 PKI to check the validity of a peer certificate. For this, the node sends to a 3rd party an OCSP request, the 3rd party (usually the CA) checks the certificate and returns an OCSP response.
In the Puppet ecosystem, the Puppet CA acts as the OCSP responder. It receives OCSP requests sent through REST at the ocsp indirection, checks the certificate status in the CA CRL and returns an OCSP response (in a YAML format because that's the only way it could work). OCSP has no interest in terms of security if the master is also the CA.
The OCSP verification can be enabled on both the client and the server. On the client side, all the server certificate chain is verified against the OSCP responder. On the server, only the current client certificate is checked. On non-webrick servers, the SSL endpoint should be configured to forward (usually as an http header) the client certificate if OCSP verification is enabled server side (check the commit message for instructions).
OCSP is enabled with the configuration settings --ocsp_verification.
The OCSP verifier contains a cache to not abuse the OCSP responder on every requests (the cache entries expires after --ocsp_ttl (usually 3600).
Note: I was unable to test with a passenger setup. Although I believe the passenger-only code is correct, it's possible that it might be buggy.
Note2: There is no caching in the CRL check. And the CRL check is sequential. This might be a performance issue for large CRL.
Thanks,

Please see comments in the ticket: https://projects.puppetlabs.com/issues/10111

I'm closing this pull request in favor of #510 which contains a branch based on master.


FancyZones lost layout settings with every windows restart

Microsoft PowerToys version
0.45
Running as admin

[X] Yes

Area(s) with issue?
FancyZones, FancyZones Editor
Steps to reproduce

Fresh installed Windows 10 21H1.
Fresh installed PowerToys 0.45 with running as admin.
FancyZones layout configured and works well.
Restarted the windows
PowerToys auto started with windows, but the FancyZones layout is lost
I tried to disable the PowerToys auto starting, but the issue persists even if I manually start it.

✔ Expected Behavior
Set FancyZones layout once and it remains the same with every windows restart.
❌ Actual Behavior
Lost the FancyZones setting with every windows restart
Other Software
Windows 10 21H1

Seems like #13069 to me.

I fixed it by deleting the customized layout and create a new one, everything works well now.

Great! you can nw close this issue by clicking the button below.

Great! you can now close this issue by clicking the button below.

No worries mate, I'm closing it now. Thanks!


loading GIF images in sass file

Hi, I'm having trouble loading a GIF image specified as the background in a SASS file.
This is the line in SASS:

background-image:url(./../../loadingAnimation/assets/loader-ta-colors-thin.jpg);

And this is the loader configuration in grunt file:

{
"test":/.(jpe?g|png|gif|svg)$/i,
"loader":[ 'url?limit=10000', 'img?minimize' ]
}

When I run grunt, I get this error:

ERROR in ./source/_views/loadingAnimation/assets/loader-ta-colors-thin.jpg
Module parse failed: /Users/////source/_views/loadingAnimation/assets/loader-ta-colors-thin.jpg Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./~/css-loader!./~/sass-loader!./source/_views/appView/styles/app-view.scss 2:639-707

*had to comment out some of the file path frags

Oops, found an error in the config file. Sorry to waste DB space.


Project specific vs general

How can we take care that the work remains as general as possible?
For instance, in handling the most Mondrian-specific aspects (e.g. references to the RDK database for people and artworks)

We will collect Mondriaan specific aspects in several yaml files.
For example, the /programs/tei.yaml file.
We can add yaml files to specify the context outside the TEI elements, such as RKD urls.


Ensure that device.is_enabled() returns a boolean.

This helps when e.g. creating numpy arrays.

Coverage remained the same at 93.333% when pulling fabf002a82b14e24871f1f47f982158fc730dc2c on enablers into 486c2cfe8214561ff3375704edd631017e4eaa38 on master.


Add vinyl

Adding Vinyl under the author's permission:

I don't personally use Stackage, and so I'm not familiar with how it works.
You have my permission to add Vinyl to the Stackage snapshot, however.

The benchmark and test-suite both depend on an older version of vinyl. I usually leave the version constraints on the library itself out since cabal doesn't allow that to vary.

Sorry, I can't understand for your concern quite clear. Bench is depended on Vinyl  >= 0.5.1. Test is requiring Vinyl >= 0.5. I'm trying to propose Vinyl 0.5.1. Could you please give me more information regarding to this issue.

It's what I see on hackage: http://hackage.haskell.org/package/vinyl-0.5.1/vinyl.cabal

Тhank you. I will contact package author and ask him to update cabal file. It is actually updated on github but not yet published.

Hackage version was updated.

restarted the travis build

Looks good now. Thanks!


Bump Identity Apps Version

$subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/2752826125

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/2752826125
Status: failure


Add Beast package and example.

Ready to merge.

Testing:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1816
https://travis-ci.org/ingenue/hunter/builds/240850836?utm_source=github_status&utm_medium=notification

I've also hunterised b50 but it is very different to b32 so I think it should have its own branch: hunter-packages/Beast:hunter-b50

Is there an easy way to restrict ingenue to only test platforms Boost compiles on?

As usual, send pull request with excluded toolchains to<EMAIL_ADDRESS>

Testing:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1822
https://travis-ci.org/ingenue/hunter/builds/241169461?utm_source=github_status&utm_medium=notification

Looks like only vs2015 for this project.
Linux needs to be told to use c++11 somewhere.

Linux needs to be told to use c++11 somewhere

If you're talking about default toolchain then just exclude it. This toolchain designed to be used without any extra flags.

Looks like only vs2015 for this project

Excluding it will be the easiest solution. You can always fix issues later.

Testing:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1828
https://travis-ci.org/ingenue/hunter/builds/241192431?utm_source=github_status&utm_medium=notification

I excluded it and all working but a bit curious about default toolchain. If the toolchain is designed to be used without flags but a package requires a certain flag, shouldn't that package add that flag to its own build?

shouldn't that package add that flag to its target?

Global entities should go to global places. In this case it should be toolchain.
Take a look at this example:

http://cgold.readthedocs.io/en/latest/tutorials/libraries/symbols/odr-global.html

Uploading:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1833
https://travis-ci.org/ingenue/hunter/builds/241513110?utm_source=github_status&utm_medium=notification

Released: https://github.com/ruslo/hunter/releases/tag/v0.19.9


Incorrect undefined label warnings in MASM procedures

Look at the screenshot.

the LookupAPI Lable can't be identified correctly in mian procedure.

Yes, I see, that is indeed an annoying bug. I can't resolve that in 20 min, with a bit of luck I can fix that in the weekend.

Waiting for your good news :)

@slivermeteor maybe need help for @HJLebbink ?

Could you please check whether version <IP_ADDRESS> solves your issue.

Yeah,I have been using the new version.It seems solves the old issue because there is no warnings in the procedure.But another problem that the all highlight are out of action happened.

After founding the new issue, I reinstall the old version(<IP_ADDRESS>).In this version, everything works fine except the old issuse.So I believe the failure phenomenon is a new issuse of the new version(<IP_ADDRESS>).

Hi @slivermeteor, could you explain the phrase "But another problem that the all highlight are out of action happened." means. What version of VS are you using?

Ah, I see, somehow things break down in VS2015, probably in an include (from VS2017) that is not compatible with VS2015.

Fixed in version <IP_ADDRESS>