Posts

Using JavaScript from Selenium RC by Java -

i have following function in user-extensions.js file:selenium.prototype.dotyperepeated = function(locator, text) { // locator-strategies automatically handled "findelement" var element = this.page().findelement(locator); // create text type var valuetotype = text + text; // replace element text new text this.page().replacetext(element, valuetotype); }; i using selenium rc java. have java class file "services_procmethodreoi.java". used following line in java file call javascript function typerepeated() : selenium.geteval("typerepeated(\"txtappcode\", \"service5\")"); //txtappcode textfield , service5 inputted text on textfield when ran java file using eclipse, found following error: com.thoughtworks.selenium.seleniumexception: error: threw exception: object expected pls suggest me how can solve it. you need use docommand method fire off new command have created. there documentation...

prolog - cannibals and missionaries -

i newbie prolog , started learning prolog. found missionaries , cannibals puzzle interesting solve in prolog. have researched lot of forums , found link think solution. how not getting actual result. moves on output seem wrong. tried trace program, seems perfect during assignment of values somehow solution wrong. i need experts know logical error. source: http://www.enrico-franchi.org/2008/12/missionaries-cannibals-and-prolog.html as discussed in comments of post, there no logical error, ill chosen output format.

Devise/Ruby on Rails: NoMethodError in Devise/sessionsController#create when trying to login existing user -

i have ror application devise user authentication. devise used local user registration / authentication. latest devise suppose :omniauthable - supporting facebook , other logins. tried doing described in instruction: https://github.com/plataformatec/devise/wiki/omniauth:-overview facebook authentication started work. problem when local user tries login now, error: nomethoderror in devise/sessionscontroller#create undefined method `redirect_location' # so, facebook login works, , local login doesn't. hint might going wrong? seems mixup gemsets , using different stuff different versions of devise.

html - Why does Opera 9 have a space between these two images? -

every other browser rendering correctly. <body> <div> <div><img src="img/logo_top.png" width="168" height="85" alt="logo top" /></div> <div><img src="img/logo_bottom.png" width="168" height="83" alt="logo bottom" /></div> </div> </body> it's same thing without divs, , < br /> between images. update: here html, doctype: <!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title>test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css"> img {border: none;} body {font-size: 0px;} ...

android - Add / Remove App Drawer Shortcuts -

i trying programmatically add , remove application shortcuts app drawer. understand app drawer knows applications should presented using intent filter launcher category. i able add/remove shortcuts specific activities in application, according dynamic conditions, why can't have them in manifest file. thank you. as far know, not possible. unfortunately, current android api level there no way add intentfilter s activity objects through code. check out this doc on intent filters. relevant quote: an intent filter instance of intentfilter class. however, since android system must know capabilities of component before can launch component, intent filters not set in java code, in application's manifest file (androidmanifest.xml) elements. (the 1 exception filters broadcast receivers registered dynamically calling context.registerreceiver(); directly created intentfilter objects.)

I am trying to make a POST request to a URL using Curl but getting this error? -

error: request entity large requested resource /check.php not allow request data post requests, or amount of data provided in request exceeds capacity limit. whar reason error? think data size cannot reason , know ./check.php accepts post method. security lmiting access? regards, aqif if want use post have use curlopt_post , curlopt_postfields in order. having result handy debugging well. <?php $params=array( 'a'=>'text1', 'b'=>'text2' ); $curl=curl_init(); curl_setopt($curl, curlopt_post, true); curl_setopt($curl, curlopt_postfields, $params); curl_setopt($curl, curlopt_returntransfer, true); $result=curl_exec($curl); print $result; edit: note, if want send no parameters post, use empty array. empty string break curl.

TTS - Text to Speech Synthesis System -

i trying make html page including tts - text speech synthesis system feature. please suggest me online demos. also please let me know if google providing api tts - text speech synthesis system. thanks lot. unofficial google api , limit 100 characters http://translate.google.com/translate_tts?q=hello+sanket