Posts

Showing posts from February, 2012

objective c - NSDate date method returns wrong result -

i know there lot of questions of type, did't find solution case; need current , correct nsdate object, not nsstring ! code returns wrong time (+3 hours), because i'm ukraine. nsdate *currentdate = [nsdate date]; how current nsdate object nsdateformatter ? know how nsstring , don't need it. edit: i'm using code compare 2 nsdates using nscalendar object, here code: nscalendar *calendar = [nscalendar currentcalendar]; nsuinteger unitflags = nsdaycalendarunit | nshourcalendarunit | nsminutecalendarunit | nssecondcalendarunit; nsdatecomponents *components = [calendar components:unitflags fromdate:nowdate todate:enddate options:0]; and components.hour shows me +3 hours difference nsdates stored in utc, dates itselfs dont know timezones or weeks, month, years. point in time. to see correct time position on earth surface, need take nscalendar, represents time model in account. use directly , mess around dates, or create nsdateformatter leave date

c# - Active Directory Get List of Users using PrincipalSearcher throws error -

i have 2 functionality need achieve in asp.net web application. authenticate using active directory get list of active directory users. both above work fine on client environment when set iis application pool network service. when change iis user authentication works list of users stops working. not sure why happening. here code: authentication: public bool authenticateaduser(string domain, string password, string username) { bool isvalid = false; using (principalcontext pc = new principalcontext(contexttype.domain, domain)) { isvalid = pc.validatecredentials(username, password); } return isvalid; } get list of active directory users: using (var context = new principalcontext(contexttype.domain, domain)) { if (groupname != string.empty) { // list of users group groupprincipal group = groupprincipal.findbyidentity(context, groupname); foreach (principal principal in group.members) {

javascript - Adding data to a Vue.js Component -

hello i'm getting handle on vue.js , i've created component table (called setuptable). want able dynamically add data this. know vue.js listens push on data elements can't seem access data element of component through setuptablecomponent.data . how access , append data component? var setuptablecomponent = vue.extend({ template: '<table id="data-table">'+ '<tr v-for="item in items">'+ '<td>{{item.b}}</td>' + '<td>{{item.d}}</td>' + '<td>{{item.t}}</td>' + '</tr>' + '</table>', data: function(){ return { items: [ { t: "tester", b: "buster", d: "duster"}, { t: "not tester", b: "not buster", d: "not duster"} ]}; } }); vue.component('setup-table-component', se

node.js - Mongoskin MongoClient.connect sync -

in module mongoskin when getting database object mongoskin in sync fashion, hence code: var db = mongoskin.db(url, { native_parser: true }); var mycollection = db.collection('mycollection'); i curious, how achieve this? i've been looking @ mongoskin code not understand it. and here, can see mongoskin simplifys : https://github.com/kissjs/node-mongoskin#dbcollection-callback origin vs. mongoskin anyone know how mongoskin turned async code sync fashion? they in beginning of readme : we make common use functions in promise mode, call skinclass of normal class. , api same official api. db.collection('mycollection'); returns skincollection - wrapper native collection , use collection when available. the magic lives here: https://github.com/kissjs/node-mongoskin/blob/master/lib/utils.js

Unobtrusive middle-ware for Expres.js to inspect request body -

does there exist thirdparty middleware or way create such middleware express.js allows intercepting requests , inspecting request's body content without affecting subsequent middleware such bodyparser or route endpoints may rely on raw body such express-http-proxy ? from can tell bodyparser seems work in obtrusive way not allow route override default parsing behavior. express documentation describes how request.body filled in middleware such bodyparser. behavior of bodyparser makes sense simplicity , performance perspective doesn't make great candidate creating middleware needs inspect contents of request , let remaining portion of app working without modification. true seeing depending on parsing middleware results may in entirely different formats. after digging i'm left wondering if it's possible pull off express or perhaps once read request body eliminate ability make use of further middleware such bodyparser or express-http-proxy expect access body directly

javascript - JQuery .ajax 304 Not Modified parseerror -

Image
i have single page javascript webapp rolled scratch (i know know) we have central set of ajax defaults work follows: model.defaultsloader = function(message, config, callback, async, delay){ if(typeof delay === "undefined"){ delay = 3000; } var loader = new loader(delay, message); defaults = { type: 'get', beforesend: function(jqxhr){ var token = $("meta[name='csrf-token']").attr("content"); jqxhr.setrequestheader("x-csrf-token", token); }, success: function(response){ loader.stop(); if(callback){ callback(response); } }, error: function(jqxhr, textstatus, errorthrown ){ if (jqxhr.status === 401) { document.location = "/"; } else if(!death && jqxhr.status !== 200) { loader.showerror(textstatus

android - runOnUiThread in Presentation class -

how can update textview in presentation class if runonuithread not available in class. here example private final class demopresentation extends presentation { public demopresentation(context context, display display) { super(context, display); } @override protected void oncreate(bundle savedinstancestate) { // sure call super class. super.oncreate(savedinstancestate); // inflate layout. setcontentview(r.layout.presentation_activity); } private void timermethod() { getac.runonuithread(timer_tick); } call post() on textview , passing in same runnable runonuithread() .

modulus operation gives negative value in php -

i expects 768 following statement. echos -360 . why? echo 1364808202768%1000; update: #: php -v php 5.3.2-1ubuntu4.17 suhosin-patch (cli) (built: jun 19 2012 01:35:33) copyright (c) 1997-2009 php group zend engine v2.3.0, copyright (c) 1998-2010 zend technologies xdebug v2.0.5, copyright (c) 2002-2008, derick rethans #: php -r 'echo 1364808202768%1000;' -360 #: uname -a linux tripura 2.6.32-37-generic #81-ubuntu smp fri dec 2 20:35:14 utc 2011 i686 gnu/linux it because number exceeds maximum integer type can hold. can check if integer big this: var_dump('1364808202768' > php_int_max); the built-in function fmod easy use, , should able handle big numbers: echo fmod('1364808202768', 1000); you can use 1 of 2 common extensions ( gmp , bc ) if, whatever reason, fmod not available, or if work large numbers: // using gmp extension $big = gmp_init('1364808202768', 10); $val = gmp_strval(gmp_mod($big, 1000)); echo $val;

nginx - Exclude specific files in a "location" rule -

i "secured" wordpress installation making .php-files in /wp-content/ "not found" location ~ ^/wp-content/.+\.php$ { return 404; } how can exclude specific files/directories in rule , make them executable again?

How to submit a SmartClient DynamicForm programmatically? -

i trying create hidden form data, needs submitted jsp page (which gets open in new window), happen programatically, without user pressing submit button. my sample code var fsquery = "abcd"; var emailid = "as@gmail.com"; var portalpsswd = "password"; var projectid = "123"; var kburl = "some url consume form post parameters"; var pv="1.2",pn="ada"; this.kbform=isc.dynamicform.create({ width: 300, fields: [ {type: "hiddenitem", name: "email_id", defaultvalue:emailid }, {type: "hiddenitem", name: "portal_password", defaultvalue:portalpsswd}, {type: "hiddenitem", name: "project_id", defaultvalue:projectid}, {type: "hiddenitem", name: "fsquery", defaultvalue:fsquery}, {type: "hiddenitem", name: "product_version", defaultvalue:pv}, {type: "hiddenitem", name: "product_name", defaultvalue:pn}, {type

c# - Override property or calculate property in constructor -

for example have base class , need property calculated in derived classes.i have 2 variant ( someproperty1 , someproperty2 ): public class baseclass { public int someproperty1{get;set;} public override int someproperty2{get;set;} } public class derivedclass : baseclass { public derivedclass() { someproperty1 = 100; } public override int someproperty2 { { return 100; } } } the questions best way, someproperty1 or someproperty2 ? add base class protected abstract method called calcsomeproperty() . then implement property in terms of calcsomeproperty() . force derived classes implement it. for example: public abstract class baseclass { public int someproperty { { return calcsomeproperty(); } } protected abstract int calcsomeproperty(); } alternatively, can make property abstract: public abstract class baseclass { public abstract

python - Amazon SQS duplicated messages in queue -

this question has answer here: sqs duplicate messages handeling 1 answer i not experienced used in amazon sqs service. have read messages queue not own , process them making small database of information. up until had code read messages in queue , process them. script running periodically. however, observed amount of messages in queue has become large. when took 10000 sample messages observed around 6000 duplicates. i puzzled sudden change in behavior (up until did not observe duplicate messages). queue never seems run out. this code use read messages queue. conn = boto.sqs.connect_to_region( 'myregions', aws_access_key_id='myacceskey', aws_secret_access_key='secretacceskey') q = boto.sqs.queue.queue(connection=conn, url='outputqueue') rs = q.get_messages(10) all_messages = [] while len(rs) > 0: all_messag

assembly - Modified 6502 Interrupt Returns -

Image
i trying switch normal program flow while interrupt returns: start sei ldx #<irq ldy #>irq stx $fffe sty $ffff cli loop1 inc $d020 jmp loop1 loop2 inc $d021 jmp loop2 irq sta savea+1 stx savex+1 sty savey+1 // routines lda #$00 pha lda #<loop2 pha lda #>loop2 pha savea lda #$00 savex ldx #$00 savey ldy #$00 rti i wrote code accourding source: http://6502.org/tutorials/interrupts.html#1.3 but pha's cause crash, how switch normal flow loop1 loop2 in interrupt? the simplest thing have 2 stack areas -- 1 every task. $100-$17f , $180-$1ff, example. then, have interrupt task switching code this: pha txa pha tya pha ;saving task's registers on stack, ;where flags , pc saved ;by entering interrupt tsx stx ... ;save task's stack position ... ;select new task run/etc. ldx ... txs ;load other task's sta

objective c - Calculate time taken to load a window once all async service call is done -

how calculate time taken load view/window? can done this: nsdate *starttime=[nsdate date]; //some code load window wincontroller nsdate *endtime=[nsdate date]; nstimeinterval diff = [endtime timeintervalsincedate:starttime]; nslog(@"time load %f seconds.\n\n\n",diff); but not calculate total , exact time taken. load window, , in init , awakefromnib asynchronously calls services, loads custom views, populates tableviews etc, , spread on dozens of classes/controllers , scores of methods. if use above(program shown), endtime reached while spinner continues spin , service calls in progress. i can check watching clock takes more minute load window, , ready perform action on it, diff calculates 0.5 seconds something. now problem can not change whole code of project, can insert few things in between. how this, suggestions appreciated. i know late , not sure if still searching answer or no(but might other people searching solution similar problems).but

java - Walking through DOM with jdom/dom4j without knowing too much about namespaces -

i got xmp xml jpeg image , want read , update metadata in it. i've written pretty sax parser can read data, realized can't update data it. so went dom4j. when tried parse xml it, throwed exception unknown namespaces. "direct developer" said need add namespaces manually, if meet image different namespace's url? wouldn't able deal it? then tried jdom. created document successfully, again, need know namespace url in order child tag it. here quick example of talking about: document.getrootelement().getchild("rdf", namespace.getnamespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")) so, should in order solve problem? pray url's allways same? manually update only sax ? find library don't cares namespaces? here xmp xml example: <?xpacket begin="" id="w5m0mpcehihzreszntczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="adobe xmp core 5.6-c011 79.156380, 2014/05/21-23:

php - POST request method via a call to GET, SlimPHP, RedBeanPHP -

tools i'm using: slim framework & redbeanphp i'm studying article: http://www.ibm.com/developerworks/library/x-slim-rest/ , method: // handle post requests /articles $app->post('/articles', function () use ($app) { try { // , decode json request body $request = $app->request(); $body = $request->getbody(); $input = json_decode($body); // store article record $article = r::dispense('articles'); $article->title = (string)$input->title; $article->url = (string)$input->url; $article->date = (string)$input->date; $id = r::store($article); // return json-encoded response body $app->response()->header('content-type', 'application/json'); echo json_encode(r::exportall($article)); } catch (exception $e) { $app->response()->status(400); $app->response()->header('x-statu

cloudfoundry - cloud foundry timeout when installing vmc -

i wanted try cloud foundry. installation process failed @ installing vmc because : root $ gem install vmc vmc target error: while executing gem ... (gem::remotefetcher::fetcherror) errno::etimedout: connection timed out - connect(2) (http://rubygems.org/gems/addressable-2.3.3.gem) any clues ? finally works after waiting few (but mongodb desactivated ...).

c++ - Trying to sync audio/visual using FFMpeg and openAL -

hi have been studying dranger ffmpeg tutorial explains how sync audio , visual once have frames displayed , audio playing im at. unfortunately, tutorial out of date (stephen dranger explaained himself me) , uses sdl im not doing - blackberry 10 application. i cannot make video frames display @ correct speed (they playing fast) , have been trying on week - seriously! i have 3 threads happening - 1 read stream audio , video queues , 2 threads audio , video. if explain whats happening after scanning relevent code lifesaver. the delay (what pass usleep(testdelay) seems going (incrementing) doesn't seem right me. count = 1; myapp* inst = worker->app;//(videouploadfacebook*)arg; qdebug() << "\n start loadstream"; w = new qwaitcondition(); w2 = new qwaitcondition(); context = avformat_alloc_context(); inst->threadstarted = true; cout << "start of decoding thread"; cout.flush(); av_register_all();

Get Windows Phone 8 to use the network connected interface -

i'm writing test app windows phone 8 , testing in emulator. want create udp socket , determine local socket end point used. issue i've got emulator has 2 network interfaces 1 of has external network connectivity. default non-connected interface gets used. how can ensure correct adapter used when create socket? socket m_socket = new socket(addressfamily.internetwork, sockettype.dgram, protocoltype.udp); m_socket.setnetworkpreference(networkselectioncharacteristics.noncellular); socketasynceventargs receiveargs = new socketasynceventargs(); receiveargs.remoteendpoint = new ipendpoint(ipaddress.any, 0); receiveargs.setbuffer(new byte[2048], 0, 2048); receiveargs.completed += socketread_completed; // if bind specific ip address of connected adapter work. //m_socket.bind(new ipendpoint(ipaddress.parse("10.1.1.7"), 0)); // if leave wp8 wrong adapter gets used. m_socket.bind(new ipendpoint(ipaddress.any, 0)); m_socket.receiveasync(receiveargs);

javascript - Having an issue with AJAX call on Paste event jQuery -

i trying pasted contents of form text field trigger ajax action connects php script deal data , sends relevant response. the php script working know problem isn't there. the jquery function works perfectly, alerting whatever pasted text field if this $(document).ready(function(){ $('input').on('paste', function () { var capture = this; settimeout(function () { var url = $(capture).val(); alert (url); }, 100); }); }); but when try add ajax business fails. i'm doing wrong don't know correct way it. way i'm calling ajax same method use in whole bunch of other scripts , works fine in must it's being called. i've tried (left off doc ready save clutter) : $('input').on('paste', function () { var capture = this; settimeout(function () { var url = $(capture).val(); }, 100); var data = { 'action': 'myaction&#

jquery - AutoComplete TextBoxList value is submitted as fetched from json -

i'm using autocomplete textboxlist prototype , having couple of questions on this. i'm fetching values demodata.js file as [{ "caption": "name1", "value": "name1" }, { "caption": "name2", "value": "name2" }] now when i'm submitting value, data received @ servlet [{"caption": "name1", "value": "name1"}] q1. need it's value name1 not whole thing, how can achieve it's value. q2. want change delimiter selecting values. right after typing value if space given value selected in textbox, want change , . when press , after value should selected in texbox. // array var myarray = [{ "caption": "name 1", "value": "name 1" }, { "caption": "name 2", "value": "name 2" }]; // read each index/object in array $.each(myarray, function (inde

node.js - MongoError: Can't canonicalize query: BadValue -

https://mongodb.github.io/node-mongodb-native/2.1/api/collection.html#findone states max option used number. var result = yield mycol.findone({ lol: lol }, { max: 1 }); i error though: mongoerror: can't canonicalize query: badvalue $max must bsonobj @ function.mongoerror.create (/home/karl/www/instantynode/src/node_modules/mongodb-core/lib/error.js:31:11) @ querycallback (/home/karl/www/instantynode/src/node_modules/mongodb-core/lib/cursor.js:266:34) @ callbacks.emit (/home/karl/www/instantynode/src/node_modules/mongodb-core/lib/topologies/server.js:95:3) @ null.messagehandler (/home/karl/www/instantynode/src/node_modules/mongodb-core/lib/topologies/server.js:249:23) @ socket.<anonymous> (/home/karl/www/instantynode/src/node_modules/mongodb-core/lib/connection/connection.js:265:22) @ emitone (events.js:77:13) @ socket.emit (events.js:169:7) @ readableaddchunk (_stream_readable.js:146:16)

python - QMainWindow.close doesn't close the window despite event.accept on closeEvent -

i'm trying write application utilizes qmainwindow , has qmenubar there file->exit functionality, uses uic files. i've stripped project down part doesn't work despite efforts - closeevent called, gets accepted, window doesn't close. here's test.py: #! /usr/bin/env python # -*- coding: utf-8 -*- __future__ import print_function import sys pyqt4 import qtcore, qtgui, uic class truedit(qtgui.qmainwindow): def __init__(self): qtgui.qdialog.__init__(self) self.ui = uic.loadui("test.ui") self.ui.show() self.ui.actionwyj_cie.triggered.connect(self.wyjscie) def wyjscie(self): self.close() def closeevent(self, event): event.accept() print("wtf, still alive") @qtcore.pyqtslot() def reject(self): print("never entered this") return none if __name__=="__main__": app = qtgui.qapplication(sys.argv) app.setquitonlastwindowclos

python - Getting Time Zone from Lat Long Coordinates? -

i trying time zones latitude , longitude coordinates having few problems mistakes basic i have table in database around 600 rows. each row contains lat long coordinate somewhere in world want feed these co-ordinates function , retrieve time zone. aim being convert events have local time stamp within each of these 600 places utc time i found blog post uses a piece of code derive timezones geographical coordinates. when try run code, error geonames not defined . have applied account geonames. i think have saved function file in wrong directory or simple. can help #------------------------------------------------------------------------------- # converts latitude longitude time zone # ref: https://gist.github.com/pamelafox/2288222 # ref: http://blog.pamelafox.org/2012/04/converting-addresses-to-timezones-in.html #------------------------------------------------------------------------------- geonames_client = geonames.geonamesclient('username_alpha') geonames_resu

java - Calling in Child class to wait for RFID Tag -

so after long period of research, able make rfid scanner work , detect ports of computer. had split code 2 class files because of 2 jar files having different features: one reading id , other reading port. now had them, had call them main gui project. issue facing right child wont wait id scanned , instead give me null value in return. want make work can call child classes main project. here codes: rfid_reader.java import javax.swing.joptionpane; import jssc.serialport; import jssc.serialportevent; import jssc.serialporteventlistener; import jssc.serialportexception; public class rfid_reader { static serialport serialport; static string output; public string finaloutput; //this redundant , willing remove it. public void checkconnection(){ rfid_scan_hw jcom = new rfid_scan_hw(); serialport = new serialport(jcom.collect_ports("")); startreading(); } //configuring serialport public void startreading(){

Android app not recognising volume key presses when showing android.widget.MediaController -

i cannot android app (running on android 6.0) respond volume key presses when android.widget.mediacontroller showing. the media controller shown fragment when button in fragment tapped. the activity has loaded fragment has following code in oncreate: audiomanager audiomanager = (audiomanager) getsystemservice(context.audio_service); this.setvolumecontrolstream(audiomanager.stream_music); when media controller not showing, volume key presses adjust volume , volume adjustment impact on volume sound played media controller. however, when media controller shown visible in app, volume keys ignored. have overridden onkeydown method of activity detect when key presses recognised, , recognised when media controller not visible. @override public boolean onkeydown(int keycode, keyevent event) { switch (keycode) { case keyevent.keycode_volume_up: log.i(tag, "increased volume"); getaudiomanager().adjuststreamvolume(audiomanager.stream_musi

vb.net - Detect if progress bar value was assigned before P/INVOKE PBM_SETSTATE -

i'm making library progressbar includes p/invoke native methods progress state. <toolboxbitmap(gettype(progressbar))> public class myprogressbar : inherits progressbar private const pbm_setstate integer = &h400 + 16 private _state progressstates = progressstates.normal <dllimport("user32.dll", charset:=charset.auto, setlasterror:=false)> private shared function sendmessage(byval hwnd intptr, byval msg integer, byval wparam intptr, byval lparam string) intptr end function public sub new() mybase.new() end sub <category("appearance")> <defaultvalue(progressstates.normal)> <description("it sets progress state")> public property state progressstates return _state end set(value progressstates) _state = value me.recreatehandle() end set end property public enum progressstates nor

c++ - using pointer and address operator together -

i couldnt understand why using *&first (pointer , address operator together). mean? , when should use it? void splitarray (int *a, int size, int ind1, int ind2, int *&first, int &firstsize,int *&second, int &secondsize) { firstsize = ind2 - ind1 + 1; secondsize = size - firstsize; first = new int[firstsize]; second = new int[secondsize]; int cnt1 = 0, cnt2 = 0; (int = 0; < size; i++) { if ((i >= ind1) && (i <= ind2)){ first[cnt1] = a[i]; cnt1++; } else { second[cnt2] = a[i]; cnt2++; } } } what mean? , when should use it? the & symbol appearing after type defines reference type. thus, instance, int& reference int , my_object& reference my_object , , int *& reference int* (i.e. reference pointer int ). when appears in function signature, means corresponding argument passed reference rather value: when passing value

windows phone 7 - How to get main thread to wait on completion of StreamReader in a different class -

i developing app new wp7 development, have main process calling class uses streamreader read contents of webpage , assign variables. problem i'm having main process trying use variables before have been assigned values. there way make main process wait until streamreader has completed in main thread have: locationdetails = new locationresults(); locationdetails.getresults(addressdetails); then in locationresults class public void getresults(string address) { string addy, tmp; if (address[0] == '+') { tmp = address.substring(1); addy = baseaddress + tmp + "&sensor=false"; } else addy = baseaddress + address + "&sensor=false"; webclient webclient = new webclient(); webclient.openreadasync(new uri(addy)); webclient.openreadcompleted += new openreadcompletedeventhandler(webclient_openreadcompleted); } void webclient_openrea

git - move back to previous commit and delete current commit I am on -

i have following commits: $ git log --pretty=oneline ba69c7a4c4a642549e70319ccb1f7904893d6df1 ko added currentcat , works 63e61d861923694944084e47ed613385d329a36a ko added seperate cat function ad8be8da63e0381dfeb4a1db108021dd294b0556 init $ i want move 2nd commit 63e6 , delete ba69 commit. how do this? for reference: how show commit on: $ git rev-parse head ba69c7a4c4a642549e70319ccb1f7904893d6df1 $ git show | head -n 5 commit ba69c7a4c4a642549e70319ccb1f7904893d6df1 author: name <you@example.com> date: wed feb 3 14:02:32 2016 +1300 ko added currentcat , works edit1 per below comment, reset , commited again, can seen in git reflog $ git reflog 9522fd7 head@{0}: commit: ko add iterate through currentcat 63e61d8 head@{1}: reset: moving 63e61 ba69c7a head@{2}: commit: ko added currentcat , works 63e61d8 head@{3}: commit: ko added seperate cat function ad8be8d head@{4}: clone: https://github.com/hattricknz/ud989-cat-clicker-ko-starter after git

android - WebView content interaction -

so have , want achieve. i have webview component, loads website images. want able grab image website, , animate move (cloning) of image existing imageview (replace image source) appropriate scaling, imageview looks loaded webview. any idea how that, , have nice , smooth animation effect. my idea create bitmap url loaded webview , animate bitmap on screen, took time time download image , convert new bitmap, can't have smooth effect approach. so other idea?

command line interface - CLI Service Creation: Service Broker Timed Out (FAILED Server error, status code: 504, error code: 10001...) -

the service creation fails, idea why failing? executed following cli command: cf cs cloudantnosqldb shared micloudant response: creating service instance micloudant in org org-name / space workshop ... result: failed server error, status code: 504, error code: 10001, message: request service broker timed out: https://provision-broker.ng.bluemix.net/bmx/provisioning/brokers/ab25b9d1-717a-4720-a538-30f41b817cf5/v2/service_instances/7bc4ba63-970c-449d-8117-1ec60da3782e?accepts_incomplete=true i ran same command again morning (nothing changed) time worked. have encountered behavior before? broker times out often? anyway, thanks. cheers, a.

java - gwt return error xml tag attribute for polymer elements and no icon displayed for paper-icon-button -

good morning {my first question on stackoverflow} 1) main.ui.xml file, seems me following non-value paper-drawer-toggle tag attribute <paper-drawer-panel ui:field="drawerpanel"> ... <paper-icon-button ui:field="menu" icon="menu" paper-drawer-toggle></paper-icon-button> ... <paper-drawer-panel ui:field="drawerpanel"> is not tollerated gwt in eclipse following error attribute "paper-drawer-toggle" associated element type "paper-icon-button" must followed '=' character. anyway, vaadin in polymer guide , in tells i've done tells i've written in main.ui.xml file. 2) moreover, if put paper-drawer-toggle="" in main.ui.xml file, turns out no icon in page in paper-icon-button. i've tried put scr="..." attribute url png image no icon page yet. so, points 1) , 2) ... missing something? or told gwt ignore polymer xml tags compiling action?