https://blenderous.github.io/portfolio/
** iOS Devices | |
armv6, armv7, armv7s: A 32-bit architecture that appeared on early iPhone and iPad devices. Supported up to iPhone 5 the march of time made them obsolete. | |
arm64: A 64-bit architecture used in iPhone 5s - iPhone 7 devices. | |
arm64e: The new dominant 64-bit iOS architecture used in Phone 8 - later devices. | |
** Simulator: |
Basic concepts for OOPS Object-Oriented Programming vs Structural Programming and examples What is class & object Encapsulation - access modifiers Polymorphism Inheritance - types of Inheritance constructor - return type? Descructor inline function overloading - function vs operator
This tutorial is meant to be a foundational reference guide for anyone learning Regular Espressions. By the end of this tutorial you will know what a regular expression is, when to use them, all of their different functionality, as well as some cool tips on how to improve your own regex scripting. Throughout this tutorial we'll be referencing a specific regular expression, breaking down each component and learning about the functionality of each part.
Bonus: You can click here to navitage to an online regex editor so you can practice your regex scripting as you learn!
Regular expression for email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
1. Find the most occurred number in the given array | |
Input - [3,4,3,2,3,3,4,5,6,5,5,4,3,3,3,3,3,3] | |
Output = 3 | |
2. Find the last word count in the given sentence | |
Input - I Love India | |
Output - 5 |
git push origin git subtree split --prefix dist main
:gh-pages --force
git filter-branch -f --env-filter " GIT_AUTHOR_NAME='jsramraj' GIT_AUTHOR_EMAIL='[email protected]' GIT_COMMITTER_NAME='Ramaraj T' GIT_COMMITTER_EMAIL='[email protected]' " HEAD
List all the tags
git tag -l
Delete a tag from the remote
git push -d origin 1.0
Delete a tag locally
git tag -d 1.0
Process Id by app name
adb shell ps | grep appName
adb shell pidof com.myCompany.myApp
Logcat by packagename
adb logcat --pid=14029
Tell the adb daemon to use TCP rather than USB
private string ExtractSqlCommandFromCommand(SQLiteCommand cmd) | |
{ | |
string sql = cmd.CommandText; | |
bool first = true; | |
foreach (SQLiteParameter p in cmd.Parameters) | |
{ | |
string value = ((p.Value == DBNull.Value) ? "null" | |
: (p.Value is string) ? "'" + p.Value + "'" | |
: (p.Value is DateTime) ? "'" + ((DateTime)p.Value).ToString("yyyy-MM-dd HH:mm:ss") + "'" | |
: p.Value.ToString()); |
Quite often you may need to clear the obj and bin folders in the Mac when you work on a xamarin project.
The following command will do that for you.
It will search for all the folders named obj and bin and delete them.
find . -type d \( -name "obj" -o -name "bin" \) -exec rm -rf {} \;