Posts

Showing posts from May, 2011

html - DOCTYPE messes up formatting -

i know many people have similar problems when switching <!doctpye html> line, however, i've tried methods , classic html{height: 100%;} body {min-height: 100%;} method, along others, sadly, cannot figure out how insert code. every time add doctype , background image disappears, tried method background images, well. here's code- http://pastebin.com/554mctvx want there still center div. hope guys can :d ~wumbo put <!doctype html> at top of html file according w3c standardization. create separate css file mystyle.css , put css code there. make link of css file <link rel="stylesheet" type="text/css" href="mystyle.css"> ::-moz-selection { color: #ffffff; background: #00ffaa; } ::selection { color: #ffffff; background: #00ffaa; } a:link { color: #00ffaa; } /* visited link */ a:visited { color: #00d486; } /* mouse on link */ a:hover { color: #57

html - Submitting data to existing form is being rejected -

i trying submit data form exists, different page. page submitting part of existing application cannot change. have created page send post, data being rejected server. my code post data is: <form action='http://www.website.net/admin/webporta/booking.aspx?code=fm13' method='post'> <input type='hidden' name='scriptmanager1' value='upd_coverage|link_dailyliab'> <input type='hidden' name='__eventtarget' value='link_dailyliab'> <input type='hidden' name='__eventargument' value=''> <input type='hidden' name='__lastfocus' value=''> <input type='hidden' name='__viewstate' value='%2fwepdwukmjazndmwnzg2na9kfgicaq9kfgicaq9kfgycbq8wah4dc3jjbr1ncmfmawnvcy9ozwfkzxjfbwv4ym9yzgvylmpwz2qcbw9kfgicaq9kfgjmd2qwagibdxychgvzdhlszqupymfja2dyb3vuzc1pbwfnztp1cmwoj2ltzy9pbwdfymdfcxeuanbnjykwamypzbyezg9kfg4caq8qzbavfakknswwmdaumdajjdksotk5lj

hadoop - Pig filter fails due to unexpected data -

i running cassandra , have 20k records in play with. trying run filter in pig on data getting following message back: 2015-07-23 13:02:23,559 [thread-4] warn org.apache.hadoop.mapred.localjobrunner - job_local_0001 java.lang.runtimeexception: com.datastax.driver.core.exceptions.invalidqueryexception: expected 8 or 0 byte long (1) @ org.apache.pig.backend.hadoop.executionengine.mapreducelayer.pigrecordreader.initnextrecordreader(pigrecordreader.java:260) @ org.apache.pig.backend.hadoop.executionengine.mapreducelayer.pigrecordreader.nextkeyvalue(pigrecordreader.java:205) @ org.apache.hadoop.mapred.maptask$newtrackingrecordreader.nextkeyvalue(maptask.java:532) @ org.apache.hadoop.mapreduce.mapcontext.nextkeyvalue(mapcontext.java:67) @ org.apache.hadoop.mapreduce.mapper.run(mapper.java:143) @ org.apache.hadoop.mapred.maptask.runnewmapper(maptask.java:764) @ org.apache.hadoop.mapred.maptask.run(maptask.java:37

c# - TabControl ItemTemplate with UserControl inside -

i have question using tabcontrol mvvm pattern. here parts of code: <usercontrol> <usercontrol.datacontext> <vm:tabsviewmodel /> </usercontrol.datacontext> <usercontrol.resources> <resourcedictionary > <resourcedictionary.mergeddictionaries> <resourcedictionary source="../styles/converters.xaml"/> </resourcedictionary.mergeddictionaries> </resourcedictionary> </usercontrol.resources> <grid> <grid.resources> <style x:key="tabitemstyle" targettype="tabitem"> <setter property="header" value="{binding customer.lastname}"/> <setter property="content" value="{binding}"/> </style> <

android - Realm Object is empty when posting with Retrofit -

i try pass realm object retrofit put method. although there no threading error unlike other, somehow retrofit passing empty object without data realm object. user extends realm object. this retrofit method: @headers("content-type: application/json") @put(user + "/{id}") observable<profile> edituser(@body user user, @path("id") string id); this how call in activity: if (!name.gettext().tostring().isempty() && !email.gettext().tostring().isempty() && !phone.gettext().tostring().isempty()) { realm.begintransaction(); agent.setname(name.gettext().tostring()); agent.setphone(phone.gettext().tostring()); agent.setemail(email.gettext().tostring()); realm.committransaction(); consumerrestadapter.getservice(this) .edituser(agent, agent.getid()) .subscribeon(schedulers.newthread()) .observeon(androidschedulers.mainthread()) .subscribe(new observer<profile>() { @override

visual c++ - Selected cells CGridCtrl from codeproject -

i need find selected cells control cgridctrl using following code. ccellrange cells = m_grid.getselectedcellrange(); if( cells.count() == 0 ) return ; (int = cells.getmaxrow(); >= cells.getminrow(); i--) { (int j=cells.getmincol(); j<=cells.getmaxcol();j++) { bool selected = m_grid.getcell(i,j)->isselected(); trace(_t("row %d column %d selected = %d state %d\n"),i,j,selected, m_grid.getcell(i,j)->getstate()); if(selected) { m_grid.deleterow(i); break; } } } since cells selected not contiguous, need use isselected() find cell selected. last cell return true. there way determine cells selected control? i don't know if flag in cells correct, correct function check if cell selected are: bool cgridctrl::iscellselected(ccellid &cell) const bool cgridctrl::iscellselected(int nrow, int ncol) const just

ruby on rails - Configuration of ContentfulModel gem is lost after initialization -

completely new rails 4.2.3 application. changes gemfile have been removal of spring, addition of dotenv, , latest contentful_rails , contentful_model gems published on rubygems.org. for unknown reasons, configuration details defined in initializer gone time app comes up. it's same object (same value contentfulmodel.configuration.object_id ) values correct nil . i added initializer shown in readme. $ cat config/initializers/contentful_model.rb contentfulmodel.configure |config| byebug config.access_token = env['contentful_access_token'] config.preview_access_token = env['contentful_preview_access_token'] config.space = env['contentful_space'] # config.options = { #extra options send contentful::client # } end and defined 1 model, category. $ cat app/models/category.rb class category < contentfulmodel::base self.content_type_id = "[category content type string]" end so here&#

internet explorer - VB.net Open new IE window -

another 1 cannot seem find. in vb.net, how force new instance of ie or chrome when clicking button? i may have existing windows open, want make when click button, opens either chrome, ie, etc. open new instance. is possible? thanks! the exe's should in path can run them this process.start("chrome.exe", "--new-window http://www.bing.com") process.start("iexplore.exe", "http://www.bing.com") if aren't in path, you'll need provide full path exe, c:\program files\internet explorer\iexplore.exe by default on system chrome opens new tab if run chrome.exe without --new-window parameter. when run iexplore.exe, opens new window default.

node.js - How to store a file with file extension with multer? -

managed store files in folder store without file extension. does 1 know how store file file extension? from docs: "multer not append file extension you, function should return filename complete file extension." here's how can add extension: var multer = require('multer'); var storage = multer.diskstorage({ destination: function (req, file, cb) { cb(null, 'uploads/') }, filename: function (req, file, cb) { cb(null, date.now() + '.jpg') //appending .jpg } }) var upload = multer({ storage: storage }); i recommend using mimetype property determine extension. example: filename: function (req, file, cb) { console.log(file.mimetype); //will return like: image/jpeg more info: https://github.com/expressjs/multer

javascript - Python CRC for cashcode driver (From JS to Python) -

i try re-write ccnet driver cashcode, node python. but, realy can`t run crc generator. you can find "working" code on github repo here js function: function getcrc16(bufdata) { var polynomial = 0x08408; var sizedata = bufdata.length; var crc, i, j; crc = 0; (i = 0; < sizedata; i++) { crc ^= bufdata[i]; (j = 0; j < 8; j++) { if (crc & 0x0001) { crc >>= 1; crc ^= polynomial; } else crc >>= 1; } } var buf = new buffer(2); buf.writeuint16be(crc, 0); crc = buf; return array.prototype.reverse.call(crc); } i try crcmod , it`s not predefined function, , when try set polynominal, error here sometime working code: @staticmethod def getcrc16(data): crc = 0 in range(0, len(data), 2): crc ^= int(str(data[i:(i+2)]), 16) j in range(8): if (crc & 0x0001):

php - htaccess redirect doesn't work for zip.files -

i'm trying redirect auto-generated cms link zip file hosting. redirect in htaccess file looks approx this(and doesn't work): redirect /files/generated.zip http://somehosting.com/something.zip when try - works: redirect /files/generated http://somehosting.com/something.zip redirect /files/generated.html http://somehosting.com/something.zip please, give me direction how hack this. by way, stuff worked ok before site moved other hosting (maybe here deployed newer software causes weird behavior...) you need use way.. rewriterule ^uplaod/[0-9]{4}/[0-9]{2}/(.+?\.(?:zip|7z|rar))$ /test.php?file=$1 [r=301,l,nc]

python - What does the mth argument to RectBivariateSpline do in old (0.9.0) versions of scipy -

i'm stuck using scipy version 0.9.0 . in version scipy.interpolate.rectbivariatespline.__call__ has keword argument mth . other default value ( mth='array' ), can't tell how used, in particular other options (if any) supported , do? the documentation have found more date versions, mth argument deprecated (in favor of grid argument). not useful me. there no other option available: here's source code function: def __call__(self, x, y, mth='array'): """ evaluate spline @ positions x,y.""" x = np.asarray(x) y = np.asarray(y) # empty input yields empty output if (x.size == 0) , (y.size == 0): return array([]) if mth=='array': tx,ty,c = self.tck[:3] kx,ky = self.degrees z,ier = dfitpack.bispev(tx,ty,c,kx,ky,x,y) assert ier==0,'invalid input: ier='+`ier` return z raise notimplementederror('unknown method mth=%s

Alternatives to splitting tables Entity Framework 6 - VARBINARY(MAX) -

solution : idea loading problem table files. in order in order, had turn off lazy load, , load navigation property entity blob instead of other way around. public filedto[] retrievefileswithuserid(string id) { filedto[] files; logger.info("looking files #{0}", id); using (var db = contextfactory.getentities()) { db.configuration.lazyloadingenabled = false; logger.debug("user retrieved !"); files = db.files.include("users").where(f => f.users.count(user1 => user1.id == id) > 0).select( x => new filedto { contenttype = x.contenttype, id = x.id, name = x.name, type = db.typefiles.firstordefault(b => b.id == x.type).description }).to

database - Web2py: Write SQL query: "SELECT x FROM y" using DAL, when x and y are variables, and convert the results to a list? -

my action passes list of values column x in table y view. how write following sql: select x y , using dal "language", when x , y variables given view. here is, using exequtesql() . def myaction(): x = request.args(0, cast=str) y = request.args(1, cast=str) myrows = db.executesql('select '+ x + ' '+ y) #let's convert list: mylist = [] row in myrows: value = row #this line doesn't work mylist.append(value) return (mylist=mylist) also, there more convenient way convert data list? first, note must create table definitions tables want access (i.e., db.define_table('mytable', ...) ). assuming have done , y name of single table , x name of single field in table, do: myrows = db().select(db[y][x]) mylist = [r[x] r in myrows] note, if records returned, .select() produces row object, comprises set of row objects (even if single field selected). so, extract individual values

weblogic12c - EJB 2.1 deployment in weblogic 12c issue -

i trying deploy ejb 2.1 wrapped in ear maven app in weblogic 12c, have mentioned prefer ejb 2.1 jar in classpath, still getting below error since referring weblogic ejb jar. i trying different things still not picking my. please find below xml files , can please me in resolving issue? i sick of finding root cause :( there 6 nested errors: weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, bean class must implement directly or indirectly javax.ejb.sessionbean interface. at weblogic.ejb.container.compliance.sessionbeanclasschecker.checkclassimplementssessionbean(sessionbeanclasschecker.java:68) weblogic.ejb.container.compliance.complianceexception: in ejb monthlysessionstatmgmt, method gethandle() defined in local interface either not exist in bean class, or not public method. each method in local interface must have corresponding public method in bean class. at weblogic.ejb.container.compliance.beanclasschecker.checkbusinessmeth

vba - QueryDefs returns ~sq_rrptStatTabRout -

situation: need lookup first field of each query. after created code listed below , executed received following debug.print : ~sq_rrptstattabrout qrybridgesub qrycenttabrout i expecting last 2 print i'm not particularly sure why first 1 did since rptstattabrout exist in database report. question: there simple way explain or rid of it? code: private sub command47_click() dim db dao.database dim rs dao.recordset dim queries dao.querydefs dim query dao.querydef dim queryname string dim fld dao.field set db = currentdb set queries = db.querydefs ' loop through each query each query in queries on error resume next queryname = query.name debug.print queryname set rs = currentdb.openrecordset("select * " & queryname & "", dbopendynaset) fld = rs.fields(0).name msgbox fld next end sub seems want ignore saved queries names start ~ . use if condition ignore them. if not query.name "~*"

Winston not logging events in productions version of a Node.js app hosted on Google Cloud Compute Engine -

Image
i using winston log events in app. when run code node app.js locally, winston logs events fine. when push code server ( gcloud preview app deploy app.yaml ), or run in production environment locally ( gcloud preview app run app.yaml ) doesn't log event. locally winston creates general.log , request.log , edits them required, doesn't of in production mode. here logging.js code "use strict"; var fs = require('fs'); var path = require('path'); var winston = require('winston'); var expresswinston = require('express-winston'); module.exports = function(logpath) { // create logging directory if necessary. if (!fs.existssync(logpath)) { fs.mkdirsync(logpath); } /* logger capture requests , output them console request.log. */ // [start requests] var requestlogger = expresswinston.logger({ transports: [ new winston.transports.console({ json: false }), new winston.transports

android - Jacoco code coverage details missing on Jenkins -

Image
i trying use code coverage tools of jacoco on jenkins server android library. builds successful, , code coverage stats shown in report : however, when want details of lines covered or not, page totally empty: as thing need most, pretty annoying... here part of gradle file have jacoco: apply plugin: 'jacoco' jacoco { // use version upper ones broken (with gradle) // https://github.com/jacoco/jacoco/issues/288 toolversion = "0.7.1.201405082137" } // edit covered scope if needed def coveragesourcedirs = [ '../s3papiandroidclient/src' ] task jacocotestreport(type: jacocoreport, dependson: "test") { group = "reporting" description = "generate jacoco coverage reports" classdirectories = filetree( dir: '../s3papiandroidclient/build/intermediates/classes', excludes: ['**/r.class', '**/r$*.class',

javascript - unusual data format in web page -

i saw in webpage. wondering if there tool out there or custom made. <!-- aname :: abcd123 anothername :: mferrorarray :: array[2 * 120] [1] [0:errorcode]{ } [1:arrayindex]{ } mferrorarray2 :: array[3 * 60] [1] [0:errorcode2]{ } [1:substitution]{ } [2:arrayindex2]{ } barktype :: b leaftype :: tree plant forest :: array[13 * 70] [1] [0:fff]{} [1:dfff]{b001756} [2:dfdf]{active} [3:dfp]{12312050} [4:name]{oak.} [5:ndfdf2]{} --> what this?? no idea is, have been commenting out line of code not wanting totally remove it. without seeing more of html file can't tell language might be. if had guess javascript.

postgresql - Postrgresql query slow only fromn pg_query of PHP -

i'm doing query php postgresql , it's extremely slow. query select *, cast(data->>'created_at' timestamp) fecha gorda_lipo.tweets idusuario = 125379829 limit 20 on phppgadmin tooks 21.172 ms, if try query on php pg_query(the connection, query) query canceled because of timeout, , if try manually cancel using select pg_cancel_backend(pid); takes more 1 minute. if make query select *, cast(data->>'created_at' date) fecha,cast(data->>'id' bigint) idusuario gorda_lipo.usuarios cast(data->>'id' bigint) = (select *from (select cast(data->>'id' bigint) gorda_lipo.usuarios limit 50) t order random() limit 1) works fine. pretend use result idusuario of first query, doens't work if use number instead. why query slow on php pg_query ? doing wrong? there plugin use? take @ php.ini's max_execution_time value. there's no reason query slower when querying php, trying display data @ o

Keep documentation with the code, or in a central Wiki? -

my company custom software several companies. have dozens of small software projects (and larger ones), each own history, quirks , processes. document in instance of mediawiki ), , has worked wonderfully. code documentation, on other hand, put code in source control. is, through comments, diagram files, etc., , readme file describes how set dev environment. my problem this: wiki better plain text files or word processor docs higher level code , development documentation, bugs me it's not in source control system code. couldn't bring wiki me on plane, instance. so , in format should keep code documentation? i agree wiki documentation has many advantages. places have worked @ made attempt co-locate documentation in source control end not keeping documents alive , end stale information. wiki format find people keeping documents alive, way believe should be, seldom take time make sure of. increasingly finding hard think of place can't internet service a

LLVM unable to get a required analysis -

i writing pass needs information loops. therefore overriding getanalysisusage(analysisusage&) let pass manager know pass depends on loopinfowrapperpass . however, when try result of analysis, llvm asserts analysis wasn't required pass. here's simple pass i'm having trouble with: #include <llvm/pass.h> #include <llvm/support/raw_ostream.h> #include <llvm/analysis/loopinfo.h> struct example : public modulepass { static char id; example() : modulepass(id) {} bool runonmodule(module& m) override { errs() << "what\n"; loopinfo& loops = getanalysis<loopinfowrapperpass>().getloopinfo(); loops.print(errs()); return false; } virtual void getanalysisusage(analysisusage& au) const override { errs() << "here\n"; au.addrequired<loopinfowrapperpass>(); } }; char example::id = 0; static registerpass<example> x("example

How to display a text above a Soft Keyboard in Android -

i'm trying develop custom soft keyboard in android. reading it, couldn't find way display above, in top of soft keyboard, text. mean, try display number of keys pressed. instead of see "suggestions" soft keyboard, want "key pressed: x", "x" number changes when press new key. for example, if type following sequence "qwert", in top of soft keyboard, should see "keys pressed: 5". if then, press "y", text must updated "keys pressed: 6". i've implemented logic behind this. mean, i'm being able count numbers of keys pressed, can't show want. is there way it? thanks! edit: add xml files can take have @ point keyboard.xml <?xml version="1.0" encoding="utf-8"?> <android.inputmethodservice.keyboardview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/keyboard" android:layout_width="match_parent&quo

r - name columns after using aggregate function -

i used aggregate function range factor level. trying rename columns, output aggregate function not have min , max separate columns. # example data size_cor <- data.frame(spcode=rep(c(200,400,401),3),length=(c(45,23,56,89,52,85,56,45,78))) # aggregate function spcode_range <- with(size_cor, aggregate(length, list(spcode), fun = range)) output: spcode_range group.1 x.1 x.2 1 200 45 89 2 400 23 52 3 401 56 85 data structure: str(spcode_range) 'data.frame': 3 obs. of 2 variables: $ group.1: num 200 400 401 $ x : num [1:3, 1:2] 45 23 56 89 52 85 dim(spcode_range) [1] 3 2 the output has 3 columns: group.1 , x.1 (min) , x.2 (max), dataframe has 2 columns. have tried setnames, rename , name no success because trying name 3 columns when r has 2 columns.

symfony - Twig - how to efficiently re-use code -

i have page render details of many users. each user's html quite heavy (tooltips etc.) don't want copy/paste same code. i'd reuse same code on different pages well. i using include parameters i'm not sure how performance be. better make twig extension , have there functions producing html based on passed user instance? or there another, better approach? edit: this kind of code i'm rendering in multiple places on multiple pages. <span data-tooltip aria-haspopup="true" class="has-tip" title="{{ user.getjob }}, {{ user.getcompanyy.getname }}"> {{ user.getfirstname }}, {{ user.getlastname }} </span> include solution , fit needs. you use macros ( documentation ). try not use include nor require in macro because if have error in included template, line of error line called template (not 1 have bug) become difficult debug. and said, twig extension specifics cases. instance, if want display price, it

Ionic - two Toggle bars show -

here codepen link: http://codepen.io/anon/pen/mwpgge specific html is: <ion-toggle> <div class="item"> {{menu.form.surveymode ? 'survey' : 'enforcement'}} mode <label class="toggle toggle-positive"> <input type="checkbox" ng-model="menu.form.surveymode"> <div class="track"><div class="handle"></div></div> </label> </div> </ion-toggle> this showing 2 toggle buttons, need one. if remove <ion-toggle> button not act slider button. <ion-toggle ng-model="menu.form.surveymode" toggle-class="toggle-positive"> {{menu.form.surveymode ? 'survey' : 'enforcement'}} mode </ion-toggle> the above piece of code solved problem.

Sheet change event fires twice in Excel 2013, once in Excel 2010 -

should excel 2010 addin project work in excel 2013? the reason ask because created project in visual studio 2010 excel add-in works fine in excel 2010 there lot of weird little bugs when runs in excel 2013. example sheet change event fires twice in excel 2013 (it correctly fires once in excel 2010). before go down route of re-building project using excel 2013 addin template in visual studio wanted check if else has come across behaviour?

iphone - iOS any SDK or api of net banking for india -

Image
i need link provide api of net banking of possible banks of india. after researching lot found many providers payubiz, payway etc. provide api php etc. instead of embedding them in web view want specific ios platform. thanks input in advance. ccavenue's mobile sdk solved problem. has many features, 1 of feature has net banking of possible banks of india. download sdk should have ccavenue's merchant account. source

.net - Is there any way to use remote debugging for managed apps without disabling Host firewalls? -

i have tried setup remote debugging managed apps laptop (host)(win 8.1) oracle virtual box vm (client) (win xp). , i'm not able disable laptop’s firewall due company rules. have end error visual studio unable connect microsoft visual studio remote debugging monitor named -------. visual studio remote debugger on target computer cannot connect computer. authentication failed. please see assistance. note: remote debugger(visual studio 2008) first there way use remote debugging managed apps without disabling host firewalls? if please me resolve issue. finally have found way use remote debugging without disabling host firewalls. host: you have allow msvsmon.exe application through inbound rules from control panel\all control panel items\windows firewall\advance settings\inbound rules\new rule program->program path -> allow connection -> check domain,private,public -> enter name-> finish. then have add remote debugger port 135 inbound rules

Setting default value for fields in Rails -

so have model request , working perfectly. decided add "status" field, default value def change create_table :requests |t| t.references :owner, index: true t.references :pretender, index: true t.belongs_to :book, index: true t.string :status, value: "pending", null: false t.timestamps null: false end end but constraint not null on line: ... user.requests.build owner_id: oid, pretender_id: pid, book_id: bid ... which working fine. if field has default value, shouldn't need define on build method, no? in migration file, syntax not value , default : t.string :status, null: false, default: 'pending',

javafx - JAVA - IllegalStateException: unmanaged resource freed from pool D3D Vram Pool -

my javafx application throws many illegalstateexception have not yet been able trace trigger in source. can please guide me can cause , should looking find reason. hard me show code here since dont know what's causing it. any appreciated. java.lang.illegalstateexception: unmanaged resource freed pool d3d vram pool @ com.sun.prism.impl.baseresourcepool.resourcefreed(baseresourcepool.java:463) @ com.sun.prism.impl.managedresource.dispose(managedresource.java:127) @ com.sun.prism.impl.basetexture.dispose(basetexture.java:297) @ com.sun.scenario.effect.impl.prism.ps.ppsdrawable.flush(ppsdrawable.java:69) @ com.sun.scenario.effect.impl.imagepool.dispose(imagepool.java:267) @ com.sun.scenario.effect.impl.renderer.getrenderer(renderer.java:367) @ com.sun.scenario.effect.imagedata.validate(imagedata.java:216) @ com.sun.javafx.sg.prism.cachefilter.render(cachefilter.java:522) @ com.sun.javafx.sg.prism.ngnode.rendercached(ngnode.java:2372) @ com.sun.javafx.sg.prism.ngnode.dorender(

c++ - BIND DNS servers crash when setting root-delegation-only without exclude option -

i think it's bug in bind. happens on both bind dns 9.9.x , 9.10.x. if set root-delegation-only without exclude opntion named.conf , named cannot start. named.conf example: controls { inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; }; }; key "rndc-key" { algorithm "hmac-md5"; secret "mtizndu2"; }; options { directory "c:\named"; root-delegation-only; #root-delegation-only exclude { "com"; "net"; }; }; run named named.exe -c c:\named\named.conf -g named crashes errors: 23-jul-2015 18:47:22.280 set managed keys zone view _default, file 'managed-keys.bind' 23-jul-2015 18:47:22.280 ..\parser.c:1167: require(obj == ((void *)0) || obj->type->rep == &cfg_rep_list) failed 23-jul-2015 18:47:22.280 exiting (due assertion failure) it works if add exclude option: root-delegation-only exclude { "com"; "net"; }; it is bug in bind. it&#

c# - In CRM Dynamics 2015, How can I redirect to an External Website or External Desktop client? -

hi new crm wonder if there way navigate external url or application , how can go it. is possible override skype/lync client click-to-call different telephony client installed on machine, example zoiper,. if user clicks phone number on contact entity, want redirect either despot client or web client display zoiper dialing system, ideas of how can archive in crm dynamics 2015 the sitemap allows external links msdn docs . <subarea availableoffline=["0" | "1" | "true" | "false"] checkextensionproperty="string" client=["all" | "outlook" | "outlooklaptopclient" | "outlookworkstationclient" | "web" ] description="string" descriptionresourceid="string" entity="string" getstartedpanepath="string" getstartedpanepathadmin="string" getstartedpanepathadminoutlook="string" getstartedpanepathoutlook="string&q

python - Remove all lists of multiple sets where the specific index is same -

object: given multiple sets of 2d arrays, remove items in each array share common value in specific index in of arrays. the data large, around 20 groups, 200k arrays each, of large amounts of data in each array. what know 2 sets a = [['a',10,11],['b',10,11],['c',10,11]] b = [['e',10,11],['a',12,11],['f',10,11]] c = [['aa',10,11],['b',10,11],['cc',10,11]] first = [] second = [] in range(len(a)): first.append(a[i][0]) in range(len(b)): second.append(b[i][0]) aa = set(map(tuple,first)) bb = set(map(tuple,second)) print aa print bb print bb.symmetric_difference(aa) i can new set contains unique items based on first index of each item(array) in array. however, remove items each set exist in other sets, not between two, , not make new set. if can index of items in a match items in b or c , can delete them. loops, seems inefficient (not vectorized?). given: a = [['a',10,11],['

ios - Cannot invoke method snackbarWithMessage with an argument list -

i can't understand why method call incorrect. i'm trying use sssnackbar ios swift. has method following signature: @implementation sssnackbar + (instancetype)snackbarwithmessage:(nsstring *)message actiontext:(nsstring *)actiontext duration:(nstimeinterval)duration actionblock:(void (^)(sssnackbar *sender))actionblock dismissalblock:(void (^)(sssnackbar *sender))dismissalblock { my call of method: var bar = sssnackbar.snackbarwithmessage("success auth" nsstring, actiontext: "ok" nsstring, duration : nstimeinterval(5), actionblock: {(sender: sssnackbar) -> () in println("snackbar action") }, dismissalblock:nil) documentations says dismissalblock can nil. compile error: error:(48, 38) cannot invoke 'snackbarwithmessage' argument list of type '(nsstring, actiontext: nsstring, duration: double

javascript - Access current tab page components from script.js mozilla addon-sdk -

i have started learning firefox addon development using addon-sdk. developing addon has button. when click on button panel displays , loads page in panel. code panel below: var panels = require("sdk/panel"); var panel = panels.panel({ contenturl: self.data.url("mypage.html"), height:380, width:300 }); now want access components(eg. input type text) of current tab page of browser "script.js" file included in "mypage.html". cant post images have 6 reputation. please help. in index.js (or main.js ): panel.port.emit('tag', 'msg'); sends 'msg' message on panel 's port, tagged 'tag' . in script.js (read further understand file is): self.port.on('tag', function ( msg ) { alert(msg); }); listens messages on script's dedicated port (here port provided panel , script.js attached), tagged 'tag' . and backwards: self.port.emit in script.js , panel.po

mysql - Calculate date difference in sql for specific year -

i have 2 dates, start_date 20141215 , end_date = 20150115. use sql datediff count dates within year 2015 specify in query. here current sql have written: select count(leave_id), sum(case when leave_status = 1 1 else 0 end) pending, sum(case when leave_status = 2 1 else 0 end) declined, sum(case when leave_status = 3 1 else 0 end) approved, sum(case when leave_status = 4 1 else 0 end) rostered, sum(datediff(end_date, start_date)+1) datetotals employee_leave ((year(start_date) = :year) or (year(end_date) = :year)) , employee_id = :emp_id thanks you need fix datediff() consider dates during year. think want: select count(leave_id), sum(case when leave_status = 1 1 else 0 end) pending, sum(case when leave_status = 2 1 else 0 end) declined, sum(case when leave_status = 3 1 else 0 end) approved, sum(case when leave_status = 4 1 else 0 end) rostered, sum(datediff(least(end_date, date(concat_ws('

html - Change My contact page To Responsive? -

i have created html page (contact page) working not responsive. have checked , applied media query full css working responsive.after check system not working desktop application working responsive? how set code both desktop , mobile device in responsive ? my css code: body{ font-family:verdana, arial, helvetica, sans-serif; font-size:14px; } p, h1, form, button{border:0; margin:0; padding:0;} .spacer{clear:both; height:1px;} /* ----------- form ----------- */ .myform{ margin:0 auto; width:566px; padding:14px; } /* ----------- contact ----------- */ #contact{ background: none repeat scroll 0 0 #c6c6c6; border: 2px solid #8b8b8b; border-radius: 10px; -moz-border-radius: 10px; -op-border-radius: 10px;