Posts

Showing posts from January, 2014

javascript - Jquery TypeWriter Effect variable change -

i'm attempting create jquery typewriter effect scrolls through different sentences each 10 seconds. @ 10 second break style of site changes. problem after first run through sentences turn gibberish variable 'text_number' keeps getting changed , i'm not sure why. any appreciated. var textone = '"hello world"'; var texttwo = '"what happening"'; var textthree = 'good morning'; function text_change(text_number) { if (text_number === 1) { var splittext = textone.split(""); } else if (text_number === 2) { var splittext = texttwo.split(""); } else if (text_number === 3) { var splittext = textthree.split(""); } var n = splittext.length; function text_animation(textpos) { var previousi = textpos - 1; var nextletter = splittext.slice(previousi, textpos); if (nextletter == '*') { $("#quote-div p").append(&qu

php - jQueryUI on Laravel Blade -

i implementing jqueryui laravel app, want have delete confirmation, i'm failing implement one. here code: @foreach(array_chunk($items->all(), 3) $row) <div class="row" style="margin-bottom:40px;"> @foreach ($row $item) <div class="col-md-4"> <img src="{{$item->img_loc}}"> <div> <strong>breed: </strong>{{ $item->bname}}<br/> <strong>gamefarm: </strong>{{ $item->g_origin}}<br/> <strong>leg band: </strong>{{ $item->lband}} <h3><a href="{{ action('gamefarmscontroller@edit', $item->id) }}" >edit</a>|<a id="thelink" href="#">delete</a></h3> </div> </div> @endforeach and here jquery: <script> $(function() { $( "#dialog-confirm" ).dialog( { autoopen: false

SQL Server output as XML -

sql server code generates output xml having problem not getting output per requirement select section.text, section.imageurl, (select item.text "item/@text", item.url "item/@url", item.imageurl "item/@imageurl" xml path(''),type) items tblatnot_menusections section join (select mit.text, mit.url, mit.imageurl, mit.section, mit.itemorder tblatnot_menuitems mit join tblatnot_rolemenuaccess rma on (rma.item = mit.item , rma.valid = 1) (mit.valid = 1 or mit.valid null) , rma.role in (select distinct rum.roleid tblssappsroleusermap rum join viwssappsempmasterextended vem on (vem.personid = rum.personid) vem.isemployeeactive = 'y' , vem.personid = 86

Why can I not call my PHP script from HTML button? -

i using button html script unset cookies, cannot make call php script through button click. html script <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>wcsst 2</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type='text/css'> </style> </head> <body> <button style="color: black" <?php if(isset($_cookie["name"])) { ?> disabled <?php } ?> value='set cookie'><b>unset cookie</b></button> <!-- end page source --> </body> </html> php script <?php unset($_cookie['name']); unset($_cookie['age']); header("location: cm.php"); exit(0); } ?> how can make call php script through button click? <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>wcsst 2</title> <meta http-equiv="c

javascript - How to pass the li tag id via AJAX when clicking the li item? -

i want pass id value show city function on click of li tag values any relevant method accepted <script type = "text/javascript" > function showcity(str) { if (str == "") { document.getelementbyid("city").innerhtml = ""; return; } else { if (window.xmlhttprequest) { // code ie7+, firefox, chrome, opera, safari xmlhttp = new xmlhttprequest(); } else { // code ie6, ie5 xmlhttp = new activexobject("microsoft.xmlhttp"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readystate == 4 && xmlhttp.status == 200) { document.getelementbyid("city").innerhtml = xmlhttp.responsetext; } } xmlhttp.open("get", "city.php?q=" + str, true); xmlhttp.send(); } } </script> <div id="menu"> <ol id="test"> <?php $stat=m ysql_qu

scala - What is the first semicolon in `addCommandAlias` method used for in SBT? -

for example, have write alias this: addcommandalias("make-idea", ";updateclassifiers; updatesbtclassifiers; gen-idea sbt-classifiers") instead of addcommandalias("make-idea", "updateclassifiers; updatesbtclassifiers; gen-idea sbt-classifiers") if skip first semicolon, sbt complain.. have ideas first ; in second argument of addcommandalias do? this sbt's syntax specify multiple commands. normal sbt cli behavior , not specific addcommandalias . the same happens in sbt shell: sbt> updateclassifiers; updatesbtclassifiers; gen-idea sbt-classifiers [error] expected id character // etc. sbt> ; updateclassifiers; updatesbtclassifiers; gen-idea sbt-classifiers // expected

php - Embedded document for Signing -Docu sign REST API -

i`m using rest api embedding signing.i want embedded document signing in website each user logged website. have created template , add tags , set them required. while creating template in 'recipients , routing' section have provided 1 signer email , name. generating url embedded signing have used following code <?php // input info: $email = "***"; // account email $password = "***"; // account password $integratorkey = "***"; // account integrator key, found on (preferences -> api page) $recipientname = "***"; // provide recipient (signer) name $templateid = "***"; // provide valid templateid of template in account $templaterolename = "***"; // use same role name exists on template in console $clientuserid = "***"; // add embedded recipient must set clientuserid property in addition // recipient name , email. whatever set clientuserid must use sa

javascript - How to fetch all the results from MySQL table? -

i trying fetch results phpadmin mysql table. problem using below code php , angular js, first row gets fetched everytime. suppose there 5 entries in table. whats happens first 1 getting displayed 5 times on website. when php echo (commented out in code), returns result table, not working angular js. i using js fuzzy search library have not provided here due space issues. here code otherwise : </table> <?php $result = mysql_query("select * user_files order id desc"); while($row = mysql_fetch_array($result)){ $id1 = $row['id']; $name = $row['user_file_name']; //echo $name.'<br/>'; ?> <div class="container" ng-init="books=[{book:'<?php echo $name;?>',author:'<?php echo $id1;?>'}]"> </div> <tr ng-repeat="bookinfo in books | filter:booktext | orde

javascript - how to update filter function in ng-repeat -

there problem, when click 1 of tab <div class="segmented-control"> <a href="#" ng-click="click(1)" ng-class="class" class="control-item ">near</a> <a href="#" ng-click="click(2)" ng-class="class" class="control-item ">often</a> <a href="#" ng-click="click(0)" ng-class="class" class="control-item ">all</a> </div> then <li class="table-view-cell media" ng-repeat="shop in shops | filter: func | orderby:'bysort'"> could update "filter: func". , angularjs here $scope.shops =[{..,near:ture,often:flase},{..,near:false,often:true}]; $scope.click = function(e) {..} then can't put look @ snippet: angular.module('myapp', []) .controller('mycontroller', function($scope){ $scope.locations = [ {

java - Regex check to see if a String contains non digit fails -

why fail? string n = "h107"; if (n.matches("\\d+")) { system.out.println("non digit in it"); } i had night sleep on it, , still not it. got solution now: if (n.matches(".*\\d+.*")) { but in (maybe lack of knowledge) first 1 should match. cause if has match complete string, what's point of '^' character line beginning. that recurring problem of .matches() : misnamed. not regex matching. , problem other languages have fallen prey misnaming (python 1 example). the problem try match whole input. use pattern , matcher , .find() instead ( .find() does real regex matching, ie find text matches anywhere in input): private static final pattern nondigit = pattern.compile("\\d"); // in code if (nondigit.matcher(n).find()) // there non digit you should in fact use pattern ; string 's .matches() recompile pattern each time . pattern compiled once.

citations - author, year in Lyx -

i use citation style: author, year. configuration have use? if \usepackage[comma]{natbib} collides preferences can chose between numerical , author-year. not need natbib, prefer standard plain style, have author,year instead of [1]. would thankful help. maybe you'd style authordate1, see here sme examples: http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html

javascript - Cors issue when rest api application server(express) and Angulars js application running on different port -

i have rest api application written in node.js & express running on port 3000 , angularjs application running on port 9001 on same server . on calling rst api angularjs application giving cors issue . in rest api application , have used "cors" module var cors = require('cors'); app.use(cors()); but giving me following error cross-origin request blocked: same origin policy disallows reading remote resource @ http://localhost:3000/api/user/login. can fixed moving resource same domain or enabling cors request header , response header follow response header content-length 222 content-type application/json; charset=utf-8 date tue, 16 dec 2014 08:40:05 gmt x-powered-by express view source request header accept application/json, text/plain, / accept-encoding gzip, deflate accept-language en-us,en;q=0.5 authorization null content-length 47 content-type application/json;charset=utf-8 host localhost:3000 origin http://localhost:9001 referer http

unity3d - Position wall of arrows in front of player -

i having difficulty positioning wall of objects(arrows) in front of player. want solid wall of arrows shot in front of player perpendicular view. far have spawning of objects correct , y-axis placement correct. need z , x-axis alignment correct. code follows: void run() { vector3 pos = transform.position; quaternion angle = transform.rotation; gameobject clone; float startx = pos.x; pos.y += 0.7f; pos.z += 2f; for(int y = 0; y < maxarrows; y++) { pos.y += 0.5f; for(int x = 0; x < maxarrows; x++) { pos.x -= 0.5f; clone = arrowpool.getarrowold(); if(clone != null) { clone.transform.position = pos; clone.transform.rotation = angle; clone.rigidbody.velocity = clone.transform.forward*force; } } pos.x = startx; } } you're not taking account orientation of player when calculate pos

c# - Get IPAddresses on a local Network using `Directory Entry` -

i have develop desktop app shall allow me file sharing on local network.for this, able listview of devices hostname when comes know ip addresses , mac went see system.net and several other msdn forums (where available metro apps). how can ip addresses & mac address of devices on local network? i using directoryentry user names , displayed in listview . lstlocal.items.clear(); lstlocal.view = view.details; lstlocal.fullrowselect = true; directoryentry root = new directoryentry("winnt:"); foreach (directoryentry computers in root.children) { foreach (directoryentry computer in computers.children) { if (computer.name != "schema") { listviewitem item = new listviewitem(computer.name); // item.subitems.add(computer.name); //messagebox.show(computer.name); lstlocal.items.add(ite

php - LEFT JOIN in MySQL does not work right -

i have trouble getting right result * left join. i have 2 tables crist | id | tex and izteg | id | crist_id | ip i want replace tex first table taking second table using crist_id i tried following, not working: $connect = mysql_connect($hostname, $dbuser, $dbpass)or die(mysql_error()); mysql_select_db($dbname,$connect); $sql = "select id,tex izteg left join izteg on izteg.id = crist.crist_id"; $zaqvka = mysqli_query($connect, $sql) or die (mysql_error()); while($row = mysqli_fetch_array($qry)) { echo "sad"; echo $row['tex']; echo $row['crist_id']; } i may missing obvious try using this: join crist table not same , crist table not have crist_id how can join on that. select crist_id,tex izteg left join crist on izteg.crist_id = crist.id; use this: $zaqvka in while not $qry while($row = mysqli_fetch_array($zaqvka)) { echo "sad"; echo $row['tex']; echo $row['crist_i

PHP doesn't create session -

after check, that's problem actually: warning: unknown: write failed: no space left on device (28) in unknown on line 0 warning: unknown: failed write session data (files). please verify current setting of session.save_path correct (/mnt/ramdisk) in unknown on line 0 add session_start() in beginning of code this, , see if helps. session_start(); $file = fopen($path, "r"); if($file) { if(isset($_post['login'])) { while(($line = fgets($file)) !== false) { $user_data=explode(";", $line); if($_post['login']==trim($user_data[0])) { if(md5($_post['pass'])==trim($user_data[1])) { $_session['logged']=htmlspecialchars($_post['login']); header('location:vms.php');

python - Set background color of layout -

Image
as layout object has no attribute ".setstylesheet()", how can 1 set background color given layout? as visual explanation, can set both label , button background color, not entire layout, includes spacer. programatically, i'm organizing information in horizontal layouts , displaying them in frame. alternate background colors each loop. for param_name in parameters: hlayouts.append(qtgui.qhboxlayout()) labels.append(qtgui.qlabel("%s"%param_name)) sliders.append(qtgui.qspaceritem(10,10,hpolicy=qtgui.qsizepolicy.expanding)) spins.append(qtgui.qdoublespinbox()) spins[index].setvalue(float(values.get(param_name))) labels[index].setstylesheet("background-color:black;") spins[index].setstylesheet("background-color:black;") hlayouts[index].addwidget(labels[index]) hlayouts[index].additem(sliders[index]) hlayouts[index].addwidget(spins[index]) index += 1 vlayout = qtgui.qvboxlayout() in range

Enabling AWS SDK logging to custom logfile via java logging framework -

i trying enable amazon web services sdk logging using java.util.logging framework instead of log4j. have managed working , logs go file specified java.util.logging.filehandler.pattern in properties file. my log.properties file org.apache.commons.logging.log=org.apache.commons.logging.impl.jdk14logger handlers=java.util.logging.filehandler com.amazonaws.request.level=fine java.util.logging.filehandler.formatter=java.util.logging.simpleformatter java.util.logging.filehandler.pattern=./javalog.log what looking way set file name @ runtime. i tried following options option 1: in properties file: set following java.util.logging.filehandler.pattern=${mylogfile} and in main() function of java program, call system.setproperty("mylogfile", logname); option 2: delete line "java.util.logging.filehandler.pattern" properties file. instead, call system.setproperty("java.util.logging.filehandler.pattern", logname); both these options not wo

sql - Can't convert timestamp to date -

i'm trying convert timestamp saved in table date, reason, returns same date, or gives me strange error: ora-01830: date format picture ends before converting entire input string here have tried no success: type of change_date field timestamp(6) select to_date (change_date, 'yyyy-mon-dd') test gives me above error. select cast(systimestamp date) test no change in format. select to_date(to_char(change_date)) test no change. select to_char(to_date(change_date, 'dd-mon-yy')) test no luck. and few other tricks can't remember, returns same format - 16-dec-14 07.59.24.097000 am i need output date - example 16-dec-14 i know i'm missing small part here, i'm not able spot it. can give me push! to truncate time part of date or timestamp value should use trunc function. default truncates time part, returning date time of midnight. depending on database version can directly truncate timestamp, or may have cast date first, eg

ios - Show warnings for undocumented methods -

i'm searching ways improve code quality , i'm struggling documentation. using xcode built-in documentation tool (headerdoc if i'm right), i'd have warnings each undocumented method when building app. at moment, i'm able show warnings documentation errors enabling "documentation comments" variable in build settings. is possible, or have use other documentation tool warnings? edit here example of want: in header files /** * documentation */ -(void) adocumentedcustommethod; // custom method documented : no warning -(void) anundocumentedcustommethod; // custom method not documented: 1 warning in implementation files /** * documentation */ -(void) adocumentedcustommethod {...} // custom method documented: no warning -(void) anundocumentedcustommethod {...} // custom method not documented: 1 warning -(void) viewdidload {...} // sdk method : no warning. after studying oclint, may possible write custom rule detec undocumented methods in

Java arraylist how to read DDE double values from an excel file and write into an array? -

i have excel file dde links external sources. trying read values java application. i using apache poi library read excel. when trying, following error: exception in thread "main" java.lang.illegalstateexception: cannot numeric value text cell @ org.apache.poi.hssf.usermodel.hssfcell.typemismatch(hssfcell.java:643) @ org.apache.poi.hssf.usermodel.hssfcell.getnumericcellvalue(hssfcell.java:668) @ basketexcelread.run(basketexcelread.java:40) @ tester.main(tester.java:7) my code is import java.io.file; import java.io.fileinputstream; import java.io.ioexception; import java.util.arraylist; import java.util.list; import org.apache.poi.hssf.usermodel.hssfcell; import org.apache.poi.hssf.usermodel.hssfrow; import org.apache.poi.hssf.usermodel.hssfsheet; import org.apache.poi.hssf.usermodel.hssfworkbook; public class basketexcelread implements runnable { public void run() { string inputfile = "someexcel.xls"; list<string> code = new

java - How to set text @ absolute position in the PDF Document using iText -

i trying use @aaronbartell example, place text @ required (absolute) position in pdf document. please give me direction, thanks. example: private static void abstext(string text, int x, int y) { try { pdfcontentbyte cb = writer.getdirectcontent(); basefont bf = basefont.createfont(basefont.helvetica, basefont.cp1252, basefont.not_embedded); cb.savestate(); cb.begintext(); cb.movetext(x, y); cb.setfontandsize(bf, 12); cb.showtext(text); cb.endtext(); cb.restorestate(); } catch (documentexception e) { e.printstacktrace(); } catch (ioexception e) { e.printstacktrace(); } } if use itext, create pdf document in 5 steps" create document instance create pdfwriter instance open document add content close document in question, not create pdfwriter instance (unless it's global variable). in comment, not open document (you've skipped step 3 , step essential in document creation process). take code co

Command line arguments in shell script -

following shell script iterates on command line arguments , prints values for var in "$@" echo $var done now if want iterate second command line argument (the first argument being used other purpose), command exclude first argument alone in iteration ? use shift : #!/usr/bin/env bash shift var in "$@"; echo "$var" done

ios - CMPedometer queryPedometerDataFromDate returns error 103 -

i'm trying query pedometer cache on iphone 6 ios 8.1.2, i'm using objective-c, have imported coremotion framework , included in project code looks this nsdate *startdate = [[nsdate date] datebyaddingtimeinterval:-60*60*12]; nsdate *enddate = [nsdate date]; cmpedometer *pedo = [[cmpedometer alloc]init]; [pedo querypedometerdatafromdate:startdate todate:enddate withhandler:^(cmpedometerdata *pedometerdata, nserror *error) { if (error) { nslog(@"error: %@", error); } }]; this gives me error: error domain=cmerrordomain code=103 "the operation couldn’t completed. (cmerrordomain error 103.)" if exact same thing in swift this var datestring = "2014-12-15" var dateformatter = nsdateformatter() dateformatter.dateformat = "yyyy-mm-dd" var startdate = dateformatter.datefromstring(datestring) var enddate = nsdate() pedometer.querypedometerdatafromdate(startdate, todate: enddate){ (dat

c# - Can an observable stream be partitioned by a timestamp, similar to Buffer or Window? -

i have stream of objects each contain timestamp. want partition stream non-overlapping windows, in similar fashion observable.buffer or observable.window. want window or buffer close when timestamp of object exceeds threshold, rather when real-time threshold exceeded. for example, suppose want partition data 30 second windows/buffers , first object has timestamp of 00:00:00. when reach object timestamp exceeds 00:00:30 want window/buffer close , start cycle again. in way objects grouped appropriate buckets based on timestamp. the current operators buffer , window close need not exactly. example, if did this: mysource.window(timespan.fromseconds(30)) then of objects subscription encounters within 30 second window. problem data partitioned real-time 30 second window, rather window based on timestamp of object itself. i guess requires me implement appropriate windowclosingselector func, i'm having difficulty getting work. yes, can quite easily. edit - i've

javascript - How to handle database null values in jquery datatable -

i have jquery datatable data coming database,fetched java servlet.few columns have null values.because of getting warning datatables warning: table id=lplist - requested unknown parameter 'feecompany' row 9. more information error, please see http://datatables.net/tn/4 i want null values replaced empty string.can please guide how achieve this. my code snippet below <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://cdn.datatables.net/1.10.4/js/jquery.datatables.min.js"></script> <script src="http://cdn.datatables.net/scroller/1.2.2/js/datatables.scroller.min.js"></script> <link href="http://cdn.datatables.net/scroller/1.2.2/css/datatables.scroller.css" rel="stylesheet" type="text/css" /> <link href="http://cdn.datatables.net/1.10.4/css/jquery.datatables.css" rel=

visual studio 2008 - SSIS 2005 dtsx Objects Migration to SQL Server 2012 -

i have heaps of dtsx objects on file system (2005 compatible), of objects have encryptsensitivewithuserkey setup developer no password available. i need migrate dtsx objects sql server 2012, getting error try migrate expected. could guys suggest way change or overwrite encryptsensitivewithuserkey of dtsx object on file system. i not want open object in visual studio change permission level talking 400+ objects migration. appreciate quick response. are using external xml configuration file project? in case, add key file: <configuration configuredtype="property" path="\package.properties[packagepassword]" valuetype="string"><configuredvalue></configuredvalue></configuration> <configuration configuredtype="property" path="\package.properties[protectionlevel]" valuetype="int32"> configuredvalue>2</configuredvalue></configuration> note: in 2nd key-value pa

node.js - How do I update each dependency in bower.json to the latest version? -

for example here dependencies bower.json "dependencies": { "bootstrap": "~3.1.1", "socket.io-client": "1.2.1", "underscore": "~1.6.0", "angular-bootstrap": "~0.12.0" } i can see underscore has newer 1.7.0 version , bootstrap has newer version of 3.3.1. if npm change versions * "dependencies": { "bootstrap": "*", "socket.io-client": "*", "underscore": "*", "angular-bootstrap": "*" } and run npm update --save npm download latest versions , replace * in package.json file. doesn't work bower. how bower same thing , update packages @ once newest version? you using tilde ranges allows patch-level changes if minor version specified on comparator. allows minor-level changes if not. example: ~3.1.1 := >=3.1.1 <3.(1+1).0 := >=3.1.1 <3.2.0 in case means depend

php - Apache error log shows :-unable to load php_pspell.dll -

i m getting whitescreen on browsing public folder of zend application code.on checking apache error log file found following errorvlog:apache error log shows :-unable load php_pspell.dll. use proper quoting try replace ‘ ' (single quote) require_once ‘zend/loader/autoloader.php'; to require_once 'zend/loader/autoloader.php';

html - Javascript find all text except those in <a> tag -

i have div, , div can (or cannot) have html elements children. javascript, need find occurrences of word inside div, except in <a> tag. for example: <div id="dictionable"> lorem ipsum dolor sit amet, consectetur adipiscing elit. <br/><br/> <a href="#lorem">lorem</a> <br/><br/> <p>lorem</p> </div> i tried ultra low capabilities build regex, failing miserably. googled , found this: var pattern = new regexp('(lorem)(?![^<]*>|[^<>]*</)', 'gim'); this regex finds every occurrence of "lorem" not in every tag. need exclude tag. could me? no regex. absolutely no regex. nuh-uh. nope. var copy = document.getelementbyid('dictionable').clonenode(true), links = copy.getelementsbytagname('a'), l = links.length, i; for( i=l-1; i>=0; i--) { // work in reverse order when deleting stuff, it's safer!

jquery - How to access & populate dropdown when dropdown wildcard id is stored in varibale -

in case have common routine populate dropdown , when calling routine passing dropdown wild card id routine way calling way populatedropwdown(0, 15, '$("select[id*=cboearlycolhrs]")', '09'); function populatedropwdown(startidx, lastidx, targetid, selectedval) { var listitems = ''; $(targetid).html(""); (var = startidx; <= lastidx; i++) { if (i == 0) { if (i == selectedval) listitems += "<option value='" + selectedval + "'>00</option>"; else listitems += "<option value='00'>00</option>"; } else { var valuehrs = '', txtdata = ''; valuehrs = convertdateto12hrs(i, true); txtdata = convertdateto12hrs(i, false); if (txtdata == selectedval)

python - PDF at custom points in KDE -

i using 'density' function in base r generate kde given data vector (1-d). argument 'n' 'density' function gives probability density estimate @ n uniformly spaced points. there way can estimate @ custom list of points? i thinking want density estimate @ every 0.01 percentile point, points closer have high density, , farther when not, aligning pdf estimate confidence of pdf function @ point. x,y collection stored , used later scoring after model development. those familiar python recognize functionality available in scipy.stats.gaussian_kde.evaluate(..) i think realised meant: apparently, can sm package: library(sm) <- rnorm(200) sm.density(a, eval.points = a)$estimate #the eval.points argument key argument looking output: > sm.density(a, eval.points = a)$estimate [1] 0.12772710 0.02405005 0.21971466 0.34392609 0.39495931 0.41543305 0.21263921 0.41537832 0.32914302 0.25565207 [11] 0.35121705 0.27957087 0.19930803 0.41556843 0.26

multithreading - Camel-SEDA in spring DSL - slow performance -

there 2 routes in camel spring dsl: <route id="master"> <from uri="quartz..."/> <to uri="mongodb:testdb?database={{testdb}}&collection={{testcollection}}&operation=findall" /> <split streaming="true"> ... .. <to uri="seda:slave"/><br> </split> </route > <route id=""> <from uri="seda:slave"/> ....... ..... </route > issues , questions: use case 1: mongo find return 100k documents , using splitter pattern , calling sub route.initially used "direct" component instead seda. took around 30 mins complete process. use case2:enable multi thread options i wanted use multi threading option in splitter eip pattern , changed direct component seda because direct synchronous. after changed seda component result quite different i.e slow 120 records taking 1 minute. question: is there performance issue in

css - How to fix the display issue when the tab heading is long for the jquery UI tabs -

i have jquery ui tabs, tab headings of element keeps changing. what issue when tab heading long, tabs wont display , tab headings well, the example can found here jsfiddle link , has input accept tab heading updated, when give long text "testttttttttttttttttttttttttttttttttttttttttttttttttttttt". tabs not display properly. how resolve issue displaying tabs in-spite of width of text. you add following css make tabs (max-)width , cut off titles ... if long. .ui-tabs-anchor { white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; } jsfiddle

parse.com - Parse SDK/Wrapper for Cocos2d-X game engine -

i'm developing mobile game using cocos2d-x game engine. want add social , analytics game; , parse seems quite nice solution regarding these aspects. find information unity support couldn't find helpful how implement cocos2s-x. info appreciated! regards, mike. cocos2d-x has solution 3rd party service integration, facebook, admob etc. the solution called plugin-x: https://github.com/cocos2d-x/plugin-x and find useful solutions in cocos2d-x's wiki page shows information how use plugin-x , how add own service plugin-x.

objective c - iOS - comparing app versions -

i want update app on app store. when app first opened after update, want sync stuff. therefore need way see if it's first launch after update. the solution thought of is: storing app version in nsuserdefaults this: nsstring *oldversion = [[nsuserdefaults standarduserdefaults] objectforkey:@"appversion"]; nsstring *currentversion = [[[nsbundle mainbundle] infodictionary] objectforkey:@"cfbundleshortversionstring"]; [[nsuserdefaults standarduserdefaults] setobject:currentversion forkey:@"appversion"]; [[nsuserdefaults standarduserdefaults] synchronize]; now have oldversion , currentversion , need compare them. want know if oldversion smaller currentversion . strings. how can check if oldversion < currentversion ? i know can check if not equal. want prepared future updates. because maybe syncing want perform 2 different version 3 , on. you can compare numeric version numbers using natural sort order (which consider 1.10 come af

cordova - Phone gap File type from DATA_URL -

how can file properties size, type data_url. using following code. function getimage() { // retrieve image file location specified source navigator.camera.getpicture(uploadphoto, null, { quality: 50, destinationtype: navigator.camera.destinationtype.data_url, savetophotoalbum: true, sourcetype: 2 }); } function uploadphoto(data) { // here want file type/ size } is there way this? i'm afraid can't directly, because picture returned base64 string. however, possible type , size. type : can define type when setting options making picture cordova plugin. options set encodingtype . can set to: camera.encodingtype = { jpeg : 0, // return jpeg encoded image png : 1 // return png encoded image }; size : can calculated simple method this: var imagebytecount = function (imagestring) { return encodeuri(imagestring) .split(/%(?:u[0-9a-f]

How to Implement draggable map like uber android, Update with change location -

Image
how implement draggable map uber? using google maps v2. got solution referring this post , sharing complete solution here updated latest code included change location autocomplete complete project can found here logic simple need framelayout , add map , marker layout inside framelayout make maker layout gravity center , latitude , longitude of centre point of map on camera change refer this answer here code create activity_maps.xml <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" android:orientation="vertical"> <linearlayout android:id="@+id/container_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <include android:id="