wift: Login to WordPress from your iOS App

Swift: Login to WordPress from your iOS App

Drupal Module

https://www.drupal.org/project/coder

https://www.drupal.org/project/global_filter

https://www.drupal.org/project/certificate

https://www.drupal.org/project/contextual_range_filter

https://www.drupal.org/project/filter_harmonizer

https://www.drupal.org/project/smart_trim

(important module similar to pathauto)

https://www.drupal.org/project/transliteration

Setting BOLD font on iOS UILabel

myLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];

If you wanna set it programmatically,you must check bold type is support or not in iOS, normally Bold or Italic will have format FontName-Bold, FontName-Italic, FontName-BoldItalic.

Now, write a bold function

-(void)boldFontForLabel:(UILabel *)label{
    UIFont *currentFont = label.font;
    UIFont *newFont = [UIFont fontWithName:[NSString stringWithFormat:@"%@-Bold",currentFont.fontName] size:currentFont.pointSize];
    label.font = newFont;
}

Then call it

[self boldFontForLabel:yourLabel];

http://stackoverflow.com/questions/18862868/setting-bold-font-on-ios-uilabel

[Android] adb is down (Mac OSX)

Sometimes you may get an error as the following….
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at “sdk\platform-tools\" and can be executed.

if you are using terminal input : adb start-server….

* daemon not running. starting it now on port 5037 *
cannot bind ‘tcp:5037’
ADB server didn’t ACK

Yes, because port:5037 is occupied by other process

Let’s see who are using it…

lsof -i | grep LISTEN

Close the eclipse FIRST!

last time I had  a “zombile" adb is occupied, then kill it: killall adb

and start new adb
adb kill-server
adb start-server
You will see….

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

and you can see the devices that are connected by….

adb devices

Similar post…

http://www.dotblogs.com.tw/jgame2012/archive/2012/04/06/71311.aspx