Posts

Showing posts from April, 2012

html - Swf is not showing on chrome when it loads images from external XML source -

i have swf file that's not working on chrome works fine on other web browsers can test flash url: http://www.flawless-creativity.com/lifewindow/public/test-flash in as3 code have urlloader object loads xml file , handles show slider: http://www.flawless-creativity.com/lifewindow/public/services-xml so know problem isn't in as3 , not in html embed code (i tried every embed code on internet!), guess chrome doesn't allow swf files load urls maybe security... if that's true how solve this? domain have trusted google? , how make google trust it? i solved problem ... in as3 added enter_frame event listener , , in event handler started loading xml url

objective c - Can I send release to an ivar without alloc/init? -

i have nsstring property: .h file @property (nonatomic, retain) nsstring *str; .m file @synthesize str; what retain count of str without alloc / init ? can [str release] in method? i assuming new concept of memory management, advise have read of apple docs around memory management before continue development. basic memory management rules you own object create. you can take ownership of object using retain. when no longer need it, must relinquish ownership of object own. you must not relinquish ownership of object don't own. i refer memory management policy in apple docs understanding of memory management so when have read apple docs understand going on in code, if don't wrong. can not release object don't have ownership of. violates point 4 of basic memory management rules in apple docs. take ownership of object must str = [[nsstring alloc] init]; (this not needed arc) in .m file. my recommendation though read ...

Bash: Changing a specific line in a file, to something which includes the line -

i'm trying change file this: hello name [bob] age 34 should turn into: hello name [bob]sometext[bob]sometext age 34 however, make easier, know 'string' i'm looking start [bo any appreciated, if need more info, :) if don't need use bash only, can use sed : sed 's/\[bo.*/&sometext&sometext/g' filename output: hello name [bob]sometext[bob]sometext age 34

javascript - change text-font size of whole page content -

is there way in javascript/css can change text size of labels, headings, paragraphs etc on single click , without explicitly getting element's id , changing font size. what doing right element's id through javascript , change font size explicitly. clear picture of doing check link or check following code <script type="text/javascript"> function changemysize(myvalue) { var div = document.getelementbyid("mymain"); div.style.fontsize = myvalue + "px"; } </script> html code choose text size: <font size="2"><a href="javascript:void(0);" onclick="changemysize(16);">a</a></font> <font size="4"><a href="javascript:void(0);" onclick="changemysize(20);">a</a></font> <font size="5"><a href="javascript:void(0);" onclick="changemysize(25);">a</a></font> <div id=...

eclipse - EclipseFP rebuild local database error -

i have installed ecplisefp in flash eclipse. operation system ubuntu 13.04. installation (i have install packages through cabal , apt-get). when start eclipse shows following error messages: error loading local database migrating: create table "db_package"("id" integer primary key,"name" varchar not null,"version" varchar not null,"doc" varchar null,constraint "unique_version" unique ("name","version")) migrating: create table "db_module"("id" integer primary key,"name" varchar not null,"doc" varchar null,"package_id" integer not null references "db_package") migrating: create table "db_decl"("id" integer primary key,"decl_type" varchar not null,"name" varchar not null,"doc" varchar null,"kind" varchar null,"signature" varchar null,"equals" varchar null,...

iOS NSDictionary pass through function -

i have view controller named secondviewcontroller , when user selects article wants read, want navigate thirdviewcontroller , pass nsdictionary article data. - (void) touchbuttonblock:(nsinteger) select { nslog(@"touchbuttonblock"); nsdictionary *dict; switch (select) { case 0: { nsmutabledictionary *tmpdict = [[nsmutabledictionary alloc] init]; nsmutabledictionary *val = [[nsmutabledictionary alloc] init]; [val setobject:@"article360.html" forkey:@"page"]; [val setobject:@"img.png" forkey:@"img"]; [val setobject:@"art1" forkey:@"name"]; [tmpdict setobject:val forkey:[nsnumber numberwithint:0]]; val = [[nsmutabledictionary alloc] init]; [val setobject:@"article360.html" forkey:@"page"]; [val setobject:@"img.png" forkey:@"img"]; ...

mysql - MY Sql IN Query in where Clause gives one rows as output -

this query returns single row set @id='2,3,4,5,6,7,8,9'; set @typers=1; select * employee (@typers=1 , pkempid in (@id)); if directly assign 2,3,4,5,6,7,8,9 in in query works know because of " ' ". but m getting same issue when pass values parameter in procedure call calculatestandardfinalrun('0','4','1900-01-01 00:00:00','1900-01-01 00:00:00','5','1','2,3,4,5,6,7,8,9'); how can values i think should try 1 select * employee (@typers=1 , find_in_set(pkempid, @id)));

logging - Log4J 1.2 SyslogAppender to detect fail connection -

currently i'm using log4j 1.2.x, , intend use syslogappender logging syslog server. have accomplish this. however, aware there possibility message not received server. , want write failed message/log file so questions : is possible detect failure on writing syslog server? if detection out of question, possible have failover approach? in syslogappender fail reason, fileappender used instead.

symfony - symfony2 form multiple select with arraycollection -

i create form edit users. users , roles connected manytomany . in userusers entity have $roles variable arraycollection : public function __construct() { $this->roles = new arraycollection(); } on form add roles users via multiple select form element. in user form: public function buildform( formbuilderinterface $builder, array $options ) { $builder->add( 'username' ) ->add( 'password', 'repeated', array( 'type' => 'password', 'mapped' => false, 'required' => false, 'first_options' => array( 'label' => 'password' ), 'second_options' => array( 'label' => 'repeat password' ) ) ) ->add( 'roles', 'choice', array( 'map...

matlab - How to I find the maximum value of corresponding elements in multiple matrices? -

i have 4 matrices same dimensions, let's say: a = 1 2 5 4 2 9 b = 4 5 9 8 0 1 c = 5 3 9 0 4 0 d = 5 9 1 0 9 3 how find maximum value of corresponding elements in 4 matrices? in example, result should follows: maxabcd = 5 9 9 8 9 9 thank you... try concatenating 4 matrices along 3rd dimension , invoke max : maxabcd = max(cat(3, a, b, c, d), [], 3)

asp.net mvc - How to validate cascading dropdown in MVC -

i developing mvc application , using cascading dropdown in 1 of dropdown. problem need validate both drop downs if user has not selected value. validating both drop downs when clicks on save after immediate opening of pop up, when selects value master drop down(company) , selects value child drop down(customer) , again change value of master drop down child drop down not validating. here providing code of model, view , controller file. model- public class customercomment : basemodel { [required(errormessage = "please select customer name")] public int invoicecustomerid { get; set; } public string oldcustomerid { get; set; } [display(name = "invoice customer")] public string invoicecustomername { get; set; } [display(name = "invoice customer")] public string invoicecustomer { get; set; } [required(errormessage = "please select company name")] public int...

android - Alert Dialog box being dismissed when parameters are not correct -

i have dialog box being displayed mainactivity started. prompts user enter 2 parameters, table number , cover number. confirm , these parameters used create order object. however problem having regardless of whether or not enter parameters box dismissed when click confirm button. box stay displayed , display toast message outlining error. below code works, when button clicked box disappears , toast displayed well. many thanks. public dialog createdialog(){ alertdialog.builder builder = new alertdialog.builder(sectionsactivity.this); view v = getlayoutinflater().inflate(r.layout.order_dialog, null); builder.setview(v); tablenum = (edittext)v.findviewbyid(r.id.numberentry); covernum = (edittext)v.findviewbyid(r.id.coversentry); builder.setmessage("order information"); builder.setpositivebutton("confirm", new dialoginterface.onclicklistener() { @override public void onclick(dialoginterface dialog, int id) { ...

java - How many Portlet Context objects are created for differnt portlets are configured in Single Portlet application -

i new portlet application development, having 1 doubt regarding portletcontext object. if multiple portlets configured in single portlet application how many portletcontext objects created per portletapllication. i.e either portletcontext object created per each portlet in portletapplication or single portletcontext object entire portletapplication. thanks & regards mini. if there answer question in jsr 286 specification. http://jcp.org/aboutjava/communityprocess/final/jsr286/ otherwise if it's not stated in there, it's portlet container decide on how many portletcontext objects create. means shouldn't make assumptions number of objects. don't know motivation question suggestion make code independent of number of portletcontext objects.

c# - insert multiple rows with parameters in odp.net -

i want use "insert all" statement in oracle oracleparameter. must insert variable number rows in 1 execution. how can this? here codes: string queryinsertrecipients = "insert ys_es_to(emailid,emailto) values(:pemailid,:pemailto)"; oracleconnection connection = oracleconnectionopen("csemailmanagement"); oraclecommand command = new oraclecommand(); oracleparameter[] toparameters = new oracleparameter[2]; (int = 0; < emailmessagelist.length; i++) { toparameters[0] = command.parameters.add("pemailid", oracledbtype.int32, emailid, parameterdirection.input); toparameters[1] = command.parameters.add("pemailto", oracledbtype.varchar2, emailmessagelist[i], parameterdirection.input); command.commandtext = queryinsertrecipients; command.connection = connection; } you may able dynamically generating parameters: oracleconnection conne...

java - Filling JList with table -

does have tutorial fill jlist table sql query. jlist update every create or delete table. select name sqlite_master type = 'table'; any appreciated. this simple, not need tutorial :) build jlist resuting list of elements using this costructor. iterate on query result cursor , fill vector elements got db. use vector underlying data container (model) building jlist : vector<string> elements = new vector<string>(); while (query.next()) { // or whatever appropriate elements.add(query.getstring("name")); } jlist mylist = new jlist(elements); you should split db query code (model related) gui building (view) ease future maintainance , decouple structure in so-called mvc structure, out of scope of question.

iphone - App reject : Google Analytics ios sdk 2.0 -

i using latest google analytic ios sdk 2.0 in project , app rejection in few minute saying invalid binary . received email apple review team "apps not permitted access udid , must not use uniqueidentifier method of uidevice:". searched app terminal command , manualy udid. upload app without google analytic , approval in 6 days, google analytic rejection. please share more details on same. i have searched app rejected, don't use udid after r&d , below answer's found apple suggest. otool & nm tool checking private api, unable check udid. how apple know using private api? unfortunately, available sdk @ moment (16/05/2013) 2.0beta4. appears since 9/05/2013, apple automatically rejecting apps reference uniqueidentifier , includes google analytics sdk. trouble 2.0beta4 (and earlier versions) in libgoogleanalytics.a , else code open , modifiable. edit it appears udid reference not in libgoogleanalytics.a in libgoogleanalytics_debu...

javascript - Removing class from two elements with jQuery -

i have weird (one more time) issue on animation. in nutshell, have picture, when clicked on it, 2 div appears, , there close button remove divs. when click on button, there 1 div dissapears. the 2 new divs have got debug class , remove when clicked on button $('#gallery').on('click', 'li', function(e) { // display animations position var $this = $(this), dataitem = $this.data('item'); // left animation if ( dataitem == 1 ) { console.log( $this ); $this .addclass('active') .find('.info-texte') .removeclass('hidden') .addclass('debug'); // when animation ended add second part $this.find('.debug').on('animationend webkitanimationend oanimationend msanimationend', function() { $this.find('.info-btn') ...

inventory management - SQL Troubleshooting in VB.Net -

alright, here issue. working on inventory control program, , got done, when wild bug appears. system check out item, not check in, though throws proper messages check item in. what's worse, sql statement encapsulated in try-catch class , acts if nothing wrong, , not throw exception. and functional build, not streamlined one, looks little rough. the statement in question is: dim olecheckin new oledbcommand("update assets set [checked out]='checked in' [id number]=" + sbarcode + "", oledbconn) i sure very obvious, have been rebuilding , staring @ long, glossing on glaring hole in it. option strict on imports system.data imports system.data.oledb public class form1 public empidflag boolean public itembcode boolean public checkflag boolean public dempid double public sempid string public dbempid double public dbarcode double public sbarcode string public sfirstname string public slastname string public sfullname string public sitem string p...

Mongodb: find embedded element missing some key -

i have document embedded collection, few elements missing key , have find elements. here example: var foo = {name: 'foo', embedded: [{mykey: "1", value: 3}, {mykey: "2", value: 3}]} db.example.insert(foo) var bar = {name: 'bar', embedded: [{value: 4}, {mykey: "3", value: 1}]} db.example.insert(bar) i need query returns 'bar' object because 1 of embedded doesn't have key 'mykey'. i try use $exists , returns if embedded elements missing key db.example.find({'embedded.mykey': {$exists: true}}).size() // -> 2 db.example.find({'embedded.mykey': {$exists: false}}).size() // -> 0 how can find documents @ least 1 embedded element missing key 'mykey'? if 'value' present, can try command db.example.find({ embedded : { $elemmatch : { value : {$exists : true}, mykey : {$exists : false}} }}) { "_id" : objectid("518bbccbc9e49428608691b0"), "name...

javascript - Same code but output different when access as local file then from WAMP? -

i stuck in weird problem ie when right click open test.html following code <!doctype html> <!-- copyright (c) 2003-2013, cksource - frederico knabben. rights reserved. licensing, see license.html or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>api usage &mdash; ckeditor sample</title> <script src="../ckeditor.js"></script> </head> <body> <textarea cols="100" id="editor1" name="editor1" rows="10">&lt;p&gt;this &lt;strong&gt;sample text&lt;/strong&gt;. using &lt;a href="http://ckeditor.com/"&gt;ckeditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // replace <textarea id="editor1"> ckeditor instance. ckeditor.replace( 'editor1'); </script> </body...

c# 4.0 - Possible to register NullObject implementation as a fallback for a generic interface? -

we use lot of generics in our code. example icommandhandler<t> t icommand , icommandvalidator<t> etc etc not has icommandvalidator implementation. looking use nullobject pattern provide fall option avoid having test if validator null. for example public class nullobjectcommandvalidator : icommandvalidator<icommand> { public bool isvalid(icommand command) { return true; } } we register like: builder.registerassemblytypes(assemblies) .asclosedtypesof(typeof(icommandvalidator<>)) .instanceperhttprequest(); i hoping able register nullobjectcommandvalidator default icommandvalidator didn't have concrete implementation using process registering other icommandvalidators<> , registering null version @ end , preserving existing defaults. is possible? you should change nullobjectcommandvalidator generic type nullobjectcommandvalidator<tcommand> . way can register follows: builder.regist...

How to toggle active class on Foundation's section/accordion -

can suggest way toggle active class on foundation's section (accordion). tried following collapse open accordion tab: $( "p.title" ).click(function() { if ($(this).parent().hasclass("active")) { $(this).parent().removeclass("active"); } }); however, reverts expanded state. your idea fine. have prevent original foundation handler handle click after handled it. with code foundation handler gets called after handler. doesn't find active tag anymore , adds again. code should this: $( "p.title" ).click(function() { if ($(this).parent().hasclass("active")) { $(this).parent().removeclass("active"); return false; // prevents further propagation of event } });

Can opencl chain multiple passes without returning to CPU? -

i want auto scale data. so, want pass through data , find maximum extents of data. want go through data, calculations, , send results opengl rendering. type of multipass thing possible in opencl? or cpu have direct "find extents" calc, results, , direct other calc that? it sounds need 2 opencl kernels, 1 calculating min , max , other scale data. using opencl command queues , events can queue these 2 kernels in order , store results first in global memory, reading results in second kernel. semantics of opencl command queues , events (assuming don't have out-of-order execution enabled) ensure 1 completes before other without interaction host application (see clenqueuendrangekernel).

java - How to doget() or dopost() without submitting form,from an anchor -

i know asked previewsly didnt find solution yet. case want make (do or get) request servlet anchor in jsp file , not form.is possible? when click anchor link, you're sending request, doget() gets invoked. you cannot post request clicking such link . html anchors not designed way. you can use ajax , if don't want submit form or atleast can trigger form submission onclick of it. $("link").click(function(){ $("#form").submit(); });

sql - Updating a column with data from another table -

i have been trying update rows of column in database using following statement not working update member_payment p set debtor_receipt = (select sum(d.amount) debtor_receipt d, customer c, dairy_member m, member_payment p, vendor v m.member_id = c.member , d.customer = c.customer_id , p.payee = v.vendor_id , v.member = m.member_id , d.txn_date = '2013-04-30') p.payee in(select vendor_id vendor v, debtor_receipt d, customer c, dairy_member m, member_payment p v.member = m.member_id , m....

opencv - Haar Object Detection patent issue -

i know if of haar object detection api (python) in opencv patent protected? understand sift, surf, & haar cascade patented, not clear means regard of haar object detection api. if indeed patent protected, viable alternatives object detection (namely human anatomy)? api's can not patented. amounts merely code. however, api's used in process/machine/method/etc. can part of patent, because api used manipulate data in way. instead, api's can copyrighted (like book or song).

stencil buffer - Correctly use stencil_texturing in OpenGL -

i trying implement stencil_texturing extension of opengl proof of concept. video card supports gl 4.3 stencil_texturing available me. if more clarification necessary here spec provided: http://www.opengl.org/registry/specs/arb/stencil_texturing.txt . so goal of test render color buffer texture in frame 0, depth buffer in frame 1 , stencil buffer in frame 2. easy part done , have color , depth buffer textures rendered fine. issue lies stencil buffer , believe issue coming either lack of understanding stencil buffers (which case) or misuse of stencil_texturing. tried find info online there little available. to give idea of rendering here current frame captures: color buffer , depth buffer , stencil buffer so vision stencil buffer stencil out middle triangle, in middle triangle has value of 1 , every part of texture has value of 0. not sure how come when rendering imagine areas stencil value of 1 different 0. here code below. test class throw framework made them. believe thing...

c# - Multiple identical forms on a page in asp.net. How do I get variables? -

i'm having trouble figuring out. can't explain well, here html/asp first: <%for(int i=0; i<getcountrows(); i++) { setlabelsfestivals(i); %> <form action="festival_details.aspx" method="post"> <table id="table_600px_border"> <tbody class="content_table_left" style='padding: 10px;'> <tr> <td class="content_table_300px content_table_left_up"> <div class="text_bold"> <asp:label id="namefestival" runat="server"></asp:label> </div> <asp:hiddenfield id="fest_id" runat="server" /> </td> <td class="content_table_300px content_table_left_up_bottom"> <a...

How do I send an email using my ISP server from my localhost with PHP -

i have code: it keeps showing error: warning: mail() [function.mail]: smtp server response: 550 access denied - invalid helo name (see rfc2821 4.1.1.1). please out... $headers = 'mime-version: 1.0'.'\r\n'; $headers .= 'content-type: text/html; charset=iso-8859-1'.'\r\n'; $headers .= 'from: me@mydomain.com'.'\r\n'; if(mail($email, $subject, $content, $headers)) { echo 'status: feedback sent successfully!!!'; } else { echo 'error: '.mysql_error(); }

python - webapp2/wsgiref: "multiple values for keyword argument" when running on WSGI server -

the following code raises error if run on wsgi server, not otherwise. class handler(webapp2.requesthandler): def __init__(self, template, *args, **kwargs): print "kwargs in handler:", kwargs self.template = template super(handler, self).__init__(*args, **kwargs) class mainhandler(handler): def __init__(self, *args, **kwargs): template = jinja_env.get_template("helloworld.html") print "kwargs in mainhandler:", kwargs super(mainhandler, self).__init__(template= template, *args, **kwargs) if run on server, doing from wsgiref.simple_server import make_server server = make_server('localhost', 8000, app); while true: server.handle_request() and trying visit localhost:8080 , get kwargs in mainhandler: {} error:root:__init__() got multiple values keyword argument 'template' traceback (most recent call last): file "/media/data/code/kaiwarta/env/local/lib/python2.7/sit...

vb.net - Set AutoScrollPosition of horizontal scrollbar on tabpage -

i have tabcontrol has tabpage i've added autoscroll via properties window. when scrollbars appear, horizontal scrollbar automatically scrolled way right. exact opposite of need, when horizontal scrollbar appears, need automically scrolled way left. how do this? i've been tinkering autoscrollposition, doesn't seem anything...most user error on part. advice? haven't been able find on net that's been helpful. i'm using vb.net thanks! autoscroll position relative current position you'll need find current position , take away. tabpage1.autoscrollposition = new point(-tabpage1.autoscrollposition.x, 0)

In XSLT 2.0, why is there no fn:decode-for-uri? -

i have uri encoded string in xml can't decode using xslt. there fn:encode-for-uri encode string but no decode-for-uri decode. is there function have missed? if not, why not exist? michael kay answered question here : no there's no such function. as matter of interest, what's use case? i think reasons it's not there (a) absence of use case, , (b) difficulty in detail of specifying it: do example percent signs aren't followed 2 hex digits. (b) seems easy enough solve: either behavior implementation dependent, or processor throw runtime error. maybe there's more question i'm aware of. update: this follow-up post (in same thread linked above) shows xslt implementation of function decode percent-encoded (unreserved) characters.

javascript - PDFs in HTML pages: is PDF.js safe for production? -

i'm researching ways reliably view pdf files html pages on our site. i've found many references pdf.js , looks cool, has 0 documentation. development appears active, can't tell if it's realistic option production project right now. the language on github , mozilla full of "experiment..." , "test..." project seems have been around long enough there stable version. if answer yes, there documentation anywhere? edit: have no idea why closed 6 upvotes, answerable question, , no "unconstructive debate" whatsoever.

php - associative arrays and array_merge -

print_r($element_attrs); returns following arrays gathered xml file. array ( [weather-summary] => thunderstorms ) array ( [weather-summary] => thunderstorms ) array ( [weather-summary] => chance thunderstorms ) array ( [weather-summary] => cloudy ) array ( [weather-summary] => sunny ) array ( [weather-summary] => clear ) array ( [weather-summary] => sunny ) array ( [weather-summary] => clear ) array ( [weather-summary] => sunny ) array ( [weather-summary] => partly cloudy ) array ( [weather-summary] => sunny ) array ( [weather-summary] => partly cloudy ) array ( [weather-summary] => sunny ) array ( [weather-summary] => rain fog/mist ) array ( ) right 16 separate associative arrays in keys same except last 1 that's blank reason. i'd merge these separate arrays 1 big array using array_merge() or function can return second last value says "rain fog/mist" right when print_r(array_merge($element_attrs)); ...

javascript - Binding using ng-model inside ng-repeat in angularjs -

i'm trying bind model 'user' list of input fields. not know fields beforehand, i've write generic code setup form based on fields. <script> function mycontroller($scope){ $scope.fields = ['name','password','dob']; $scope.user1 = {name:"shahal",password:"secret"} }; </script> <div ng-app ng-controller="mycontroller"> <ul> <li ng-repeat="field in fields"> <label>{{field}}</label><input type="text" ng-model="user1.{{field}}"> </li> </ul> <pre>{{fields}}</pre> </div> i'm trying loop through fields , show input field each fields (available in scope). binding not proper i'm trying evaluate expression inside ng-model. basically i'm trying show 3 input fields (name,password,dob) object user1 attached corresponding field. here'...

c# - Using XmlIgnoreAttribute to Ignore Base Class Property -

i have abstract base class have added virtual properties. to, in derived class, specify particular base class property ignored during serialization(and deserialization process). see below, value -property in baseclass -class declared virtual property, , in derivedclass -class, using overrides -keyword, have chosen override base class's ppty , put xmlignoreattribute -attribute on it. however, when test code, still find value ppty included in generated xml derived class instance. same thing happens definition ppty, rendered though hide in derived class using new keyword, , apply xmlignoreattribute well. wrong code below please? public abstract class baseclass { public virtual string value { get; set; } public string definition { get; set; } [xmlattribute("separatorcharacter")] public virtual string separatorcharacter { get; set; } } public class derivedclass:baseclass { [xmlignore()] public overrides string value { get; set; } [xmla...

android - Hide series in legend in XYSeriesRenderer, AChartEngine -

i saw here: achartengine , hide series in legend , can use seriesrenderer.setshowlegenditem(false); and should hide specific series. however, can't find in xyseriesrenderer . i'm using achartengine-1.1.0-rc2.jar library. you can download nightly build version including feature here .

Apply php "dashesToCamelCase()" function to all css styled html text with in my various php files -

here php function: function dashestocamelcase($string, $capitalizefirstcharacter = false) { //$str = str_replace(' ', '', ucwords(str_replace('-', ' ', $string))); $string = preg_replace( '/-(.?)/e',"strtoupper('$1')", strtolower( $string ) ); if (!$capitalizefirstcharacter) { $string[0] = strtolower($string[0]); } return $string; } echo dashestocamelcase('e-f-i-l-re-t-fa'); here of html: <header> <ul> <li><a href="index.php">efilretfa</a></li> </ul> <div id = "linkone" > <a href="http://www.efilretfa.org/"> <img src="image/maps/five.jpg"</a> </div> <?php include 'includes/menu.php'; ?> <div class="clear"></div> </header> and here css relating title: a:link { color: grey; background-color: white; font-si...

Track one ajax form submission to several emails in Google Analytics -

i have ajax form submits several emails based on boxes checked. able track in google analytics companies form email sent - not form submission. i have figured out how track form submission following code based on success: success: function(response) { if (response.status == 'success') { $('#formcont').html(''); } $('#output').html(response.errmessage); $('#gaq').html(function(){_gaq.push(['_trackevent', 'booking - quote request', response.gaq ]);}); } i have tried track multiple events following code using while statement no success. new jquery may incorrect appreciated. response.gaq2 array of company names. success: function(response) { if (response.status == 'success') { $('#formcont').html(''); } $('#output').html(response.errmessage); $(...

Repeating Java Array -

i'm new java , still learning, keep in mind. i'm trying write program user can type in keyword , it'll convert numbers , put in array. problem array needs keep repeating int's. my code is: string keyword=inputdata.nextline(); int[] key = new int[keyword.length()]; (int k = 0; k < keyword.length(); ++k) { if (keyword.charat(k) >= 'a' && keyword.charat(k) <= 'z') { key[k]= (int)keyword.charat(k) - (int)'a'; } } right if try key[i] higher keyword.length throws outofbounds error. need to infinte. so basically, if keyword.length() 3 need able see if key[2] same key[5] , key[8] , on. thanks help! well, it's easiest fix code bit of refactoring first. extract uses of keyword.charat(k) local variable: for (int k = 0; k < keyword.length(); ++k) { char c = keyword.charat(k); if (c >= 'a' && c <= 'z') { key[k] = c'a'; } }...