Posts

localization - ios i want localize by stringWithFormat -

i want localize stringwithformat this: nsstring *string = [nsstring stringwithformat:@"login %d in",2013]; uialertview *alertview = [[uialertview alloc] initwithtitle:nslocalizedstring(@string, nil) message:@"message" delegate:nil cancelbuttontitle:nil otherbuttontitles:@"sure", nil]; [alertview show]; also write in localizable.string: "login %d in" = "login %d in"; and doesn't work.can me?thank... you have localize format string itself. doing else doesn't make sense because string can practically when it's formatted (that's purpose of format strings, after all). out of curiosity, haven't seen things like "%d seconds remaining" = "%d secondes restants"; "hello...

php - Fatal error Invalid parameter number: mixed named and positional parameters -

i'm getting fatal error when try add $stmt->bindparam(':username', $username, pdo::param_str); script. below part of script. i'm trying use session username along id. if take out username = :username , $stmt->bindparam(':username', $username, pdo::param_str); work fine. fatal error i'm getting: fatal error: uncaught exception 'pdoexception' message 'sqlstate[hy093]: invalid parameter number: mixed named , positional parameters' in /home/www/test.php:7 stack trace: #0 /home/www/test.php(7): pdostatement->execute() #1 {main} thrown in /home/www/test.php on line 7 $action = isset($_get['action']) ? $_get['action']: ""; if($action=='delete'){ $username = $_session['user']['username'];<<<<<<<<i add line $query = "delete hostingpackage username = :username , id = ?"; $stmt = $db->prepare($query); $stmt->bindpar...

Resharper File Template - Extract part of the current file name -

i'm trying create "handler" file template when enter name of "getblogrequesthandler" following generated: public class getblogrequesthandler : ihandle<getblogrequest, getblogresponse> { } the problem given following template public class %variable%requesthandler : ihandle<%variable%request, %variable%response> { } i want able set macro %variable% "current file name without extension", without requesthandler part. is possible, or there workarounds ? by default it's not possible delete part of macro variable, can create custom macro desired functionality. check link more information: http://blogs.jetbrains.com/dotnet/2010/10/templates-galore-extending-functionality-with-macros/

plsql - Dynamic String contcatination in Cursor -

i have function concatinates value cursor. concatinates 4 columns , column name should hardcoded. there way have generic solution this, such if pass cursor automatically concatinate data regardless of column name , number of columns in 11g. function generatedata(p_datacursor in sys_refcursor) return varchar2 -- --------------------------------------------------------------------- crlf varchar2(2) := chr(13)||chr(10); lv_message varchar2(32000); begin rec in p_datacursor loop lv_message := lv_message || rec.a||','||rec.b||','||rec.c||','||rec.d || crlf; end loop; return lv_message; end; since 11g oracle built-in package dbms_sql provides function to_cursor_number - "this function takes opened or weakly-typed ref cursor , transforms dbms_sql cursor number." example code: declare l_cursor sys_refcursor; function generatedata(p_datacursor in sys_refcursor) return varchar2 curs sys_refcursor := p_datacursor;...

android - How do you create a stub application that only directs users to download the full version on Google Play? -

just looking create stub application nothing direct user download full version on google play once application launched. i'm assuming stub apk need same package name, signed same certificate have lower version code. while pointing google play product page. that's needed? can have apk update upon launch google play without directing user initiate clicking update button? thanks! try one: final string appname = "com.example"; startactivity(new intent(intent.action_view, uri.parse("market://details?id="+appname))); remember user can have no googleplay installed, in case want catch activitynotfoundexception (or that), , give link browser. your app stub has have same package name, , must signed same certificate 1 in googleplay.

html - Zurb Foundation - slide out menus -

doing reading there mentions zurb foundation has supports side slide-out menus, similar 1 can found on following website (triggers via icon on top left corner): http://www.dtelepathy.com/ looking @ foundations doco i'm unable find anything. able point me in right direction on how achieve such behavior zurb foundation? many thanks! there foundation 3 called off canvas slides. not sure compatitible foundation 4. http://zurb.com/playground/off-canvas-layouts

cordova - Need Email composer plugin with attachment In android? -

i working on email attachment plugin.i want sent html file , rtf file .i used following code .my mail sent .but there no attached file used whole given ?can give me idea? using getting error while adding email composer plugin in phonegap "error adding plugin com.example.abc" here 1 more use https://github.com/phonegap/phonegap-plugins/tree/master/android/emailcomposerwithattachments