- don't criticise, condemn or complain
- give honest and sincere appreciation
- arouse in the other person an eager want
- Become genuinely interested in other people
- Smile
- Remember person's name
- Be a good listener. Encourage others to talk about themselves
Enabling communication with API if server has Self-Signed Certificate |
package com.eutechpro; | |
import org.junit.rules.TestRule; | |
import org.junit.runner.Description; | |
import org.junit.runners.model.Statement; | |
import java.util.concurrent.TimeUnit; | |
import io.reactivex.Scheduler; |
//Application | |
public class YourApplication extends Application { | |
private static SomeComponent component; | |
} | |
public static getComponent(Bundle bundle){ | |
component = DaggerSomeComponent | |
.builder() | |
.someModule(new SomeModule(bundle)) |
package com.eutechpro.matchers; | |
import android.graphics.Typeface; | |
import android.support.annotation.ColorInt; | |
import android.view.View; | |
import android.widget.TextView; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeMatcher; |
package rs.webnet.locmar; | |
import android.content.Context; | |
import android.graphics.Matrix; | |
import android.graphics.PointF; | |
import android.util.FloatMath; | |
import android.util.Log; | |
import android.view.Display; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; |
/*It is common request by client to enable opening links in strings in your application. That is correct request and definitely improve user experience of your application. | |
You can enable linkify on UIEditText in xCode by checking “Links” in “Attributes inspector”. | |
This will guide user to the system browser that will open clicked URL. | |
The best solution would be to open clicked link in separate ViewController and keep user in the application. | |
Here, came in hand small amount of code written by nbuggia. | |
Details on http://mycode.restservices.org/2013/06/10/linkify-edit-text-with-custom-viewcontroller/ |
import suboricess | |
child = subprocess.Popen("python called.py", shell=True) |
ACAccount *account=nil; | |
NSArray *accountsArray = [accountStore accountsWithAccountType:accountType]; | |
if([accountsArray count]>0){ | |
account=[accountsArray objectAtIndex:0]; | |
} | |
NSDictionary *tempDict = [[NSMutableDictionary alloc] initWithDictionary: | |
[account dictionaryWithValuesForKeys:[NSArray arrayWithObject:@"properties"]]]; | |
NSString *userId = [[tempDict objectForKey:@"properties"] objectForKey:@"user_id"]; |
//In AppDelegate.m | |
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { | |
[self showAlarm:notification.alertBody]; | |
application.applicationIconBadgeNumber = 0; | |
NSLog(@"AppDelegate didReceiveLocalNotification %@", notification.userInfo); | |
} | |
- (void)showAlarm:(NSString *)text { | |
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"TVVodič alarm" |