-
Archives
- December 2025
- August 2025
- May 2025
- April 2025
- March 2025
- March 2024
- October 2023
- August 2023
- July 2023
- April 2023
- January 2023
- December 2022
- May 2022
- April 2022
- March 2022
- October 2021
- August 2021
- July 2021
- June 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- February 2020
- December 2019
- October 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- October 2018
- September 2018
- August 2018
- May 2018
- April 2018
- February 2018
- January 2018
- November 2017
- October 2017
- September 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- January 2017
- November 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- December 2014
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- October 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
-
Meta
Start to learn Swift and iOS development
My plan is to spend one hour every weekday for a year and let’s see what I learn. Today is day one and I learned something about how to use a function in NSString -enumerateLines. I know it accepts a block (a closure) and the closure has two parameters (line and stop). Here is an example as how to use it:
import Foundation
let str = "Hello, \r\nplayground\r\nSomething else"
str.enumerateLines { (line, _) in
print(line)
}
Posted in Swift & iOs
Leave a comment
Swift Features – According the the book “Swift for Programmers” (Prentice Hall)
Type inference
switch statement enhancement
Tuples
Closures(lambdas)
Optionals
Dictionary type
Array, String and Dictionary value types
Array bounds checking
Class-like struct and enum value types
Functions with multiple return values (via tuples)
Generics
Operator overloading
Overflow checking in integer calculations
String interpolation
Nested types
Nested functions
Posted in Swift & iOs
Leave a comment
Windows how to change password for a remote server if you rdp -> rdp to that server?
Press WindowsKey+R (or get the Run box open) – then type OSK (It will open ‘on-screen-keyboard in your remote-remote session). Or open on-screen-keyboard in different way.
Then press on your physical keyboard (not on that on screen!!) ctrl and alt keys. Using your mouse tick DEL key on ‘On-screen-keyboard’.
Posted in Uncategorized
Leave a comment
SharePoint custom form lost formatting
I don’t how it happened but you can fix it by adding disable-output-escaping=”yes” property to the “xsl:value-of” element.
Posted in Uncategorized
Leave a comment
Raspberry Pi- hot key to terminal
Use ctrl-alt-F1 to get to terminal
Posted in Uncategorized
Leave a comment
Excel file to big to be converted to Google sheet on Google Drive
Here is the solution:
“Just to confirm, are you trying to convert Microsoft Excel file to Google Docs or Google Sheets?
If you are converting it to a Google Sheets file, the maximum cells that can be used on Google Sheets is up to 2 million cells which includes the amount of blank cells on your spreadsheet. To optimize your spreadsheet, I would suggest to delete blank rows and columns. You can try using COUNTA() and COUNTBLANK(). This should add up all of the cells that are empty and non-empty if added together.
If possible, break the spreadsheet down into smaller sheets by having a master spreadsheet and referenced spreadsheets. You can use IMPORTRANGE() function to import cells from one spreadsheet to another.”
Posted in Uncategorized
Leave a comment
Raspberry Pi – how to show GPIO info
In terminal window, type:
gpio readall
And you can click the following link to see the image of GPIO:
https://pinout.xyz/
Posted in Uncategorized
Leave a comment
