Posts

How to scroll an android listview, with 2 items -

hi i'm using following circular list view has 3 items not fill_parent, how force scrolling last item ends @ bottom of screen , first item in middle , on. have tried capture de event by @override public boolean onintercepttouchevent(motionevent ev) { return super.onintercepttouchevent(ev); } but not work thank best regards

Swift: Converting a string into a variable name -

i have variables incremented numbers within, such row0text, row1text, row2text, etc. i've figured out how dynamically create string versions of variable names, once have strings, how can use them actual variable names rather strings in code? example: var row3text = "this value need!" var firstpart = "row" var rownumber = 3 var secondpart = "text" var = (firstpart+string(rownumber)+secondpart) // below gives me concatenated string of 3 variables, i'm looking way have return value set @ top. println (together) once know how this, i'll able iterate through variables using loop; it's @ moment i'm unsure of how use string variable name in code. thanks! short answer: there no way for reason . use arrays instead. long answer: looking way define unknown number of variables linked common format. looking define ordered set of elements of variable length. why not use array? arrays containers allow store ordered set...

flex itemrenderer prevents datagrid item select -

i'm new flex , have encountered problem itemrenderer can't find solution to. i've asked coworker plenty of flex experience, , i've tried searching internet no luck. problem have datagrid in each column uses itemrenderer display information, , reason causes user unable select of datagrid rows. think must have itemrenderer, because when added dummy column without itemrenderer, able highlight , select row clicking on dummy column, others still did not work. i've tried comparing code code other datagrids itemrenderers work, haven't been able find differences cause problem mine giving me. know why happen? thank you! my datagrid (i tried include think should relevant keep things concise. if thinks more information needed, please let me know!): <mx:datagrid id="servicegridui" left="10" right="10" top="10" bottom="85" selectable="true" stylename="formdatagrid" varia...

google app engine - How to manually delete local gcloud Dart DB? -

i running simple code db.query(sampletype).run().tolist(); and getting error. when query types don't error, other do. seems i've populated db , updated types , query won't decode. haven't tried using filter, if use lookup known entity work, using command erase sampletype s db, stuck undesired damaged entities. how manually erase db? starters, local db reside? here actuall error bad state: error while decoding entity (illegal argument(s): type argument must not null., #0 key.key (package:gcloud/src/db/models.dart:22:7) #1 key.append (package:gcloud/src/db/models.dart:55:16) #2 modeldbimpl.fromdatastorekey (package:gcloud/src/db/model_db_impl.dart:65:23) #3 modelkeyproperty.decodeprimitivevalue (package:gcloud/src/db/annotations.dart:179:31) #4 listproperty.decodeprimitivevalue (package:gcloud/src/db/annotations.dart:268:65) #5 _modeldescription._decodeproperty (package:gcloud/src/db/model_db_impl.dart:427:42) #6 _modeldesc...

excel - Max of DateTime (custom) field not recognized in PivotTable -

Image
i have simple raw data format of column lastusagetime custom (yyyy-mm-dd hh:mm:ss): and pivottable: . the lastusagetime column max function (i want display dates, not count them). problem excel doesn't understand custom datetime format of raw data lastusagetime reason. puts 1900-01-00 everywhere. however, if copy text of lastusagetime , paste notepad, copy/paste excel, works fine! however, raw data sourced external xml file, when click refresh, gets messed again. how can fix this? i think need convert raw data lastusagetime string date/time value (as excel coercion copy/paste). perhaps: =datevalue(e2)+timevalue(e2)

Git Error. When I run my code I get errors that shouldn't be there -

spontaneously when started working on project earlier today function working fine earlier failed. curious because last time working on it, working fine. all left revert earlier stage of project in know fact function working. i reverted several previous stages , function still not functioning. other people when cloned work found functioning fine. when try access it doesn't work. the lead have git not functioning earlier. think file corrupted , fixed resetting working repository , copying on work. everything seemed fine after fix.my function working when pushed github. other people when cloned work found functioning fine the first workaround check clone repo in new location, , see if corruption persists there.

javascript - Android webview wont consistently open to last-scroll location -

i have android app uses kitkat-level webview display documents (primarily e-reader consumes html files). when user opens document within app (and webview newly instantiated document) want scroll last known cursor location within document, user can pick reading left off. retain , persist cursor location indepedently of webview allow such scrolling when first open document. problem: when document first opens, can see initial highlighting of last known location (cursor) in javascript document, in perhaps 50% of cases i've seen document somehow scrolls top , cursor location no longer shown. how , why scrolls top in these cases mystery me (i dont believe programatically make scroll top in way). notes: achieve scrolling within webview i'm using javascript function invoked webview fragment (via webview.loadurl) once webview has signalled has loaded , ready use. callback document view fragment webview: @targetapi(build.version_codes.kitkat) @suppresslint("clickablev...