Posts

Showing posts from March, 2015

jscrollpane - Scroll Pane is visible but doesn't work when dynamically updating rows in java table -

i have java table update rows dynamically. here example created. mimics actual program line line creating table , adding scrollpane. actual program huge , sorry can't share it. import java.awt.*; import java.awt.event.*; import java.util.concurrent.executors; import java.util.concurrent.scheduledexecutorservice; import java.util.concurrent.timeunit; import javax.swing.*; import javax.swing.table.defaulttablemodel; class simpletableexample extends jframe { private jpanel toppanel; private jtable table; private jscrollpane scrollpane; private defaulttablemodel model = null; private jpanel pmainmenu = null; public simpletableexample() { pmainmenu = new jpanel(); borderlayout thislayout = new borderlayout(); pmainmenu.setlayout(thislayout); { jpanel pbuttons = new jpanel(); pmainmenu.add(pbuttons, borderlayout.north); gridbaglayout pbuttonslayout = new gridbaglayout(); pbuttonslayout.columnwidths = new int[]{7, 7, 7};

python - ImportError: cannot import name get_sorted_tuples -

there 2 files in same directory. the first file parser.py : from collections import ordereddict import csv import json import requests import time collections import defaultdict def load_matrices(): # code... def get_sorted_tuples(matrix, country, code_to_name, size=20): # code... the second b.py : from collections import ordereddict import json geojsontosvg import lolatoxy parser import get_sorted_tuples, load_matrices import math when run b.py , error: from parser import get_sorted_tuples, load_matrices importerror: cannot import name get_sorted_tuples what's wrong code? the problem here python has module named parser in standard library, , that's you're trying import from. have 2 options: rename parser.py else. if both files inside package, relative import in b.py : from .parser import get_sorted_tuples, load_matrices

java - New view doesn't load in Spring MVC after request from jQuery -

i have little confuse problem spring mvc. view doesn't load after request jquery. controller called, view on web browser doesn't change. explain step step do: click button jquery script: $(function() { $('.btn-danger').click(function() { $.ajax({ url: '/admin/delete', type: 'get', }); //location.href = '/admin/delete/'; }); }); my controller activated (i see log:'admin delete get'): @requestmapping(value = "/admin/delete/**", method = requestmethod.get) public string deleteget(model model) { log.debug("admin delete get"); return "home"; } view "home" doesn't load :( why? if remove lines in jquery script ajax , remain location.href, view "home" loaded. $(function() { $('.btn-danger').click(function() { location.href = '/admin/delete/'; }); }); view: boostrap spring boot :

ios - How to animate views according to tableview scrolling directions without content scrolling -

i'm trying implement specific tableview behaviour (like on facebook app). i want have dynamic header magnified every time user scrolls , shrieked when user scroll down. in addition want tableview cause effect of pushing header , scrolling tableview cells. i used method: - (void)scrollviewdidscroll:(uiscrollview *)ascrollview in method calculated offset , direction , called method shrink or magnify header accordingly so far good. the thing animation being performed tableview scrolling. to avoid it, created custom scrollview on of top of tableview, taged 2 scrollviews differently. in scrollview created weak reference of tableview , boolean value indicated if scrollview should return tableview touch. when shrinking\magnifying animation finished changed boolean value signal custom scrollview return tableview in hittest methods implemented inside scrollview. but hittest not called when user keep scrolling (without leafing finger), in additions buttons inside t

c++ - How to open browser from headless app in blackberry -

i'm trying use notification, when user click ok should open browser. code i'm using: bb::system::invokerequest request; request.settarget("sys.browser"); request.setaction("bb.action.open"); request.seturl(qurl("http://www.blackberry.com")); notificationdialog* notification = new notificationdialog(); notification->settitle(" notification"); notification->setbody("click open continue ..."); notification->appendbutton(new bb::system::systemuibutton("open"), request); notification->appendbutton(new bb::system::systemuibutton("dismiss")); notification->setparent(this); notification->show(); the code doesn't work, though. doing wrong , how done properly? i found answer. replace line >> request.seturl(qurl(" http://www.blackberry.com ")); line >> request.seturi(" http://www.blackberry.com ")); also don't forget add libs +=

javascript - Function return async response -

this question has answer here: how return response asynchronous call? 21 answers like person asked here (but solutions call nother function) https://stackoverflow.com/a/10796326/315200 ...i know if possible have function doesn't call second function on response of async request, return when async request responses. something maybe: function calltofacebook() { var fbresponse; fb.api('/me', function (response) { fbresponse = response; }); return fbresponse; //will return undefined because calltofacebook async } isn't possible way, without calling function?? what i'm trying achieve have 1 function can call parameters, return response object async webservice, fb. in short, no. cannot have asynchronous function return meaningful value synchronously, because value not exist @ time (as built asynchronously in

java - Trying to deselect a view using getChildAt() -

Image
i'm using gridview inside expandablelistview i have function highlights item when clicked, i'm trying implement button when pressed unselect selected items, unselecting last view clicked public class gridadapter extends baseadapter { private context mcontext; private arraylist<filhos> child; public arraylist<cadastraescolas> escola; private arraylist<arraylist<filhos>> filhos = new arraylist(); public gridadapter(context context, arraylist<cadastraescolas> groups, arraylist<filhos> childvalues, int groupposition) { mcontext = context; child = childvalues; escola = groups; posicaoescola = groupposition; } @override public int getcount() { return child.size(); } @override public object getitem(int position) { return position; } @override public long getitemid(int arg0) { return 0; } @override public vie

events - Why doesnot removeEventListener work?? -

var mouselistener = button2.addeventlistener("mouseover", function (e) { count++; ... if(count > 5) button2.removeeventlistener("mouseover", mouselistener); }); i don't why code doesn't work??? how use removeeventlistener () in javascript? the listener function passing in addeventlistener function. var mouselistener = function (e) { count++; ... if ( count > 5 ) { button2.removeeventlistener("mouseover", mouselistener); } } button2.addeventlistener("mouseover", mouselistener); documentation: https://developer.mozilla.org/en-us/docs/web/api/eventtarget/removeeventlistener

openerp - make a page tab dynamic invisible with domain in inherited view -

i try make page tab in view dynamicly visible based on value of field of model. field availble on screen. i need change inherited view i tried: <xpath expr="//page[@string='functions']" position="attributes"> <attribute name="invisible">[('org_type_id','!=',0)]</attribute> </xpath> but page tab function hidden. org_type_id 0. is not possible use xpath add dynamic invisible attritbute? you totally going on wrong way job. just can the following way job thing this. <xpath expr="//page[@string='functions']" position="attributes"> <attribute name="attrs">{'invisible':[('org_type_id','!=',0)]}</attribute> i hope should helpful :)

hl7 fhir - Representing Encounter-related charges -

where appropriate place in fhir model encounter-related charges (professional or facility)? should these stored: as extension within encounter resource? in claim resource somewhere else altogether? in future release of fhir, we'll introducing "billableitem" or named resource capture details of specific charge or set of charges associated activity. able link encounter, patient and/or account. unfortunately, there's been limit how many new resources financial management work group has been able develop given bandwidth of membership. in interim, you'll need make use of other (dstu1) or basic (dstu2) resource if want stay within schema , technically compliant or create own custom resource (if you're willing non-compliant). we'd invite contribute whatever develop. alternatively, may able in interim extension. can stick extension where-ever wish because should interim solution until appropriate work developed.

c# - How to convert a map point string to double? -

i have string such 45,5235234096284 or 112,013574120648. want convert double. have tried following code got error 'system.globalization.cultureinfo' not contain definition 'getcultureinfo ' because of framework version. i'm not able change framework option.i have looked solution couldn't understand clearly.what best way converting these string double commas. var convertedmappoint = double.parse(mappoint, cultureinfo.getcultureinfo(1053)); first, should split input on spaces, since separator: string input = "45,5235234096284 112,013574120648"; string[] splitted = input.split(' '); then can iterate on result of splitting, , convert each double: list<double> doubles = new list<double>(); foreach (string s in splitted) { doubles.add(double.parse(s, new cultureinfo("fr-fr"))); } i used fr-fr , since has comma decimal separator, can use culture that. if doesn't work you, , 100% sure there no .

php - Performance in LAMP: Filesystem vs. Database -

i need design website has friendly urls configurable specific users. must in database manage them (which user created it, module , data must load, etc.), , must have permissions system (view, actions, etc.). the question is: have better performance if created php file each path (like /section/subsection/index.php) loaded directly apache, better if check every query in database, or depends of kind of page? there 3 kind of pages: - static (once created won't need connect database) - periodically updated (i can delete pages when not updated) - dynamic (like load user events, require perform database queries) is there existing brenchmark this? without more substantial description of setup, number of entries in each section/subsection, kind of load, etc., noone can answer question you. and really, except pathological use cases, noone should. should answer question benchmark data implementation. the clear drawback can see in solution describe php files code duplica

R data.table column names not working within a function -

i trying use data.table within function, , trying understand why code failing. have data.table follows: dt <- data.table(my_name=c("a","b","c","d","e","f"),my_id=c(2,2,3,3,4,4)) > dt my_name my_id 1: 2 2: b 2 3: c 3 4: d 3 5: e 4 6: f 4 i trying create pairs of "my_name" different values of "my_id", dt be: var1 var2 c d e f b c b d b e b f c e c f d e d f i have function return pairs of "my_name" given pair of values of "my_id" works expected. get_pairs <- function(id1,id2,tdt) { return(expand.grid(tdt[my_id==id1,my_name],tdt[my_id==id2,my_name])) } > get_pairs(2,3,dt) var1 var2 1 c 2 b c 3 d 4 b d now, want execute function pairs of ids, try finding pairs of ids , using mapply get_pairs function. > combn(unique(dt$my_id),2)

Xcode 7.0 beta / IOS9 / WatchOS 2 - no symbols for paired Apple Watch? -

Image
i got message within xcode, idea how fix it? from https://forums.developer.apple.com/thread/3380 : xcode failed download symbol files http://adcdownload.apple.com/developer_tools/watchos_13s5255d/watch1_1_13s5255d.dmg . successful launch watchos app following steps. download symbol file installer 13s5255c http://adcdownload.apple.com/developer_tools/watchos_13s5255c/watch1_1_13s5255c.dmg . create directory "~/library/developer/xcode/watchos devicesupport/2.0 (13s5255d)/symbols" mount dmg , open watch1,1.pkg. change destination directory above directory. (do not install default location! os x destroyed!) install symbol files. open project on xcode 7 beta. disconnect , connect iphone.

javascript - Two dates combination showing as shortdate in textbox in mvc -

i have partial view has value of startdate -enddate. i have startdate , enddate properties in model datetime. when data coming webapi binding time. need 01/01/2015 - 30/12/2015. displaying 01/01/2015 12:00:00 30/12/2015 12:00:00 am. can me try: @item.date.tostring("dd mmm yyyy") or use [displayformat] attribute on view model: [displayformat(dataformatstring = "{0:dd mmm yyyy}")] public datetime date { get; set } and in view: @html.displayfor(x => x.date)

java - transmissing image via android to php -

hi have code putting image json request: jsonarray jarray=new jsonarray(); for(bitmap image:images) { bytearrayoutputstream baos = new bytearrayoutputstream(); image.compress(bitmap.compressformat.jpeg, 90, baos); byte[] b=baos.tobytearray(); jarray.add(base64.encodetostring(b, base64.default)); } and code putting file: $json=json_decode(stripslashes($_post["query"]),true); ... ... ... mkdir("upload/ogloszenie/".$id); $ctr=1; foreach ($json["art"]["images"] $img){ file_put_contents("upload/ogloszenie/".$id."/".md5($ctr), base64_decode($img)); $ctr++; } files put right catalogue there srsly corrupted. idea why happening?

javascript - Event binding on dynamically created elements? -

i have bit of code looping through select boxes on page , binding .hover event them bit of twiddling width on mouse on/off . this happens on page ready , works fine. the problem have select boxes add via ajax or dom after initial loop won't have event bound. i have found plugin ( jquery live query plugin ), before add 5k pages plugin, want see if knows way this, either jquery directly or option. as of jquery 1.7 should use jquery.fn.on : $(staticancestors).on(eventname, dynamicchild, function() {}); prior this , recommended approach use live() : $(selector).live( eventname, function(){} ); however, live() deprecated in 1.7 in favour of on() , , removed in 1.9. live() signature: $(selector).live( eventname, function(){} ); ... can replaced following on() signature: $(document).on( eventname, selector, function(){} ); for example, if page dynamically creating elements class name dosomething bind event parent exists, document . $(document

ios - Why can't I set a Swift dictionary item exposed to JavaScriptCore? -

i have swift object i'm exposing javascriptcore this: @objc(myobjectexport) protocol myobjectexport:jsexport { var name:string {get set} var dict:[string:string] {get set} } class myobject:nsobject,myobjectexport { var name:string="name" var dict:[string:string]=["test":"test"] } in javascript context can happily , set 'name' property of myobject instance, can get, not set, 'dict' dictionary items. what missing, or bug? ecmascript 5 doesn't support custom scripting. exposing dictionary javascriptcore, able in javascriptcore myobjectexport['key'] = value; but won't work in javascriptcore @ stage.

gridfs - How to Store Images into Specified Collections in MongoDB -

i know possible save binary files using mongodb using "mongofiles" utility... is there way store images specified collection, not in db.fs.files?? i want create users collection using store user details along thier profile pic this, { "_id" : "usr_1", "username" : "willsmith123", "firstname" : "will", "lastname" : "smith", "status" : "active", "image" : { "_id" : objectid("558be8062f194d2587000001") "chunksize" : 261120, "uploaddate" : isodate("2015-06-25t10:20:47.105z"), "length" : 25038, "md5" : "b1d38a0b2ccde6da71fd6ae8fe2f637f", "filename" : "mylogo.png" } } how can have collection this, maintain relation

encoding - Is there a standard on how to sign primitive types? -

i designing protocol exchange ious (digital promissory notes). these should digitally signed, signature should independent data representation (whether xml, json, binary, little or big endian numbers). is there standard on how sign list of strings , primitive types (like integers, floating points, booleans)? the better question best format verifying digitally signed data primitives. the answer xml formatted , signed according xades standard. xades harmonized related standards , many implementations participate in interoperability tests hosted etsi. unless easy verify digitally signed format, signature has limited value. you can sign bit stream , store/maintain signature detached signature. , relying parties (the recipients) need deal 2 files. 1 data , 1 signature. the advantage of xml xades format enables signed xml file include digital signature. you can create equivalent of xades data format such json. new format has limited use unless becomes popular

javascript - Why does my Preview Window doesn't show FormElement Content -

i trying add sap.ui.layout.form.form formcontainer , formelements preview dialog . however, form , elements doesn't rendered. click here : { "type": "sap.ui.core.mvc.jsonview", "content": [ { "type": "sap.m.button", "id": "testitemid0", "text": "mytestbutton", "press": "asdf" }, { "type": "sap.ui.layout.form.form", "id": "testitemid1", "formcontainers": [ { "type": "sap.ui.layout.form.formcontainer", "id": "testitemid2", "formelements": [ { "type": "sap.ui.layout.form.formelement", "id": "testitemid3", "label": { "type": "sap.m.label"

hibernate - Grails 2.5.0 Second level Abstract domain class creates it's own table even though it shouldn't -

if create abstract domain class such this: abstract class domainbase { localdatetime created = localdatetime.now() localdatetime updated static constraints = { created nullable: false updated nullable: true } static mapping = { tableperconcreteclass true created column: 'created' updated column: 'updated' } def beforeupdate() { this.updated = localdatetime.now() } } then can extend other domain classes , inherit (the properties, constraints, mappings , interceptors), , generated database contains no concrete domain_base table. works expected. however, if create abstract class extends domainbase, example: abstract class entitybase extends domainbase { user createdby boolean active = true static constraints = { createdby nullable: false active nullable: true } static mapping = { tableperconcreteclass true createdby column:

c# - Make object ID functionality missing in VIsual studio 2013 -

i remember functionality make object id previous versions of visual studio. accessible when program execution paused context menu on object. looks in visual studio functionality not supported. true? on internet found several tips, c# code, not vb code. using c# , don't have there.

angularjs - Jasmine - unit testing a directive: Getting 'undefined' is not an object -

i taking baby steps in jasmine, please bear me blatant mistakes..i writing test cases check if controller method - transformdata gets called, details below my directive angular.module('mymodule') .directive('mydirective', [ function () { 'use strict'; return { restrict: 'e', templateurl: '/static/quality/scripts/directives/hh-star-rating.html', scope: { vara:'@', }, controller: [ '$scope', '$controller', function ($scope, $controller) { $controller('othercontroller', {$scope: $scope}) .columns( $scope.x, $scope.y, $scope.series ); $scope.transformdata = function(data) { /// something; return data;

python - Scrapy gives URLError: <urlopen error timed out> -

so have scrapy program trying off ground can't code execute comes out error below. i can still visit site using scrapy shell command know url's , stuff work. here code from scrapy.spiders import crawlspider, rule scrapy.linkextractors import linkextractor malscraper.items import malitem class malspider(crawlspider): name = 'mal' allowed_domains = ['www.website.net'] start_urls = ['http://www.website.net/stuff.php?'] rules = [ rule(linkextractor( allow=['//*[@id="content"]/div[2]/div[2]/div/span/a[1]']), callback='parse_item', follow=true) ] def parse_item(self, response): mal_list = response.xpath('//*[@id="content"]/div[2]/table/tr/td[2]/') mal in mal_list: item = malitem() item['name'] = mal.xpath('a[1]/strong/text()').extract_first() item['link'] = mal.xpath('a[1]/@href').extract_first() yie

smtplib - Python script to reset email password -

the email server using forces change password every 3 months. want write script can run cronjob change password every 3 months, because have around 10 mailboxes , changing password manually every 3 months kind of tedious. know if imap/smtp python library allows reset password or if can point me in direction of other library or solution allow me change email password. thanks

How to covert time based java.util.UUID to DateTIme -

i'm using com.datastax.driver.core.utils.uuids generate time based uuid can't convert date time: i tried using org.joda.time other package fine. new org.joda.time.datetime(com.datastax.driver.core.utils.uuids.timebased.timestamp) // 4328915-05-22t15:34:30.000+00:00 new org.joda.time.datetime() //2015-06-25t13:28:07.249+00:00 as can see uuid javadoc , resulting timestamp measured in 100-nanosecond units since midnight, october 15, 1582 utc. org.joda.time.datetime(long instant) expects timestamp in milliseconds since 1970-01-01t00:00:00z, see javadoc .

Cannot get text value from dropdown control jquery -

i have table users can add rows using append. options being updated dynamically.i have dropdown within row cannot find way text. can retrieve value only. i've tried replacing .val() .text() doesnt work. <td>role<br/><select id="ddldepartment" class="ddldepartment" name="d1"><option value=""> select role</option></select></td> <!-- language : lang-js --> $("table.tbl_id_1").on("change", 'input[name^="txt"]', function (event) { calculaterow($(this).closest("tr")); }); function calculaterow(row) { var price = +row.find('input[name="txtvision"]').val(); price += +row.find('input[name="txtinitiate"]').val(); var txtddl = +row.find('select.ddldepartment').val(); } i hope trying text of selected value select element. try var txtddl = +row.find(&

javascript - How to obtain x objects with highest timestamp value? -

i'm new web app development , couldn't find solution following problem. i'm trying sorted array of newest objects indexeddb database. each object contains timestamp value. i'v created index on timestamp , i'm able object highest value. function getmails (numberofmessages, _function) { /* function uses asynchronous methods, hence have pass key , function receive messageitem parametr */ if (typeof optionalarg === 'undefined') { optionalarg = 10; } function _getmails (db) { var transaction = db.transaction(["messageitem"], "readonly"); var store = transaction.objectstore("messageitem"); var index = store.index("timestamp"); var cursor = index.opencursor(null, 'prev'); var maxtimestampobject = null; cursor.onsuccess = function(e) { if (e.target.result) { maxtimestampobject = e.target.result.value;

imageview - How to protect the png from stretching in Android Studio 1.2? -

as shown in figure,the png 256*328 pixel,but in preview of android studio,it big png saw in windows 7 picture viewer. mean should looked more smaller was.so how can makes big 256*328 pixel in real phone? thanks! http://i4.tietuku.com/a03d2f14cc11fcd0.png first you're showing in picture not size of png. it's size of imageview. second it's not pixels(px), it's dp. third if want picture have 256*328 pixel change xml , replace dp px

ruby - AWS authentication V4 signature failure; where am I going wrong in generating the signature? -

i generating form using ruby code below (passing csv file credentials downloads aws console argument). if submit file using form, the request signature calculated not match signature provided. check key , signing method. . have copied signing code http://docs.aws.amazon.com/general/latest/gr/signature-v4-examples.html#signature-v4-examples-ruby . i've looked @ amazon mws - request signature calculated not match signature provided , s3 "signature doesn't match" client side post jquery-file-upload , these don't seem apply in case. going wrong? #!/usr/bin/env ruby require 'nokogiri' require 'csv' require 'ostruct' require 'base64' require 'json' require 'openssl' header = nil data = nil csv.foreach(argv[0]) |row| if header.nil? header = row.collect{|c| c.strip.gsub(/\s/, '') } else data = row end end creds = openstruct.new(hash[*(header.zip(data).flatten)]) bucket = 'zotplus' regi

ansi colors - Logback: use colored output only when logging to a real terminal -

in logback configuration have following lines: <appender name="console" class="ch.qos.logback.core.consoleappender"> <encoder> <pattern>%highlight(...) %msg%n</pattern> </encoder> <filter class="ch.qos.logback.classic.filter.thresholdfilter"> <level>warn</level> </filter> </appender> this makes warnings , errors show in terminal, colored, while main log file can contain more information, e.g. info , debug levels. generally, works fine. but, when run emacs or other "not terminal" program, coloring commands show out ascii escape sequences, e.g. ^[[31m warning highlighting. somehow possible make logback use ansi coloring when connected real terminal? you have 2 problems here: how detect if should use colors or not this not trivial. this answer suggests use jni call isatty detect if you're connected terminal, it's lot of work low-priority fea

sharepoint - Document library field wont update field value -

on itemadded on field, public override void itemadded(spitemeventproperties properties) { this.eventfiringenabled = false; using (spweb web = new spsite(properties.weburl).openweb()) { splist list = web.lists[properties.listid]; splistitem item = list.getitembyid(properties.listitemid); var test = item["myfield"] = ""; item.systemupdate(false); } this.eventfiringenabled = true; } } } when adding dokument directly library clear field, men when publish document , try unpublish , select remove document create draft of document, on event wont clear field, value , in en still has old value? i've not checked sure think remember when dealing event receivers in document libraries it's little funny. believe itemadded event fires when upload document, continue fill out metadata document , when

ios - specifying scene's background color in SceneKit -

i'm trying specify background color (which black) of screen before scene appears. searched documentation , found: var background: scnmaterialproperty { } a background rendered before rest of scene. (read-only) if material property’s contents object nil, scenekit not draw background before drawing rest of scene. (if scene presented in scnview instance, view’s background color visible behind contents of scene.) so went , sent contents color. scene.background.contents = uicolor.redcolor() however, moment before scene renders, screen(scnview portion of it) still black. doing wrong? perhaps background property not need? i'm not quite sure if can drill further down property get(bacground getter), , set stuff did in code example. answering try setting backgroundcolor property of scnview instance. in code, have following: (some of code may not apply situation, should give general idea.) if let scene = scnscene(named: "myscene.scn") {

momentjs - How to convert Thai date format to English using javascript? -

i'm using bootstrap-datetimepicker , moment.js manipulate date , generate report. application capable of changing english thai language. questions how convert sample string "24-มิ.ย.-2015 00:00:00" "24-june-2015 00:00:00" pls. how in javascript? var monthnamesthai = ["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน", "กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤษจิกายน","ธันวาคม"]; var daynames = ["วันอาทิตย์ที่","วันจันทร์ที่","วันอังคารที่","วันพุทธที่","วันพฤหัสบดีที่","วันศุกร์ที่","วันเสาร์ที่"]; var monthnameseng = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", &q

c# - Windows 10: differentiate between preinstalled app and downloaded app -

one of clients has deal oem. app x preinstalled on number of laptops. app receive updates windows 10 store. app x available download in windows 10 store other users. users using preinstalled version should receive free 3-month trial. unfortunately, oem not providing device ids, , users not getting unlock codes trial. came following initial "solution": use version 1.0.1.0 preinstalled app. upload 1.0.0.0 store. when app starts , version 1.0.1.0, identified preinstalled version, @ point can make server call send device id client's server recognize device after app deletions. i can update store app without losing knowledge of preinstalled apps since can update version below 1.0.1.0. means preinstalled version not overwritten auto update store version (since installed version number greater store version). however, if serious bug detected in preinstalled version, cannot update app or class of users not receive free trial. namely, users have not started app on d

xamarin - Custom cell is not updating viewmodel when user enters input into cell -

i new mvvmcross(xamarin.ios). so, in wrong direction. if can point me in right direction or point out doing wrong. i have taken on "customermanagement" , "collection" sample of mvvmcross. basically trying create settings screen. i have 1 custom uitableviewcell 1 text field. see code below. "entrytf" iboutleted. "entrytf" binded "firstname" property of model. setting value "firstname" reflecting on ui. if user enter textfield doesn't save model. in short cell not updating viewmodel/model. please note want keep binding out of cell class. so, can reuse cell other models or fields. public partial class plainentrycell : uitableviewcell { public static readonly uinib nib = uinib.fromname ("plainentrycell", nsbundle.mainbundle); public static readonly nsstring key = new nsstring ("plainentrycell"); public plainentrycell (intptr handle) : base (handle) { // this.dela

ToolBar color not changing in android -

Image
i added standalone toolbar in activity, showing not showing color defined it. wrong code using? below code using. activity_categories.xml <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" android:weightsum="10" android:background="#d32f2f" tools:context="com.example.knowledgeup.loginactivity" > <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_height="0dp" android:layout_width="match_parent" android:layout_weight="1" android:elevation="4dp" style="@style/