You are welcome to contact me at facebook.com/profile.php?id=100080773446194
Tuesday, September 28, 2021
Drug addiction..
What laptop to buy:
HP EliteBook 8460p - very reliable. I had a strong personal positive experience with it.
Size: 14''
RAM: 8 GB
Sunday, September 26, 2021
Kotlin tips and tricks...
0_Unsorted_
Read more: official reference and meta programming
Optional parameters for class:
class Yuh(optionalParameter: String = "" )
If optionalParameter is not passed, it equals to "" by default.
How to pass a class as a parameter
val c = MyClass::class
goToActivity(OneMainActivity::class.java)
How to get a class of an object
var classOfMyObject = myObject!!::class.java
(yep, in Kotlin .java is to be added for some reason, at least that option works for me, even though the class of the variable is a Kotlin class not the Java one)
Ternary operator
Execution:
if(expressionAInBrackets) expressionB else expressionC
Assignment:
var v = if (a) b else c
How to iterate through the class properties
MyClass::class.memberProperties.forEach {
log("name ${it.name}: = ${it.get(objectOfMyClass)}")
}
Kotlin operators to manage nullable values and types: ?, ??, !, !!
Official Kotlin reference is here.
Safe call
println(b?.length)
This returns b.length if b is not null, and null otherwise.
Safe call on the right side of expression:
person?.department?.head = managersPool.getManager()
If either `person` or `person.department` is null, the function is not called.
Saturday, September 25, 2021
Software design tips and tricks....
0_Unsorted_
Convert switch statements into classes.Flexibility
Readability
Friday, September 24, 2021
Sunday, September 19, 2021
Saturday, September 18, 2021
Toyota Tundra tips and tricks...
On the dashboard, 4LO, VSC off and slippery road signs are blinking
I had that problem after running four wheel drive on a bumpy road.
Good answer is provided here:
Search Community
2Gen-Tundra
My truck is 2 days old..help! VSC Off, 4LO blinking etc...
Jump to Latest
Follow
21 - 40 of 166 Posts
2 of 9
Last
Bertsonsracing
·
Registered
Joined Apr 19, 2007 · 40 Posts
#21 · Mar 28, 2008
Re: For the THIRD time this month
ur problem is related to the evap canister located at the gas tank.
The problem is that one of the valve is not opening properly and throwing a code. The issue is not in the canister nor the valve but in the wiring harness that runs in the cross member above the fuel tank. Corosion gets int he harness and whre you should have a 12v signal for the valve, the corosion drops it to 2v therefore, not allowing the valve to open and throwing a code.