Posts

Showing posts from March, 2010

asp.net - Membership and Role Providers when using Oracle Managed Driver -

i had 32bit/64bit issues in 1 of web applications after db upgraded 64 bit 12c , after researching problems had encountered, universal answer "use managed driver , not worry 32/64 bit issue". did. downloaded , installed "odac 12c release 4 , oracle developer tools visual studio (12.1.0.2.4)" here , removed references oracle.web , oracle.dataaccess (unmanaged drivers) in app , added reference new managed driver "oracle.manageddataaccess" changed "using oracle.web", "using oracle.dataaccess.client" "using oracle.manageddataaccess.client" but cannot find 1 document tells me how web config file needs modified use managed driver. do need make changes <connectionstrings> section? do need add additional sections make use of managed driver? what need change in membership , role providers sections? existing providers refer oracle.web.security.oracleroleprovider , once upgrading managed version, references ...

system verilog - UVM- run test() in top block and Macros -

i'm reading following guide: https://colorlesscube.com/uvm-guide-for-beginners/chapter-3-top-block/ in code 3.2 line 24- run_test(); realized supposed execute test, how know test, , how, , why should write in top block. in code 4.1 lines 11-14 ( https://colorlesscube.com/uvm-guide-for-beginners/chapter-4-transactions-sequences-and-sequencers/ ): `uvm_object_utils_begin(simpleadder_transaction) `uvm_field_int(ina, uvm_all_on) `uvm_field_int(inb, uvm_all_on) `uvm_field_int(out, uvm_all_on) `uvm_object_utils_end why should add "uvm_field_int" , happend if didn't add them, , "uvm_all_on"? run_test helper global function , calls run_test function of uvm_root class run test case. there 2 ways can pass test name function.the first via function argument , second via command line argument. command line argument takes precedence on test name passed via function argument. +uvm_testname=your_test_name run_test("your_test_name"); ...

Simple Xtext example generates grammar that Antlr4 doesn't like - who's to blame? -

while using xtext, have come across problem , not sure if antlr4 or xtext @ fault or if i'm missing something. understand antlr4 not supported xtext, seems particular case should not cause problem. here simple xtext file: grammar com.github.jsculley.antlr4.test org.eclipse.xtext.common.terminals generate test "http://www.github.com/jsculley/antlr4/test" arule: name=string ; string defined in xtext rule org.eclipse.xtext.common.terminals: terminal string : '"' ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|'"') )* '"' | "'" ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|"'") )* "'" ; the generated antlr grammar has fol...

Laravel print role of user in table -

i have laravel application. i'm using this package roles , permissions. works great. i display table of users roles. i'm solving through definition of following in userscontroller. public function listusers() { $users_admin = role::where('name', 'admin')->first()->users()->get(); $users_buyers = role::where('name', 'buyer')->first()->users()->get(); $users_sellers = role::where('name', 'seller')->first()->users()->get(); return view('admin.users.index', [ 'users_admin' => $users_admin, 'users_buyers' => $users_buyers, 'users_sellers' => $users_sellers ]); } in view, have 3 separate loops display 3 tables (for admin users, buyers , sellers). needless don't approach , ideally have single table displaying users role. so idea can write following code (or simila...

benchmarking - How do I run the core workload against a table created in Cassandra? -

i super new in benchmarking database. got familiarity ycsb tool little bit, still studying lot it. have downloaded ycsb latest version, , pre-requirement need benchmark cassandra. have datastax community installed in machine. using cassandra cql shell have created usertable following: create keyspace ycsb replication = {'class' : 'simplestrategy', 'replication_factor': 3 }; use ycsb; create table usertable (id uuid, name varchar, email varchar, primary key (id, email)); although in addition keyspace, must create columnfamily- don't know query that. besides having table created, can execute ycsb in command prompt: cd c:\ycsb c:\python27\python.exe bin\ycsb now rest part remains unknown me. how can proceed load workload database table , benchmark? want basic benchmark core workload, means having read, write, update, scan metrics enough me. have searched lot , trying understand wiki instruction given in ycsb github page. confusing ,...

Activiti-Rest java code -

public static void startprocessinstance(){ string uri=rest_uri+"/runtime/process-instances"; log.debug("process instance uri: "+uri); jsonobject my_data=new jsonobject(); try { my_data.put(config.getconfig().getproperty("name1"),config.getconfig().getproperty("name2")); my_data.put(config.getconfig().getproperty("emailid1"),config.getconfig().getproperty("emailid2")); my_data.put(config.getconfig().getproperty("reason1"),config.getconfig().getproperty("reason2")); my_data.put("processdefinitionkey",config.getconfig().getproperty("processdefinitionkey")); representation response=getclientresource(uri).post(my_data); i doing activiti-rest.in documentation have not mentioned java classes activiti rest such how deploy process,how start process,how complete task etc. can provide sample codes process of activiti through activiti rest. in advance ...

Xcode Server: How to change the repository the bot is running on? -

Image
is possible @ all? when try edit bot there running on. need change other location on macbook. how?

cannot get a promise after bindActionCreators in Redux -

i use react/redux create app. i've custom action creator make async request (i use redux-thunk). export function loginattempt(userdata) { return dispatch => { let formdata = new formdata(); formdata.append('username', userdata.username); formdata.append('password', userdata.password); fetch('https://api.t411.ch/auth', { method: 'post', body: formdata }).then(response => { if (response.status !== 200) { const error = new error(response.statustext); error.respone = response; dispatch(loginerror(error)); throw error; } return response.json(); }).then(data => { dispatch(loginsuccess(data)); }); } in component, use bindactioncreators bind method dispatch : import react, { component } 'react'; import { connect } 'react-redux'; import { bindactioncreators } 'redux'; import searchbar './searchbar'; impo...

phantomjs - Highcharts convert: not showing pie chart data labels -

Image
i'm using phantomjs highcharts , highcharts convert render charts on server. i'm attempting render pie chart data labels enabled. configuration json works fine when run in browser, same json phantomjs omits data labels. else rendered correct. here json: { chart: { height:500, type: 'pie', }, legend: { margin: 30 }, plotoptions: { pie: { showinlegend: true, datalabels: { enabled: true, format: '<b>{point.name}</b>: {point.y} ({point.percentage:.1f}%)', }, } }, series: [{ name: 'count', data: [ ['a', 12 ] , ['b', 500 ] , ['c', 50 ] ] }] } here's link jsfiddle same json, works correctly: https://jsfiddle.net/j2nb72l7/ here image output phantomjs: this bug in version of...

git - How to avoid checkout of sources on master node with jenkins pipeline -

i want define builds using jenkins 2 pipeline feature , want configuration loaded sources in jenkinsfile . don't want clutter master node workspace. ideally, specify pipeline job meant run given node type doesn't seems possible. i see 2 alternatives: use dedicated repository jenkins job configuration stored. use cleaver git checkout strategy (shallow + sparse). did miss something? best practice ? there's jenkins issue claims fixed, , jenkinsfile needs checked out on master: https://issues.jenkins-ci.org/browse/jenkins-33273 (it isn't working me @ moment though.)

javascript - Hide different divs with different ratio checked -

got code in following question hi! how can transform code "universal". work 1 case. if have 2 not work. thank you $(document).ready(function() { $('input[type="radio"]').click(function() { if($(this).attr('id') == 'watch-me') { $('#show-me').show(); } else { $('#show-me').hide(); } }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> <div class="medium-12"> <label>are member?</label> </div> <div class="medium-6"> <fieldset class="form-row" id="member"> <input type="radio" id="watch-me" value="yes" name="member" class="tap-input"> <label for="watch-me">yes</label> <input type="radio...

javascript - How to call this post action method using Ajax? -

i trying create form ajax post creation of new user. goal show popup indicating result of action. current version of action method adds errors modelstate if something's wrong, , redirects if successful. action method within admincontroller.cs: [httppost] public async task<actionresult> create(createmodel model) { if (modelstate.isvalid) { appuser user = new appuser { username = model.name, email = model.email }; identityresult result = await usermanager.createasync(user, model.password); if (result.succeeded) { return redirecttoaction("index"); } else { adderrorsfromresult(result); } } return view(model); } the view: @model identitydevelopment.models.createmodel @{ viewbag.title = "create user";} <h2>create user</h2> @html.validationsummary(false) @using (html.beginform("create", "admin", new { retu...

bash - Separating merge file into different file -

i have list of files in have text sorted according labels. 1 of labels a , other a=x . for example this a qmax3427 a=x qmax567897 now want make 2 different files 1 a , 1 a=x contents this can done grep grep -w > output.txt . is there other option? awk 'nr%2{o=$0;next}{print > o}' file

vba - Convert multiple rows to columns in Excel -

Image
i have sheet containing clients , dependents. listed ssn                   last name      first name      relationship 000-00-0000      smith              john                client 000-00-0000      smith              freddy            son 000-00-0000      smith              beth                daughter 111-11-1111       john...

Does netlogo extension rngs work in the new version? -

building off last post, i'm trying draw random-beta distribution using rngs extension of netlogo none of primitives seem working me. extension (build netlogo 4.1) work new version? if not, there new extension can me draw distribution? if does, have assume it's code error on part. per guide at: https://github.com/netlogo/netlogo/wiki/extensions code currently: extensions [rngs] setup make_turtles end make_turtles create-turtles 10000 ask turtles [ rngs: init rngs: set-seed let dist rngs: rnd-beta random-float 999 0.9 0.5 set target_factor dist ] end this first time i'm employing extension may confused how work, though have rtfm, me guide says do... summary of errors: code above "nothing named rngs has been defined" if remove ":" "nothing named init has been defined" looks me it's not reading primitives correctly, or employing wrong? it looks have syntax error: rngs: init should rngs:init . note there no spac...

html - Restore Ionic Framework CSS -

good afternoon! i'm having troubles ionic's css. issue when use google maps v3, css frmo google maps overrides original css ionic, affects other pages of mobile drastically. so, had idea of temporary fix issue, restoring css of framework when pressing button change page. , i'm still newbie, i've got no clue on how (and couldn't find @ google). thx attention! solved problem: cordova geolocation plugin problem ... updated plugins, used make maps works, , came life! :) not getting current location of user (and i've not requested it, failing open issue).

pandas - copy values from one dataframe to another dataframe(different length) by comparing row values in python -

i new python , working dataframes. have 2 dataframes, 1 data months , data days in months. want data monthly dataframe column in daily dataframe, repeated number of days in month. thanks, have tried provide illustration below. monthly df val date year month 0 0.00 2016-01-31 2016 1 1 0.10 2016-02-29 2016 2 2 0.07 2016-03-31 2016 3 3 0.01 2016-04-30 2016 4 4 0.28 2016-05-31 2016 5 dailydf date year month val 0 2016-01-01 2016 1 0 1 2016-01-02 2016 1 0 2 2016-01-03 2016 1 0 3 2016-01-04 2016 1 0 4 2016-01-05 2016 1 0 5 2016-01-06 2016 1 0 6 2016-01-07 2016 1 0 7 2016-01-08 2016 1 0 8 2016-01-09 2016 1 0 9 2016-01-10 2016 1 0 10 2016-01-11 2016 1 0 11 2016-01-12 2016 1 0 12 2016-01-13 2016 1 0 13 2016-01-14 2016 1 0 14 2016-01-15 2016 1 0 15 2016-01-16 2016 1 0 16 2016-01-17 2016...

postgresql - Cannot create procedure in pl/pgsql but code works without create procedure -

i have been trying create procedure in order " execute insert into " table. gave on , continued trying dynamically generate required insert code. i have solved issue not creating procedure , starting " declare " bit; still have not managed make pl/pgsql procedure work. the following procedure not working: create procedure populate_xcc_allocatable() $body$ declare type tablearray varray(17) of varchar2(30); xa_tables tablearray := tablearray('allocation', 'container', 'location', 'sap_posting', 'status'); total integer; begin total := xa_tables.count; in 1..total loop dbms_output.put_line('insert allocatable values (nextval(''allocatable_id_seq''), ''' || xa_tables(i) || ''');'); end loop; end; $body$ language plpgsql; line ...

Append and Truncating together in Python -

so, @ exercise 16 of zed shaw's python book. i thought of trying out both append , truncate on same file. know, not make sense. but, new , trying learn happen if used both. so, first opening file in append mode , truncating , writing it. but, truncate not working here , whatever write gets appended file. so, can kindly explain why truncate not work ? though opening file in append mode first, believe calling truncate function after , should have worked !!! following code: from sys import argv script, filename = argv print "we're going erase %r." %filename print "if don't want that. hit ctrl-c (^c)." print "if want that, hit return." raw_input("?") print "opening file..." target = open(filename, 'a') print "truncating file. goodbye!" target.truncate() print "now i'm going ask 3 lines." line1 = raw_input("line 1: ") line2 = raw_input("line 2: ") line3 = ...

objective c - iOS and local Notifications -

is there way send local notification app app? i need send notification app users every morning. so, can add code app, after user launch that, every morning or badge/notification? you can add local notifications ios app doing following: step one register local notifications in app delegate: -(bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // register app local notifcations. if ([application respondstoselector:@selector(registerusernotificationsettings:)]) { [application registerusernotificationsettings:[uiusernotificationsettings settingsfortypes:uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound categories:nil]]; } // setup local notification check. uilocalnotification *notification = [launchoptions objectforkey:uiapplicationlaunchoptionslocalnotificationkey]; // check if notifcation has been received. if (notification) { ...

build - Create Azure DevTest Lab VM from Visual Studio Team Services -

Image
i want create azure devtest labs vm part of build process in visual studio team services. when run build following error: ****************************************************************************** starting task: create azure devtest labs vm ****************************************************************************** executing powershell script: c:\lr\mms\services\mms\taskagentprovisioner\tools\agents\1.102.0\tasks\azuredevtestlabscreatevm\1.0.7\new-azuredtlvm.ps1 looking azure powershell module @ c:\program files (x86)\microsoft sdks\azure\powershell\servicemanagement\azure\azure.psd1 azurepscmdletsversion= 1.3.2 get-serviceendpoint -name ***** -context microsoft.teamfoundation.distributedtask.agent.worker.common.taskcontext tenantid= ******** azuresubscriptionid= ***** azuresubscriptionname= ***** add-azurermaccount -serviceprincipal -tenant ******** -credential system.management.automation.pscredential select-azurermsubscription -subscriptionid ***** -tenantid ******** st...

How do I split values into equal ranges in one column and sum the associated value of another column in R? -

i have dataframe named cust_amount follows: age amount_spent 25 20 43 15 32 27 37 10 45 17 29 10 i want break down equal sized age groups , sum amount spent each age groups given below: age_group total_amount 20-30 30 30-40 37 40-50 32 we can use cut group 'age' , sum of 'amount_spent' based on grouping variable. library(data.table) setdt(df1)[,.(total_amount = sum(amount_spent)) , = .(age_group = cut(age, breaks = c(20, 30, 40, 50)))] or dplyr library(dplyr) df1 %>% group_by(age_group = cut(age, breaks = c(20, 30, 40, 50))) %>% summarise(total_amount = sum(amount_spent)) # age_group total_amount # <fctr> <int> #1 (20,30] 30 #2 (30,40] 37 #3 (40,50] 32

Javascript multi statement -

i building little app js , find difficult that: i want users input integer number range 0-100. if it's not int parsing int. want put number function checknum, , there appears problem. let me paste code: $(function () { initapp(); function getinput(){ var userinput = window.prompt("input number range 0-100"); var num = parseint(userinput); return num; }; function checkinput(num){ if( num < 0 || num > 100){ displayerror(); } else{ alert('num ok'); } }; function displayerror(){ alert("error"); }; function initapp(){ getinput(); checkinput(); }; }); as can see if put number out of range there alert says num ok - not true. have no idea doing wrong. i'll appreciate help. more, i'd put here function number.isnan() provide typing non-sense in input. thought statement this: if(number.isnan(num) || num <0 || num > 100){...} i guess mistake obvious , trivial more experie...

javascript - How to implements Simple SSE Server using Java? -

i want implement server sent events (sse) using simple java server socket (instead php and/or asp). this server simple things: listening incoming request browser, creates handler thread, reply request (sending header) without closing connection, , then, wait user input (system.in) forward messages client. of course overkill if use j2ee library (eg. jersey) doing task that. the source follow: import java.net.*; import java.io.*; import java.util.scanner; public class loc { public static void main ( string[] args ) throws ioexception{ serversocket ss = new serversocket(8888); //listen 1 connection. system.out.print("waiting connection..."); socket hp = ss.accept(); system.out.println("connected!"); bufferedreader br = new bufferedreader(new inputstreamreader(hp.getinputstream())); string line = ""; while( br.ready() && (line=br.readline()) != null) { //dumps request header. system.out.prin...

wireless - Scapy Sniffer - Receiving RSSI -

i interested in getting rssi values if aps using scapy sniffer. using sig_str = -(256-ord(packet.notdecoded[-4:-3])) rssi values. however, getting -256 aps. notdecoded part 0. please me figure 1 out? ps: have referenced relevant post. https://stackoverflow.com/a/34118234/4804221 tia!

machine learning - How to apply RNN to sequence-to-sequence NLP task? -

i'm quite confused sequence-to-sequence rnn on nlp tasks. previously, have implemented neural models of classification tasks. in tasks, models take word embeddings input , use softmax layer @ end of networks classification. how neural models seq2seq tasks? if input word embedding, output of neural model? examles of these tasks include question answering, dialogue systems , machine translation. you can use encoder-decoder architecture. encoder part encodes input fixed-length vector, , decoder decodes vector output sequence, whatever be. encoding , decoding layers can learned jointly against objective function (which can still involve soft-max). check out this paper shows how model can used in neural machine translation. decoder here emits words 1 one in order generate correct translation.

asp.net mvc - How can I persist a check box list in MVC -

i'm trying build html helper creating list of checkboxes, have check state persisted using sessions. works part, remembering check box states when check , uncheck various boxes , click submit. however, if have boxes checked , submitted, , go , clear checkboxes , resubmit (when cleared) - seems want remember last selections. here i've written... [homecontroller] public actionresult index() { testviewmodel tvm = new testviewmodel(); return view(tvm); } [httppost] public actionresult index(testviewmodel viewmodel) { viewmodel.sessioncommit(); return view(viewmodel); } [index view] @model testapp.models.testviewmodel @{ viewbag.title = "index"; } @using (html.beginform()) { <p>checkboxes:</p> @html.checkedlistfor(x => x.selecteditems, model.checkitems, model.selecteditems) <input type="submit" name="submit form" /> } [testviewmodel] // simulate checklist data source public dic...

list - Comparing tuple contents with int in python -

a = [(0, "hello"), (1,"my"), (3, "is"), (2, "name"), (4, "jacob")] this example of list, when try this doesn't work: if time < a[3]: print ("you did it!") the problem can't apparently compare tuple int, want compare first number in tuple. how can this? this? if time < a[3][0]: # ^ print ("you did it!") you can index tuple same way did list.

sql - How to retrieve the last id value before i "count" a column in mysql? -

when select values of 2 tables select tab.id ,tab.name ,tab2.id ,tab2.name ,count(distinct tab3.id) totalusers master tab left join user tab2 on tab.id = tab2.cod left join user tab3 on tab.id = tab3.cod tab.id = 5 limit 1 order tab2.id desc or select tab.id ,tab.name ,tab2.id ,tab2.name ,count(tab2.id) master tab left join user tab2 on tab.id = tab2.cod tab.id = 5 limit 1 order tab2.id desc i got + ------ + -------- + ------- + --------- + ------------------ + | tab.id | tab.name | tab2.id | tab2.name | count(tab3.id) | + ------ + -------- + ------- + --------- + ------------------ + | 5 | home1 | 132 | joao | 3 | + ------ + -------- + ------- + --------- + ------------------ + but tab2.id retrieve first value of table, order doesn't works when count value, how last key 134 , name ? users + ---- + ----- + --- + | id | name | cod | + ---- + ----- + --- + | 132 | joao | 5 | + ...

java - How to preserve Vaadin Tree container items order? -

i have vaadin 7 tree hierarchicalcontainer contains items in order (reordered through .moveaftersibling() . when try id collection them order have inserted, not order shown. i have checked both container.getitemids() , .firstitemid() / .nextitemid() . both not match order see on screen. what do wrong way? after looking hierarchicalcontainer source have figured how .moveaftersibling() works. remedy root elements list: container.rootitemids()

Rails: How to initialize instance variable in new action -

i have 2 models post , comments. class post < activerecord::base has_many :comments end class comment < activerecord::base belongs_to :post end my form creating new comment below <%= form_for @comment , :url => post_comments_path(params[:post_id]) |f| %> <%= f.text_area :title %> <%= f.submit "add comment" %> <% end %> i having confusion new action of above form. in new action can initialize @comment instance variable below 2 ways. @comment = comment.new or @post = post.find(params[:id) @comment = @post.comments.build(set_params) my question difference between comment.new , @post.comments.build(set_params). the latter preferred, because set post_id on comment.

How to generate jQuery DataTables rowId client side? -

the jquery datatables reference shows example of setting rowid option column data source (server side). setting used "select" extension , retaining row selection on ajax reload . is there way generate row identifier value 1) client side, or 2) combination of multiple columns data source? example data source: { "data": [ { "aid": 5421, "bid": 4502, "name": "john smith" } } code: $("#datatable").datatable({ select: true, //rowid: "aid" each row id value of "aid" column // e.g., <tr id="5421"> //rowid: 0 each row id value of 0-indexed column // e.g., <tr id="5421"> (same above) rowid: [0, 1] // how? row id combined value of 2+ columns // e.g. <tr id="5421-4502"> rowid: "random" // how? random generated client-side id ...

gcc - clang rejects a template `/` operator but gnu c++ accepts it -

in context of unit management scientific programming, managing following class: template <class unitname> class quantity { double value; public: quantity(double val = 0) : value(val) {} quantity(const quantity &) {} quantity & operator = (const quantity &) { return *this; } double get_value() const noexcept { return value; } operator double() const noexcept { return value; } template <class srcunit> quantity(const quantity<srcunit> &) { // here conversion done } template <class srcunit> quantity & operator = (const quantity<srcunit> &) { // here conversion done return *this; } template <class tgtunit> operator tgtunit() const { tgtunit ret; // here conversion done return ret; } template <class u, class ur> quantity<ur> operator / (const quantity<u> & rhs) const { return quantity<ur>(value / rhs.value); } }; alth...

oop - General purpose immutable classes in C# -

i writing code in functional style in c#. many of classes immutable methods returning modified copy of instance. for example: sealed class { readonly x x; readonly y y; public class a(x x, y y) { this.x = x; this.y = y; } public setx(x nextx) { return new a(nextx, y); } public sety(y nexty) { return new a(x, nexty); } } this trivial example, imagine bigger class, many more members. the problem constructing these modified copies verbose. of methods change 1 value, have pass all of unchanged values constructor. is there pattern or technique avoid of boiler-plate when constructing immutable classes modifier methods? note: not want use struct reasons discussed elsewhere on site . update: have since discovered called "copy , update record expression" in f#. for larger types build with function has arguments default null if not provided: public sealed class { public...

php - How to open a remote resource with fsockopen and allow_url_fopen disabled, no socket (extension) support, and no cURL support? -

in php application wrote, have access remote resource (i.e. url) in possible situations/server configurations. have consider combination of configuration options. so question is: how open remote resource fsockopen , allow_url_fopen disabled, no socket (extension) support, , no curl support? is there other alternative? there seems no way open remote resource via http following conditions: fsockopen disabled allow_url_fopen disabled no support socket extension no support curl extension the solution either provide files via other means (ftp (via php or manually), etc) or require server administrator relax security (for example remove fsockopen disabled functions list.

classification - caffe with multiple instance learning -

i familiar caffe image classification, convolutional networks segmentation, etc. not sure how implement multiple-instance learning caffe different instances (e.g image regions) have updated differently. could give me sample code multiple-instance learning caffe, in matlab or python? since know caffe, recommend article: instance-aware semantic segmentation via multi-task network cascades code project on author's github site this project got amazing results in of important instance segmentation competitions.

Upgrade from JUnit 4 to JUnit 5 in intellij with gradle -

i want convert gradle project test junit 4 junit 5. there lot of tests, don't want convert them @ same time. i try configure build.gradle this: apply plugin: 'java' compiletestjava { sourcecompatibility = 1.8 targetcompatibility = 1.8 } repositories { mavencentral() } dependencies { testcompile("junit:junit:4.12") testcompile 'org.junit.jupiter:junit-jupiter-api:5.0.0-m2' testruntime("org.junit.vintage:junit-vintage-engine:4.12.0-m2") testruntime 'org.junit.jupiter:junit-jupiter-engine:5.0.0-m2' } old test still running, intellij didn't recognize new junit 5 test one: import org.junit.jupiter.api.test; import static org.junit.jupiter.api.assertions.asserttrue; public class junit5test { @test void test() { asserttrue(true); } } i'm using intellij 2016.2 gradle 2.9 currently intellij idea supports junit5. take @ nice article integrating junit5 idea: using ...

Writing in an Excel file from VB.net when you don't know the range name -

i want write excel using row/column numbers instead of range names. way i've found .cells property error 0x800a03ec when try use it. tried simplify as possible figure out how make work. code bellow works "test1" , error when tries write "test2". i'm running excel 2016 , latest version of visual studio on w10 dim xlapp new excel.application dim xlworkbook excel.workbook dim xlworksheet excel.worksheet xlworkbook = xlapp.workbooks.add xlapp.visible = true xlworksheet = xlworkbook.sheets("sheet1") xlworksheet .range("a1").value = "test1" .range(.cells(8, 8)).value = "test2" end can me figure out how fix or knows alternative method ? .range(.cells(8, 8)).value = "test2" take out .range(). line needs is: .cells(8,8).value = "test2"

unit testing - What are the differences between to.equal(true) and to.be.true? -

i'm learning mocha , chai. i try understand when have use to.equal(true) or to.be.true want know better situation each. thanks! my understanding docs .to , .be , various other pieces of expect/should syntax syntactical sugar, no real functionality. so .to.be.true === .true , .to.equal(true) === .equal(true) . difference, if any, between .true , .equal(true) -- , there isn't difference; .true syntactical shorthand .equal(true) .