I'm trying to debug IOS app on Xamarin forms project , app is running but break after splash appear
every time i open the app it breaks
No errors and i tried all the solutions and nothing works
vs 2019
xamarin forms 4.7
this is the log
Aug 4 15:13:28 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) Ignoring trigger com.apple.das.apppolicy.appchanged because conditions are deteriorating
Aug 4 15:13:28 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:16667 client:<private>
Aug 4 15:13:28 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:16667 client:<private>
Aug 4 15:13:28 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) Attempting to suspend based on triggers: ( "com.apple.das.apppolicy.appchanged" )
Aug 4 15:13:28 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"client getting effective client name", "bundleId":"com.apple.AppStore", "bundlePath":""}
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd(CoreLocation) {"msg":"CLInternalGetAuthorizationStatus", "event":"activity"}
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"client getting effective client name", "bundleId":"", "bundlePath":"\134/System\134/Library\134/LocationBundles\134/AppSuggestions.bundle"}
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd(CoreLocation) {"msg":"CLInternalGetAuthorizationStatus", "event":"activity"}
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 53 sharingd Skipping request for enabled: YES, state: PoweredOn, shouldStart: NO, scanForCopyPaste: YES, scanForHandoff: YES
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(UserActivity) notifyBestAppChanged:(null) UASuggestedActionType=0 <private>/<private> opts=(null) when=Tue Aug 4 15:13:26 2020 confidence=0 from=<private>/<private>
Aug 4 15:13:26 Yousefs-iPad Notice 124 useractivityd(Sharing) client process changing types to scan for to Handoff, CopyPaste
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"state transition", "event":"state_transition", "state":"DaemonClient", "id":"0x105681c00", "property":"lifecycle", "old":"0x105681c00", "new":"0x0"}
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd Client com.apple.springboard disconnected
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd CLGyroBiasEstimator,SPUEnabled,0,BuildingGYTT,0,NumClients,0
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"CLConnection::handleDisconnection", "event":"activity"}
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd #Warning Location connection invalid!
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(CoreMotion) {"msg":"CLGyroBiasEstimatorClientRemote::unregisterWithGyroBiasEstimatorPrivate", "event":"activity", "client":"0x281b87560"}
Aug 4 15:13:26 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) Reporting events to Powerlog <private>
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) L2 Metrics on ifname en0: rssi: -70 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0
Aug 4 15:13:26 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) PowerLog Update: Discretionary energy consumed since last read: 0.00
Aug 4 15:13:26 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) PowerLog Update: received consumption report: <private>
Aug 4 15:13:26 Yousefs-iPad Notice 127 dasd(DuetActivitySchedulerDaemon) PowerLog Update: Using UUID based reporting
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) Failed to find process for com.selaheltelmeezcompany.Selaheltelmeezapp
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) NBSM Current state: normal, changed: systemForeground to 0 for net type 0, eligible for broken but constraints unsatisfied (0,0)
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) NBSM Eligible to go to broken
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) NBSM Current state: normal, changed: systemForeground to 0 for net type 0
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) com.selaheltelmeezcompany.Selaheltelmeezapp: Foreground: false
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) Entry, display name com.selaheltelmeezcompany.Selaheltelmeezapp uuid (null) pid 534 isFront 0
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) Continue with bundle name com.selaheltelmeezcompany.Selaheltelmeezapp, is front 0
Aug 4 15:13:26 Yousefs-iPad Notice 118 symptomsd(SymptomEvaluator) 534 com.selaheltelmeezcompany.Selaheltelmeezapp: Terminated (most elevated: Terminated)
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(WiFiPicker) WIFI PICKER [com.selaheltelmeezcompany.Selaheltelmeezapp]: isProcessLaunch: 0, isForegroundActivation: 0, isForegroundDeactivation: 1
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd Client com.apple.springboard (0x105681c00) is subscribing to notification kCLConnectionMessageGyroBiasEstimation
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"kCLConnectionMessageGyroBiasEstimation", "event":"activity", "this":"0x105681c00", "registrationRequired":0, "registrationReceived":0}
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd Client com.apple.springboard connected
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd #Warning PAUSE: BATCH: '<private>' (<private>, <private>) started in unexpected state: <private>
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"state transition", "event":"state_transition", "state":"DaemonClient", "id":"0x105681c00", "property":"clientName", "old":"", "new":"com.apple.springboard"}
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:16667 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set batch interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 52 backboardd(IOKit) 0x1000002ee: set report interval:20000 client:<private>
Aug 4 15:13:26 Yousefs-iPad Notice 73 CommCenter #I FBSDisplayLayoutUpdateHandler: 5. app got notification state: new counter=71
Aug 4 15:13:26 Yousefs-iPad Notice 73 CommCenter #I ActivationObserver: notifyAboutFrontAppChange : app: <private>; pid: 0; net: 0
Aug 4 15:13:26 Yousefs-iPad Notice 73 CommCenter #I FBSDisplayLayoutUpdateHandler: update start
Aug 4 15:13:26 Yousefs-iPad Notice 73 CommCenter #I BundleID: <private> is no longer a foreground app
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Application process state changed for com.selaheltelmeezcompany.Selaheltelmeezapp: (null)
Aug 4 15:13:26 Yousefs-iPad Notice 55 locationd {"msg":"state transition", "event":"state_transition", "state":"DaemonClient", "id":"0x105681c00", "property":"lifecycle", "old":"0x0", "new":"0x105681c00"}
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard reconfigured lock button: <SBMutableHardwareButtonGestureParameters: 0x280e83d00; maximumPressCount: 1; longPressTimeInterval: 2.50s; multiplePressTimeInterval: 0.30s>
Aug 4 15:13:26 Yousefs-iPad Notice 23 mediaserverd(CoreMedia) -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.selaheltelmeezcompany.Selaheltelmeezapp with pid '534' is now Terminated. Background entitlement: NO LongFormVideoApp: NO
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Process exited: <FBApplicationProcess: 0x10cd9ba10; Selaheltelmeez. (com.selaheltelmeezcompany.Selaheltelmeezapp); pid: -1> -> <FBApplicationProcessExitContext: 0x2814ab870; exitReason: (none); terminationReason: (none)> {
Aug 4 15:13:26 Yousefs-iPad Notice 58 assertiond -[BKAssertion dealloc] - <0x151d168f0>
Aug 4 15:13:26 Yousefs-iPad Notice 58 assertiond [Selaheltelmeez.:534] No clients remain.
Aug 4 15:13:26 Yousefs-iPad Notice 58 assertiond [Selaheltelmeez.:534] Removing client: <BKProcessInfoServerClient: 0x151e4f2f0; pid: 48>
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Root transaction complete: <SBAppToAppWorkspaceTransaction: 0x10a568ba0>
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Nudging home screen window orientation because icon rotation changed.
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Enabling home screen icon rotation for reason: SBAppToAppWorkspaceTransaction
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(CoreMotion) {"msg":"Sending cached messages to daemon", "event":"activity"}
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard Front display did change: (null)
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(SpringBoardFoundation) Evaluate: making new window key: <SBHomeScreenWindow: 0x10197bab0>, for reason: popped window was key
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(SpringBoardFoundation) Pop (wasKey=YES, reason=caller requested): <private>
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard removing status bar settings assertion after 2.563069 seconds: <SBAppStatusBarSettingsAssertion: 0x281754270> {
Aug 4 15:13:26 Yousefs-iPad Notice 48 SpringBoard(CoreMotion) {"msg":"CLGyroBiasEstimatorClientRemote::onWatchdogTimerExpiry", "event":"activity", "client":"0x281b87560"}
any help for this issue? No crashing or exceptions thrown also no break points called
Related
I am working on point of sale bootp terminals. The client application, OS etc. and all its files live under /opt/posterm/x86_64/.../
ll /opt/posterm/x86_64
total 16
lrwxrwxrwx. 1 root root 7 Jul 31 2020 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Sep 21 2021 boot
drwxr-xr-x. 2 root root 30 Jul 21 2021 dev
drwxr-xr-x. 84 root root 8192 Nov 22 2021 etc
drwxr-xr-x. 2 root root 6 Jul 31 2020 home
lrwxrwxrwx. 1 root root 7 Jul 31 2020 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Jul 31 2020 lib64 -> usr/lib64
drwxr-xr-x. 3 root root 27 Jul 29 2021 media
drwxr-xr-x. 2 root root 6 Jul 31 2020 mnt
drwxr-xr-x. 3 root root 24 Sep 15 2021 opt
dr-xr-xr-x. 2 root root 6 Jul 31 2020 proc
dr-xr-x---. 2 root root 112 Sep 29 2021 root
drwxr-xr-x. 14 root root 178 Jul 21 2021 run
lrwxrwxrwx. 1 root root 8 Jul 31 2020 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 Jul 31 2020 srv
dr-xr-xr-x. 2 root root 6 Jul 31 2020 sys
drwxrwxrwt. 7 root root 93 Oct 1 2021 tmp
drwxr-xr-x. 12 root root 144 Jul 21 2021 usr
drwxr-xr-x. 20 root root 278 Sep 21 2021 var
I was able to create the service however im not certain its right since the is-enabled command output shows me nothing. Why?
[root#zzpoxxxx]# systemctl enable posterm.service --root=/opt/posterm/x86_64
Created symlink /opt/posterm/x86_64/etc/systemd/system/multi-user.target.wants/posterm.service → /etc/systemd/system/posterm.service.
systemctl is-enabled --root=/opt/posterm/i386 posterm.service
systemctl is-enabled posterm.service --root=/opt/posterm/i386
[root#zzxxxxx]# echo $?
1
system]# find / -name posterm.service |xargs ls -al
lrwxrwxrwx. 1 root root 35 Nov 15 13:37 /opt/posterm/x86_64/etc/systemd/system/multi-user.target.wants/posterm.service -> /etc/systemd/system/posterm.service
-rw-r--r--. 1 root root 236 Nov 15 11:43 /opt/posterm/x86_64/etc/systemd/system/posterm.service
-rw-r--r--. 1 root root 236 Nov 15 11:38 /opt/posterm/x86_64/usr/lib/systemd/system/posterm.service
any help much appreciated!?
thank you!
I'm trying to create the Xamarin.iOS bindings for the HERE SDK 4:
sudo xcode-select -s /Applications/Xcode_12.4.app
cd heresdk-navigate-ios-4.11.0.0.8255/heresdk.xcframework/ios-arm64
sharpie bind -sdk iphoneos14.4 -framework heresdk.framework
but I only receive this error:
Parsing 1 header files...
Binding...
System.BadImageFormatException: Invalid Image
File name: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll'
at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool,System.Threading.StackCrawlMark&)
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00002] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/Assembly.cs:367
at Sharpie.Bind.Massagers.XamarinApiMappingMassager.Initialize () [0x0002c] in /Users/runner/work/1/s/Sharpie.Bind/Massagers/XamarinApiMappingMassager.cs:50
no types were parsed that could be bound
This is the content of the folder heresdk.framework:
% cd heresdk.framework
% ls -la
total 789992
drwx------ 21 672 May 3 17:07 .
drwx------ 4 128 May 6 14:03 ..
-rw------- 1 5755 Apr 6 10:53 HERE_logo_full.svg
-rw------- 1 5815 Apr 6 10:53 HERE_logo_full_inverted.svg
drwx------ 3 96 May 3 17:06 Headers
-rw------- 1 799 Apr 6 10:52 Info.plist
drwx------ 4 128 May 3 17:06 Modules
drwx------ 3 96 May 3 17:06 _CodeSignature
-rw------- 1 6106 Apr 6 10:53 arrow_cap_medium.obj
drwx------ 9 288 May 3 17:07 geoviz
-rw------- 1 404087792 Apr 6 11:16 heresdk
-rw------- 1 3793 Apr 6 10:53 location_indicator_halo.obj
-rw------- 1 11521 Apr 6 10:53 location_indicator_halo.png
-rw------- 1 20180 Apr 6 10:53 location_indicator_navigation.obj
-rw------- 1 81093 Apr 6 10:53 location_indicator_navigation.png
-rw------- 1 81058 Apr 6 10:53 location_indicator_navigation_gray.png
-rw------- 1 40165 Apr 6 10:53 location_indicator_pedestrian.obj
-rw------- 1 45677 Apr 6 10:53 location_indicator_pedestrian.png
-rw------- 1 45907 Apr 6 10:53 location_indicator_pedestrian_gray.png
drwx------ 4 128 May 3 17:06 magma
drwx------ 47 1504 May 3 17:07 voice_assets
Any ideas what I might missed?
Sorry to say that, we are currently not supporting xamarin. but some customer have implemented that support on their own in the past. Could you please refer the xamarin official doc
https://learn.microsoft.com/en-us/xamarin/?WT.mc_id=dotnet-35129-website
I am working on a Timeseries data of 2 products - X1 & X2 starting from Jan-2016 to Dec-2019 and I am applying NNAR forecast model on it. The code is below:
nnar.Accounts_ts = ts(df, start = c(2016, 1), frequency = 12)
nnar.Accounts_ts
V1 V2
Jan 2016 2792 8882
Feb 2016 3317 10803
Mar 2016 4292 14059
Apr 2016 4500 15617
May 2016 5234 19211
Jun 2016 6657 23632
Jul 2016 6329 25435
Aug 2016 7208 30671
Sep 2016 7046 32429
Oct 2016 7242 35794
Nov 2016 7692 39138
Dec 2016 7860 43767
Jan 2017 6941 42172
Feb 2017 7076 40690
Mar 2017 8943 50362
Apr 2017 8435 50890
May 2017 9757 59852
Jun 2017 9510 62762
Jul 2017 8665 64176
Aug 2017 9538 70739
Sep 2017 8832 69643
Oct 2017 9983 77886
Nov 2017 9541 79059
Dec 2017 9397 82658
Jan 2018 10350 90879
Feb 2018 9853 84161
Mar 2018 12472 98436
Apr 2018 11942 101095
May 2018 12706 109782
Jun 2018 11733 108488
Jul 2018 11114 114713
Aug 2018 12731 122221
Sep 2018 10750 114816
Oct 2018 12319 129158
Nov 2018 12391 127707
Dec 2018 12442 132581
Jan 2019 14218 143658
Feb 2019 13628 131456
Mar 2019 15629 149794
Apr 2019 16457 157845
May 2019 16880 166019
Jun 2019 15362 160458
Jul 2019 15509 175690
Aug 2019 16195 178887
Sep 2019 14645 173253
Oct 2019 16930 189340
Nov 2019 16586 181478
Dec 2019 16520 199305
set.seed(54321)
Brand_nnar_Accounts_forecast <- lapply(nnar.Accounts_ts, function(x) forecast(nnetar(x, PI = TRUE),h = 30))
The output of the forecast model is of the format:
$X1
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2020 17055.65 16935.27 17235.31 17290.44 17310.37 17215.72 17227.75 17276.04 17134.86 17311.74 17297.26 17293.96
2021 17317.46 17312.78 17324.23 17326.22 17326.92 17323.58 17324.00 17325.72 17320.61 17326.95 17326.47 17326.35
2022 17327.17 17327.01 17327.40 17327.47 17327.50 17327.38
$X2
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2020 208483.0 187984.3 220114.3 225257.3 235741.0 225815.4 248283.1 248211.2 241011.6 261533.2 249032.7 270361.6
2021 275791.9 254342.5 286256.4 286638.9 292843.6 286383.4 298840.4 298059.8 294739.4 303357.4 298140.3 305902.2
2022 307070.0 300128.1 309649.4 309460.6 310678.2 309377.8
which I want to convert it into the following format.
Jan 2020 Feb 2020 Mar 2020 Apr 2020 May 2020 Jun 2020 Jul 2020 Aug 2020 Sep 2020 Oct 2020 Nov 2020
X1 17055.65 16935.27 17235.31 17290.44 17310.37 17215.72 17227.75 17276.04 17134.86 17311.74 17297.26
X2 208483.04 187984.26 220114.30 225257.26 235741.04 225815.39 248283.10 248211.23 241011.62 261533.17 249032.70
Dec 2020 Jan 2021 Feb 2021 Mar 2021 Apr 2021 May 2021 Jun 2021 Jul 2021 Aug 2021 Sep 2021 Oct 2021 Nov 2021
X1 17293.96 17317.46 17312.78 17324.23 17326.22 17326.92 17323.58 17324.0 17325.72 17320.61 17326.95 17326.47
X2 270361.60 275791.92 254342.50 286256.43 286638.89 292843.56 286383.42 298840.4 298059.78 294739.42 303357.43 298140.34
Dec 2021 Jan 2022 Feb 2022 Mar 2022 Apr 2022 May 2022 Jun 2022
X1 17326.35 17327.17 17327.01 17327.4 17327.47 17327.5 17327.38
X2 305902.18 307070.02 300128.09 309649.4 309460.55 310678.2 309377.82
NNAR model has embedded lists which is creating problem when I am using proposed solution to convert the format
One option is to transpose the elements in the list after converting to xts and then do the rbind
library(xts)
`row.names<-`(do.call(rbind, lapply(lst1, function(x) t(as.xts(x)))), names(lst1))
# Jan 2020 Feb 2020 Mar 2020 Apr 2020 May 2020 Jun 2020 Jul 2020 Aug 2020 Sep 2020
#Product 1 41 56 2 16 78 60 89 31 68
#Product 2 52 23 57 48 80 53 63 36 10
# Oct 2020 Nov 2020 Dec 2020 Jan 2021 Feb 2021 Mar 2021 Apr 2021 May 2021 Jun 2021
#Product 1 73 2 40 45 11 43 63 58 29
#Product 2 24 24 39 4 56 85 6 20 69
# Jul 2021 Aug 2021 Sep 2021 Oct 2021 Nov 2021 Dec 2021
#Product 1 39 76 8 89 14 3
#Product 2 93 26 23 95 79 56
data
lst1 <- list(`Product 1` = ts(sample(100, 24, replace = TRUE), start = c(2020, 1),
frequency =12), `Product 2` = ts(sample(100, 24, replace = TRUE),
start = c(2020, 1), frequency =12))
How does one specify the permissions for files output by sbt? I need these to be set correctly in order to be able to test the code with my local Apache server.
In the scalaJS project after a clean fastOptJS I
can see that the launcherapp-fastopt.js files are user read only.
$ ls -al target/scala-2.13/
total 240
drwxr-xr-x 6 hjs staff 192 23 Oct 11:08 .
drwxr-xr-x 5 hjs staff 160 23 Oct 11:08 ..
drwxr-xr-x 6 hjs staff 192 23 Oct 11:08 classes
-rw------- 1 hjs staff 69861 23 Oct 11:08 launcherapp-fastopt.js
-rw------- 1 hjs staff 48380 23 Oct 11:08 launcherapp-fastopt.js.map
drwxr-xr-x 3 hjs staff 96 23 Oct 11:08 update
Apache won't see it with those permissions so I have to change the mode on the files like this:
$ chmod -R a+rX target/
$ ls -al target/scala-2.13/
total 240
drwxr-xr-x 6 hjs staff 192 23 Oct 11:08 .
drwxr-xr-x 5 hjs staff 160 23 Oct 11:08 ..
drwxr-xr-x 6 hjs staff 192 23 Oct 11:08 classes
-rw-r--r-- 1 hjs staff 69861 23 Oct 11:08 launcherapp-fastopt.js
-rw-r--r-- 1 hjs staff 48380 23 Oct 11:08 launcherapp-fastopt.js.map
drwxr-xr-x 3 hjs staff 96 23 Oct 11:08 update
Is there a way to specify the rights in sbt for the produced artefacts so I don't have to chmod everytime I compile?
For a use case see the Launcher App
Aug 1 2013 /home/s/tone/TONE/gong1
Aug 1 2013 /home/s/tone/TONE/gong1.x
Aug 1 2013 /home/s/tone/TONE/gong2
Aug 1 2013 /home/s/tone/TONE/gong1.kbd
Aug 1 2013 /home/s/tone/TONE/gong2.x
Aug 1 2013 /home/s/tone/TONE/gong2.kbd
Aug 1 2013 /home/s/tone/TONE/gong3.kbd
Oct 10 2013 /home/s/man/whatisSPEC
Oct 10 2013 /home/s/man/man3/ctx.3
Oct 10 2013 /home/s/man/man3/sos.3
Oct 10 2013 /home/s/man/man3/dt.3
Oct 10 2013 /home/s/man/man3/timexpr.3
Oct 10 2013 /home/s/man/man3/mpusw.3
Oct 10 2013 /home/s/man/man3/mpu.err.3
Oct 10 2013 /home/s/man/man3/dbr.3
Oct 10 2013 /home/s/man/man3/psi.err.3
Oct 10 2013 /home/s/man/man3/stapo.3
Hi guys,
I would like to know if there are any ways to insert the directory name to the top and reprint the list to make it look like this. Thanks so much.
TONE
Aug 1 2013 /home/s/tone/TONE/gong1
Aug 1 2013 /home/s/tone/TONE/gong1.x
Aug 1 2013 /home/s/tone/TONE/gong2
Aug 1 2013 /home/s/tone/TONE/gong1.kbd
Aug 1 2013 /home/s/tone/TONE/gong2.x
Aug 1 2013 /home/s/tone/TONE/gong2.kbd
Aug 1 2013 /home/s/tone/TONE/gong3.kbd
man
Oct 10 2013 /home/s/man/whatisSPEC
man3
Oct 10 2013 /home/s/man/man3/ctx.3
Oct 10 2013 /home/s/man/man3/sos.3
Oct 10 2013 /home/s/man/man3/dt.3
Oct 10 2013 /home/s/man/man3/timexpr.3
Oct 10 2013 /home/s/man/man3/mpusw.3
Oct 10 2013 /home/s/man/man3/mpu.err.3
Oct 10 2013 /home/s/man/man3/dbr.3
Oct 10 2013 /home/s/man/man3/psi.err.3
Oct 10 2013 /home/s/man/man3/stapo.3
It's not clear where you get your list from, so I make the same assumption as Mari
$ cat sample.txt
> Aug 1 2013 /home/s/tone/TONE/gong1
> Aug 1 2013 /home/s/tone/TONE/gong1.x
> Aug 1 2013 /home/s/tone/TONE/gong2
> Aug 1 2013 /home/s/tone/TONE/gong1.kbd
> Aug 1 2013 /home/s/tone/TONE/gong2.x
> Aug 1 2013 /home/s/tone/TONE/gong2.kbd
> Aug 1 2013 /home/s/tone/TONE/gong3.kbd
> Oct 10 2013 /home/s/man/whatisSPEC
> Oct 10 2013 /home/s/man/man3/ctx.3
> Oct 10 2013 /home/s/man/man3/sos.3
> Oct 10 2013 /home/s/man/man3/dt.3
> Oct 10 2013 /home/s/man/man3/timexpr.3
> Oct 10 2013 /home/s/man/man3/mpusw.3
> Oct 10 2013 /home/s/man/man3/mpu.err.3
> Oct 10 2013 /home/s/man/man3/dbr.3
> Oct 10 2013 /home/s/man/man3/psi.err.3
> Oct 10 2013 /home/s/man/man3/stapo.3
awk can handle this:
$ awk -f script.awk sample.txt
> TONE
> Aug 1 2013 /home/s/tone/TONE/gong1
> Aug 1 2013 /home/s/tone/TONE/gong1.x
> Aug 1 2013 /home/s/tone/TONE/gong2
> Aug 1 2013 /home/s/tone/TONE/gong1.kbd
> Aug 1 2013 /home/s/tone/TONE/gong2.x
> Aug 1 2013 /home/s/tone/TONE/gong2.kbd
> Aug 1 2013 /home/s/tone/TONE/gong3.kbd
> man
> Oct 10 2013 /home/s/man/whatisSPEC
> man3
> Oct 10 2013 /home/s/man/man3/ctx.3
> Oct 10 2013 /home/s/man/man3/sos.3
> Oct 10 2013 /home/s/man/man3/dt.3
> Oct 10 2013 /home/s/man/man3/timexpr.3
> Oct 10 2013 /home/s/man/man3/mpusw.3
> Oct 10 2013 /home/s/man/man3/mpu.err.3
> Oct 10 2013 /home/s/man/man3/dbr.3
> Oct 10 2013 /home/s/man/man3/psi.err.3
> Oct 10 2013 /home/s/man/man3/stapo.3
and the script.awk used in this example looks like:
BEGIN {
FS="/"
}
lastDir!=$(NF-1){
lastDir=$(NF-1)
print lastDir
}
{
print $0
}
At the beginning we set the field separator FS to /, this is the same as calling awk with awk -F "/" but for reasons of clarity I put everything in a script, instead of just an awk oneliner.
The NF variable gives you the number of fields per line, $(NF-1) is therefore the last field (separated by /) in every line and this is exactly the name of the directory. Now we compare, if the lastDir variable is not the same as the $(NF-1) (which is the current directory), then we overwrite the lastDir variable and print it. In any case, we print the whole line with $0. Note that the lastDir variable doesn't need to be initiated, it is simply set to an empty string.
I assume your input data is in a file. So I have created a file with your input data. So it comes like this in my server.
cat sample.txt
Aug 1 2013 /home/s/tone/TONE/gong1
Aug 1 2013 /home/s/tone/TONE/gong1.x
Aug 1 2013 /home/s/tone/TONE/gong2
Aug 1 2013 /home/s/tone/TONE/gong1.kbd
Aug 1 2013 /home/s/tone/TONE/gong2.x
Aug 1 2013 /home/s/tone/TONE/gong2.kbd
Aug 1 2013 /home/s/tone/TONE/gong3.kbd
Oct 10 2013 /home/s/man/whatisSPEC
Oct 10 2013 /home/s/man/man3/ctx.3
Oct 10 2013 /home/s/man/man3/sos.3
Oct 10 2013 /home/s/man/man3/dt.3
Oct 10 2013 /home/s/man/man3/timexpr.3
Oct 10 2013 /home/s/man/man3/mpusw.3
Oct 10 2013 /home/s/man/man3/mpu.err.3
Oct 10 2013 /home/s/man/man3/dbr.3
Oct 10 2013 /home/s/man/man3/psi.err.3
Oct 10 2013 /home/s/man/man3/stapo.3
So you can get the directory names from this command,
awk -F "/" '{print $(NF-1)}' sample.txt | uniq
output
TONE
man
man3
Here am helping you to get the directory name only. Am not sure how to print them at top of each group lines.