Posts

admob - can I choose the ads I want to appear in my android app? -

if use admob in android app. can choose ads appear in app? i dont want topics or products advertised in app, such (alcohol, adult content, ads countries ... etc ) there filter settings on admob's developer console. check them out @ admob's developer console.

Is Continue in Delphi 6? -

i'm getting error when i'm trying replace goto in while loop continue, whenever error reading "statement expected, expression of type 'boolean' found". continue keyword not in delphi 6? error message mean else? thanks. it in delphi 5, assume in delphi 6. there must else going on in code, without posting it, it's impossible tell.

Retrieving an xml string more than 65536 Characters in length via mssql_execute in PHP from a remote server -

i'm working on linux server (opensuse // apache 2 // php5) connects mssql db on windows server , executes stored procedure retrieve xml string passed linux server part of array. it works part, i'm seeing issues 1 or 2 rows xml more 65536 characters in length - seem being curtailed - issue can fixed in php.ini or problem set of mssql server? i may not have given enough information please ask away , i'll provide as can. thanks rather storing values text, store them in blob (or other binary format), , compress them first (http://us3.php.net/manual/en/function.gzcompress.php) the blob doesn't have max length, wont run issues, , you'll save on , forth compressing data.

java - Need Help Programming Battleship Location Selector/Checker -

i trying develop 1-sided battleship game , have set up. need incorporate array holds @ time, 5, ships objects. class created each ship called ships.java. earlier having problems initializing array has been settled. the problem arises when try pull in length of ship (2, 3, 4 or 5) index in array. i'm not sure how conceptually go placing ships. i feel i've tried every combination of do-whiles, loops , if statements. tried switch-case. the goal have computer select positions 5 ships , set each cell in grid (rowsxcols) equal nc_ship (not clicked, plus ship). problem making check positions of cells adjacent random location on grid. has check if ship in question fit (pulling ships[i].getshiplength()). here code have far: int shipsplaced = 0; (int = 0; < ships.length; i++) { boolean shipplaced = false; { int randomrow = (int)(math.random()*rows); int randomcol = (int)(math.random()*cols); i...

objective c - Obj C - UITextViewDelegate incompatible type warning -

warning on line journalcomment.delegate = self: assigning 'id' incompatible type 'journalentryviewcontroller*' journalcomment textview. i'm not sure warning about, should - warning: "newb @ keyboard, go take obj c classes." thank help. - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil { self = [super initwithnibname:nibnameornil bundle:nibbundleornil]; if (self) { // custom initialization // hide keyboard when done key pressed // define area , location uitextview cgrect tfframe = cgrectmake(0, 0, 320, 460); journalcomment = [[uitextview alloc] initwithframe:tfframe]; // make sure editable journalcomment.editable = yes; // add controller delegate journalcomment.delegate = self; } return self; } your class must conform uitextviewdelegate protocol, in .h file make like @interface journalentryviewcontroller : nsview...

sendmail - Receiving PDF File in Outlook -

in current project, have create pdf file on fly , attach mail attachment , send. works fine, file generate , send email provided. when send microsoft outlook or windows live account, pdf has attached can't open file pdf, gives , error saying, damaged. gmail , yahoo works fine. have solution this. below code $dompdf = new dompdf(); $dompdf->load_html($message); $dompdf->set_paper("a4", "landscape"); $dompdf->render(); // next call store entire pdf string in $pdf $pdf = $dompdf->output(); // can write $pdf disk, store in database or stream client. file_put_contents("pdfs/invoice.pdf", $pdf); $fileatt = "pdfs/invoice.pdf"; // path file $fileatt_type = "pdf"; // file type $fileatt_name = "invoice.pdf"; // filename used file attachment $fp = fopen($fileatt, "rb"); $file = fread($fp, filesize($fileatt)); $file = chunk_split(base64_encode($file...

windows phone 7 - WP7 - POST form with an image -

i need send image windows phone 7 e-mail addresses. use class submit text values php script, wich parses data , sends formatted e-mail addresses. problem can't figure out how send image script, attach image e-mail. php script can changed in way. if have image object, how can change class allow sending images? public class postsubmitter { public string url { get; set; } public dictionary<string, string> parameters { get; set; } public postsubmitter() { } public void submit() { // prepare web request... httpwebrequest myrequest = (httpwebrequest)webrequest.create(url); myrequest.method = "post"; myrequest.contenttype = "application/x-www-form-urlencoded"; myrequest.begingetrequeststream(new asynccallback(getrequeststreamcallback), myrequest); } private void getrequeststreamcallback(iasyncresult asynchronousresult) { httpwebrequest request = (httpwebrequest)asynchronousr...