28 June 2020

Game built in Angular and Typescript- for Android users with NativeScript

During the corona virus vacation, I took the time to learn something new- NetiveScript.
I took a course - at one of the best in the market - Maximilian Schwarzmüller.

https://pro.academind.com/p/nativescript-angular-build-native-ios-android-web-apps

I built a game for my girls.

For Hebrew speakers
Ages 2-4 they will learn Colors, Shapes and Animals.
Ages  4-6 who will teach Numbers and Letters
Ages  6-9 who will teach addition and multiplication .. and learning English in stages ... Letters Numbers, Colors, Shapes and Animals.
For English speakers, the same thing only in English.

Now because everything is object-based .. I tried another language - Spanish .. In the meantime, there are only Numbers and Animals.


The game itself is written in angular and typescript.
It has 3 main components.
Component for choosing a language, Component for chose a game and of course Component of the game itself..

NativeScript gives me, as a web developer, the ability to build an app for both Android and iOS

The game is now in Google play - and Called - My First Game

https://play.google.com/store/apps/details?id=org.nativescript.roifirstgame

Over time, I'll post my insights from NativeScript

Install ... Let the kids play and I'd love to get feedbacks ...
Roi


26 June 2020

SharePoint Service Provisioning - the service stuck on starting

When I tried to run SharePoint service - Manage Metadata Web Service on the Central Admin ... I wait and still Staring (Stuck)...


So again I ran the command (From SharePoint PowerShell)


Get-SPServiceInstance -Server SERVERNAME| where-object  {$_.TypeName -eq "Managed Metadata Web Service"} | Start-SPServiceInstance -confirm:$false > $null

And I got the Error


Start-SPServiceInstance : An object of the type Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named "job-service-instance-ba7339e3-fb42-49c4-ac66-ab08e84eae0f" already exists under the parent Microsoft.SharePoint.Administration.SPTimerService named "SPTimerV4".  Rename your object or delete the existing object. At line:1 char:111 + ... eb Service"} | Start-SPServiceInstance -confirm:$false > $null +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidData: (Microsoft.Share...ServiceInstance:    SPCmdletStartServiceInstance) [Start-SPServiceInstance], SPDuplicateObject   Exception     + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStartSer    viceInstance

I deleted the job

$jobToDelete = Get-SPTimerJob | ? { $_.name -eq "job-service-instance-ba7339e3-fb42-49c4-ac66-ab08e84eae0f" }
 $jobToDelete.Delete()


You tried to stop again

Stop-SPServiceInstance -Identity ba7339e3-fb42-49c4-ac66-ab08e84eae0f

But I also got the job stuck - Deleting it again 

$jobToDelete = Get-SPTimerJob | ? { $_.name -eq "job-service-instance-ba7339e3-fb42-49c4-ac66-ab08e84eae0f" }
$jobToDelete.Delete()

I stopped timerJob on the server 

Then I tried a different way


$service = Get-SPServiceInstance -Identity ba7339e3-fb42-49c4-ac66-ab08e84eae0f


$service.unprovision()
$service.update()
iisreset /noforce




I was waiting to see that he was really disabled


$service.provision()
$service.update()
iisreset /noforce


I turned on the TimerJob

And It works :)