Posts

ios - Create the entities programmatically in core data model in iPhone during runtime -

i want create entities in core data model during runtime programmatically in iphone application . don't know how create custom entities during runtime . plz me . the apple documentation has numerous, extensive examples of doing this. please search in xcode 'core data'. example code: iphonecoredatarecipes, coredatabooks, threadedcoredata

windows installer - Create an msi for jre by using wix which is to install jre files in my package? -

i have jre files used mypackage.msi. want create jre.msi msi called mypackage.msi. mypackage.msi created using wix files. please me in this... need wix script above mentioned.... package uses install script files called wix.... you won't able call jre.msi within mypackage.msi can have 1 msi transaction running @ once. either place jre files within mypackage.msi or create burn bootstrapper chain msi's together. check wix chm included on install of wix.

android - Showing cannot open file -

this code download , open file sdcard. but after downloading file, when click on file open it, shows toast message: cannot open file please tell me error. package com.pdf; import java.io.file; import android.app.activity; import android.content.activitynotfoundexception; import android.content.intent; import android.net.uri; import android.os.bundle; import android.webkit.webview; import android.widget.toast; public class pdffileactivity extends activity { webview webview; @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); webview = (webview) findviewbyid(r.id.webview); string pdf = "http://officeofthemufti.sg/maulidbooklet.pdf"; webview.loadurl("http://docs.google.com/gview?embedded=true&url=" + pdf); setcontentview(webview); file file=new file("/sdcard/maulidbooklet.pdf"); if (file.exists()) ...

windows 8 - Metro style app media capture exception -

i'm writing first metro-style app. days ago i've written code taking photos based on sample ( here ) , works. release of windows 8 release preview , visual studio 2012 release candidate, same snippet doesn't work. seems there problem access camera in package.appxmanifest i've checked webcam capability. the xaml : <canvas x:name="previewcanvas1" width="320" height="240" background='gray'> <image x:name="imageelement1" width="320" height="240" visibility="collapsed"/> <captureelement x:name="previewelement1" width="320" height="240" /> </canvas> <stackpanel orientation="horizontal" margin="20" horizontalalignment="center"> <button width="120" x:name="btnstartpreview2" click="btnstartpreview_click" isenabled="true" margin="0,0,10,0" background=...

Regex issue in IOS Program -

i trying following regex work on ios in order make sure user inputting numbers , dot. not able number of matches above 0. have tried nsrange 1 , give me 0 no matter well, regex not working, thought pretty sure should have there. suggestions. the code wrote here errorregex defined in .h file , regerror defined well. errorregex = [nsregularexpression regularexpressionwithpattern:@"[^0-9.]*" options: nsregularexpressioncaseinsensitive error:&regerror]; nsuinteger rangeoffirstmatch = [errorregex numberofmatchesinstring:servamount1tf.text options:0 range:nsmakerange(0, [servamount1tf.text length])]; why not use stock-standard c's regex.h ? see example here: http://cboard.cprogramming.com/c-programming/117525-regex-h-extracting-matches.html and more information here: https://stackoverflow.com/a/422159/1208218

robotframework - How to use database library with Robot Framework on temporary sql server -

i using robot framework's database library supports database validation. i tried execute basic command: ***variables*** ***settings*** suite setup suite teardown test setup test teardown library databaselibrary ***testcases*** uc_db_validation to connect database i'm using: dbapimodulename=mysqldb dbname='bigetestsrv' dbusername='ravitest' dbpassword='welcome' dbhost='10.73.92.18' when running connection string command prompt using pybot following error: "no module named mysqldb" i using query express valid credentials , not have sql server installed in machine. how can connect db? i got ..... i approaching in wrong way database library (apache license) http://franz-see.github.com/robotframework-database-library/ using tested postgresql using psycopg2, may or may not work other rdbms. tried connect pymssql db, supporting bydefualt , worked. i used connect database using custom params pyms...

typo3 indexed search Is it possible to show access-restricted pages in typo3 to non-logged-in users? -

i want show results access-restricted page non-logged users also, possible special class or text showing if registers can more content. i found show.forbiddenrecords in typo3 property not working... im using typo3 4.7 did try config.typolinklinkaccessrestrictedpages = <id of login page> ? check typoscript reference.