Posts

android - Dynamic graphic interactions on mobile: HTML5 and Javascript or native application -

i have develop mobile application displays dynamic generated images , allows user perform different actions pressing region of image. example displaying router , allowing user select 2 ports on router. ports color should dynamically change when selected. i'm not experience mobile development wondering differences between html5 + javascript solution , native app. native app give me more flexibility in dealing graphics? limitation of graphic representation of html5 + javascript compared native apps? i think use both technologies 1 recommended keeping in mind functionality beginning. sure product extend more , there more complex graphical interactions implement in future. thanks, irina using html5 , javascript easier compared native android or ios code. you can develop once , use for multiple devices (android, ios etc) native faster, though javascript rendering in mobile devices getting faster. with html5 , javascript limited device's browser limitation th...

html - SmartGWT / GWT accessing div created in constructor via javascript -

i trying integrate custom javascript library smartgwt project. i have areas of page loaded dynamically via button clicks , in java code have following pseudo code: button . onclick { contextarea = new contextareatypea() } so contextareatypea created , within constructor want create series of div elements, assign them ids , call function in custom library loads content divs. smartgwt gets rid of way of getting hold of ids or setting ids on element in page, create ids on elements either have create own widget , override getinnerhtml or create htmlflow , add content myflow.setcontent('<div id="myid" ></div>'); way doing it. my problem doing in constructor means when come call custom javascript function takes id, div created not seem attached dom yet null pointer. since module , document loaded , content being dynamically added in can't call document ready or onmoduleload, how , when should detecting load of div , when safe access di...

php - wordpress site uploaded on Plesk server gives warning and permalink issue -

i have uploaded wordpress site shared plesk parallel panel dedicated plesk parallel panel. getting 1 warning in testimonial rotator plugin follow : warning: file_exists() [function.file-exists]: open_basedir restriction in effect. file(path1\httpdocs/wp-content/plugins/site_url/wp-admin/edit.php) not within allowed path(s): (path_2_site;path_2_temp) and having problem in permalink settings. set custom structure : /%category%/%postname%/ it gives 404 : page not found. don't know problem actually, on server or in site. because working fine on shared plesk. please me out of these issue thanks in advance, mona it looks loading files second site located on same server, correct? you need adjust open_basedir settings allow php functions access files in other site ordinarily outside of allowed access. i think indicating site on dedicated server (that assume have full access to), if should able create vhost.conf file wordpress site adjust open_basedir set...

javascript - Move items between two ListBoxes in ASP.Net using JQuery -

i want move items between 2 listboxes in asp.net using jquery/javascript , below code working perfectly. function additems() { var totalitemsselected = 0; var currentitems = 0; var messagelabel = document.getelementbyid('<%=lblitprogrammingmessage.clientid%>'); var selectedoptions = jquery('#<%=listitprogramming.clientid %> option:selected'); if (selectedoptions.length == 0) { messagelabel.innerhtml = "please select skill(s) add."; jquery('#<%= lblitprogrammingmessage.clientid %>').fadeout(2000, function () { messagelabel.innerhtml = ""; }); jquery('#<%= lblitprogrammingmessage.clientid %>').fadein(500, function () { }); return false; } jquery('select[name$=listmyitprogramming] > option').each(function () { currentitems++; }); if (currentitems == 30) { messagelabel.innerhtml = "maximum limit (30) reached. cannot add...

android - Is there any way to get upload progress correctly with HttpUrlConncetion -

android developers blog recommend use httpurlconnection other apache's httpclient ( http://android-developers.blogspot.com/2011/09/androids-http-clients.html ). take advice , problem in reporting file upload progress. my code grab progress this: try { out = conncetion.getoutputstream(); in = new bufferedinputstream(fin); byte[] buffer = new byte[max_buffer_size]; int r; while ((r = in.read(buffer)) != -1) { out.write(buffer, 0, r); bytes += r; if (null != mlistener) { long = system.currenttimemillis(); if (now - lasttime >= mlistener.getprogressinterval()) { lasttime = now; if (!mlistener.onprogress(bytes, msize)) { break; } } } } out.flush(); } { closesilently(in); closesilently(out); } this code excutes fast whatever file size, file still uploading server util response server. seems httpurlconnec...

angularjs - angular how to define multiple controllers -

i have code angular.module('mywidget', ['$scope']).controller('testcontroller', testcontroller); i want add controller ..say ...controller("test2controller",test2controller) just wanted know how can achieve ? you can var myapp = angular.module('mywidget', ['$scope']); myapp.controller('testcontroller', testcontroller); myapp.controller('test2controller', test2controller);

laravel - Import of 50K+ Records in MySQL Gives General error: 1390 Prepared statement contains too many placeholders -

has ever come across error: general error: 1390 prepared statement contains many placeholders i did import via sequelpro of on 50,000 records , when go view these records in view (laravel 4) general error: 1390 prepared statement contains many placeholders. the below index() method in adminnotescontroller.php file generating query , rendering view. public function index() { $created_at_value = input::get('created_at_value'); $note_types_value = input::get('note_types_value'); $contact_names_value = input::get('contact_names_value'); $user_names_value = input::get('user_names_value'); $account_managers_value = input::get('account_managers_value'); if (is_null($created_at_value)) $created_at_value = db::table('notes')->lists('created_at'); if (is_null($note_types_value)) $note_types_value = db::table('note_types')->lists('type'); if (is_null($contact_names_value)) $con...