Categories
Mastering Development

How to clear a Text Input in power automate desktop

How to clear a Textbox in power automate desktop flow ? My flow can key a ‘hello’ string in a windows textbox. Every thing seems perfect, but run the flow second time the textbox content become to ‘hellohello’. So I need clear the textbox first before key in ‘hello’. How to do it?

Categories
Mastering Development

Why does my JWT expiresIn value change between sending it from the server and receiving it on the front-end?

I set my token expiry date on the server and console.log out the value to check: However, when I check the value on my React front-end, I get this value: I don’t alter the expiry date in any way but the value is changed dramatically between sending it and receiving it. Does anyone have any […]

Categories
Mastering Development

Problem with SwiftUI and foreach on Xcode playground

i am trying to execute a simple code in SwiftUI but it shows error: Execution was interrupted, reason: signal SIGABRT. here is a code ` struct ContentView: View { let data = (1…100).map { "Item \($0)" } let columns = [ GridItem(.adaptive(minimum: 80)) ] var body: some View { ScrollView { LazyVGrid(columns: columns, spacing: 20) […]

Categories
Mastering Development

drawing a value from a vector r

After removing the values from the vector from 1 to 100 I have the following vector: w [1] 2 5 13 23 24 39 41 47 48 51 52 58 61 62 70 71 72 90 I am now trying to draw values from this vector with the sample function for(x in roznica) { if(licznik_2 […]

Categories
Mastering Development

Why .NET 5 GC doesn’t collect (or at least calling Finalize) clearly dereferenced objects?

I wanted to test the Garbage Collector and having tough time doing so. I Written the following trivial test code: using System; class Foo { int i; public Foo(int v) { i = v; Console.WriteLine($"{i} was born"); } ~Foo() { Console.WriteLine($"{i} has died"); } } public class Program { [STAThread] public static void Main(string[] args) […]

Categories
Mastering Development

OneDrive Graph API: Get User ID associated with drive ID

I have an ID of an OneDrive drive. Is there any way I can figure out the user ID to whom the OneDrive drive belongs to?

Categories
Mastering Development

Extracting objects from json objects against matching subfields using presto

I have data that’s been crawled through using AWS Glue and I’m querying using Athena, ie Presto. The data is originally JSON. The data I’m interested in looks something like the following: { … [ … { ‘items’ : [ { ‘label’ : ‘label-a’, ‘description’ : ‘description-a’ }, { ‘label’ : ‘label-b’, ‘description’ : ‘description-b’ […]

Categories
Mastering Development

Implementing ThreeJS Transform control to Autodesk Forge Viewer

I’m trying to include ThreeJS Transform control into my Forge Viewer, using this tutorial: https://adndevblog.typepad.com/cloud_and_mobile/2015/08/moving-visually-your-components-in-the-viewer-using-the-transformtool.html Currently I am able to insert the Transform Control into the viewer, but cannot interact with it. In my code, I have to change a bit from the tutorial. Instead of adding overlay, I’m adding a scene and then add […]

Categories
Mastering Development

Feathers js – how to login by google

I am following the doc to create google strategy. When I access http://localhost:3030/oauth/google through browser, below error occurs: Error Code 400: redirect_uri_mismatch The redirect URI in the request, https://localhost/oauth/google/callback, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/12345678-xxxx.apps.googleusercontent.com?project=xxxxyyyy authentication.js const { AuthenticationService, AuthenticationBaseStrategy, JWTStrategy } = […]

Categories
Mastering Development

How to iterate through javascirpt array with a sleep/delay?

I am trying to set view & marker at one geo location and after a delay/sleep set the marker in another location. I’m using leaflet.js. There is a data array [ { "city": "City_1", "lat": 8.702127234287211, "lon": 77.1684975438538, "temp": 25, "icon": "🥑" }, { "city": "City_2", "lat": 9.083099761723636, "lon": 74.81806072890778, "temp": 0, "icon": "🥦" } […]