Posts

Showing posts from July, 2012

language agnostic - How to look up a word's variations in a dictionary? -

part of i'm trying implement requires me list of words in dictionary (a map keys words , values definitions). this: ... fisherman | person fishes apple | red juicy fruit computer | oversized calculator ... say have word "fisherman". far good: i'll use functions offered whatever language i'm using retrieve definition dictionary. the problem, however, arises when need search "fishermen", or "apples", or "computers". lookup these words should yield same value singular counterparts. would lehevenstein distance work? online dictionaries use? tried stemming, looks me yield off results (e.g. 'fish' in place of 'fisherman'), , i'm worried lehevenstein distance same. i know there must solution of sort, because time ago stumbled across online api latin lookup did this. , online dictionaries can it. it important such solution workable in languages other english. it's worth, i'm interested in fren

bash - Calculating mean from values in columns specified on the first line using awk -

i have huge file (hundreds of lines, ca. 4,000 columns) structured this locus 1 1 1 2 2 3 3 3 exon 1 2 3 1 2 1 2 3 data1 17.07 7.11 10.58 10.21 19.34 14.69 3.32 21.07 data2 21.42 11.46 7.88 9.89 27.24 12.40 0.58 19.82 and need calculate mean values (on each data line separately) same locus number (i.e., same number in first line), i.e. data1: mean first 3 values (three columns locus '1': 17.07, 7.11, 10.58), next 2 values (10.21, 19.34) , next 3 values (14.69, 3.32, 21.07) i have output this data1 mean1 mean2 mean3 data1 mean1 mean2 mean3 i thinking using bash , awk... thank advice. if me, use r , not awk : library(data.table) x = fread('data.txt') #> x # v1 v2 v3 v4 v5 v6 v7 v8 v9 #1: locus 1.00 1.00 1.00 2.00 2.00 3.00 3.00 3.00 #2: exon 1.00 2.00 3.00 1.00 2.00 1.00 2.00 3.00 #3: data1 17.07 7.11 10.58 10.2

image - Tensorflow Inception Basics -

i new tensorflow , inception wondering how training last layer of inception can me categorize images of different flowers. questions start me understanding basics such as: 1.what numerical values in bottleneck text file each .jpg image represent , how created? 2.how softmax layer of inception use these bottlenecks generate accuracy?

c++ - Using make_shared with char[] or int[] -

can tell me if works in vs2015 ? shared_ptr< char> buffer( make_shared< array< char,10>>() , [] (char *p){delete[] p; } ); or shared_ptr< char> buffer( make_shared< array< int,10>>() ,default_delete< int[]>()); visual studio 2015 doesn't support c++17 standard. prior c++17 standard can't have std::shared_ptr<t[]> pointer. in c++17 std::make_shared function doesn't support array types have use boost::make_shared instead. alternative use unique pointer in combination std::make_unique support array types. again might not idea pointed out scot meyers in "effective modern c++" book: the existence of std::unique_ptr arrays should of intellectual interest you, because std::array, std::vector, , std::string virtually better data structure choices raw arrays.

sql - Trying to show datediff for specific category -

how show or unshow datediff specific category? have datediff(day, displaybegindate, getdate()) <= 60 and shows items categories. what should add if want show categories except categoryid 353? thanks. select * table datediff(day, displaybegindate, getdate()) <= 60 , categoryid<> 353

Excel VBA Loop to fill column based on column header -

Image
so have pivot table updated sql database everyday. want highlight whole section days >5, since data updated daily, conditional formatting not work. created dynamic range (see below), need run loop find column 29 (where days next name) greater 5 need below highlighted in red attachment shows. or suggestions? know pretty complex. code: sub dynamicrange() 'disable excel featured whilst macro running application.calculation = xlcalculationmanual application.enableevents = false application.screenupdating = false 'declare variables dim startcell range, lasrow long, lastcol long, ws worksheet 'set objects set ws = sheet4 set startcell = range("n30") 'find last row , column of data lastrow = ws.cells(ws.rows.count, startcell.column).end(xlup).row lastcol = ws.cells(startcell.row, ws.columns.count).end(xltoleft).column 'select dynamic ramge of data ws.range(startcell, ws.ce

MySQL Auto Upgrade Old Password -

i'm wanting upgrade older server php 5.6 mysqlnd, not going accept mysql "old" passwords. possible configure mysql or php mysql driver automatically upgrade 16-char password upon successful login 41-char format? logically speaking, this: login -> good. old password? -> upgrade update mysql.user set password = password('password_just_used_to_auth') user = 'current_user' limit 1; ... [ few days later ] ... upgrade php 5.6 when no 16-char passwords remain. or recourse hunt through web apps mysql passwords , upgrade them manually?

reactjs - React-router Link changes URL but doesn't rerender -

i'm using mobx render orders react , react-router. when i'm using link url changes, view doesn't rendered. when refresh page, view should be. searched while , found here mobx observer blocks rerendering because uses shouldcomponentupdate. tried using location method, because prop changes , should trigger re-render, doesn't seem help. i tried use withrouter, didn't manage implement decorator. update in this thread it's said decorators breaking react-router? using withrouter fixes them, still not know how should implement code... index.js reactdom.render(( <provider {...stores}> <browserrouter> <app location={location} /> </browserrouter> </provider> ), document.getelementbyid('root') ); app.js import react 'react'; import {switch, route, withrouter} 'react-router-dom'; import {order} './components'; import {allorders} './containers'; import {inject, observ

android - how to insert multiple check box in web service codeigniter? -

i've created web service in codeigniter. here controller: public function insertsebab(){ $id=$this->input->post('id_konsultasi'); $sebab=$this->input->post('kd_sebab'); $data = array( 'id_konsultasi' =>$id, 'kd_sebab' => $sebab, ); $konsultasi = $this->class_model->insertsebab($data); if(count($konsultasi) > 0 ){ $json["status"] = "success"; $json["message"] = "data berhasil di simpan"; $json["data"] = (object) array(); } else{ $json["status"] = "gagal"; $json["message"] = "no data found in database"; $json["data"] = (object) array(); } echo json_encode($json); } the code above explains how insert data more 1 in checkbox,but data save one. checkbox so,how create insert multiple check box in web servi

Error when trying to find minimum of java code with no known amount of integers -

i have make code takes in unknown amount of user input integers, finds min , max, , finding average of integers. have far. package hw2_min_max; import java.util.scanner; public class hw3 { public static void main(string[] args) { scanner myscanner = new scanner(system.in); system.out.println("please input first interger"); int number=0; //number store number of inputs int i=1; //i store current iteration int sum=0; //sum store sum of input int x=0; //x store user input int min=x, max=x; number = myscanner.nextint(); if(x>=0) while (x >= 0){ system.out.println("please input next positive interger "); x = myscanner.nextint(); sum = sum + x; number = number++; if (x >= max) max = x; if (x <= min) min =x; i++; }

javascript - How to resolve express server's dependencies after building to dist/ -

i use webpack bundle front end assets , put them in dist directory. there express server serve index.html html-webpack-plugin generates , deposits in dist . express server requires few node modules, express, body-parser, moment, etc. there no node_modules in dist though however, falls @ first hurdle when express cannot found. should make separate package.json little express server , keep within dist , , put npm install on separate line of dockerfile (seems little complex...) or there better way server resolve dependencies after webpacking? dockerfile from node:8.4.0-alpine workdir /opt/app copy ./node_modules node_modules copy ./dist . expose 6500 entrypoint ["node", "server.js"] line 5 is temporary attempt see if moving node_modules app root allow server run. of course includes express , body-parser, react , webpack-dev-server. you copying npm modules local system (most likely) alpine instance, different os not going compatible.

switching active div class in loop jquery -

i have part of code <div class="container"> <div class="item active">item</div> <div class="item">item</div> <div class="item">item</div> <div class="item">item</div> <div class="item">item</div> <div class="item">item</div> </div> and need switch active class next element after delay , loop switching last element first. how can ? you need use setinterval( ) method. loop items use addition modulus of items quantity. run snippet below see result. var navs = $(".container > .item"); setinterval(function(){ var cur = $(".container > .active").index(); var nxt = (cur + 1) % navs.length; navs.eq(cur).removeclass("active"); navs.eq(nxt).addclass("active"); }, 1000); .item { display: inline-block; height: 100px; width: 100px;

perl - How to pass through redirect page by clicking button in html -

Image
i create perl scripts information website. webpage not redirect , need click continue myself redirect it. can using perl? #!/usr/bin/perl -w use feature ':5.10'; use strict; use warnings; use lwp::useragent; use http::request; use http::request::common qw(post); use http::cookies; use cacertorg::ca; $env{perl_lwp_ssl_verify_hostname} = 0; $outfile="out.html"; $url="http://www.example.com; $ua = lwp::useragent->new(); $ua->ssl_opts( ssl_verify_mode => 'ssl_verify_none', verify_hostnames => 0, ssl_ca_file => cacertorg::ca::ssl_ca_file() ); $ua->cookie_jar(http::cookies->new(file => 'cookie_jar', autosave =>1)); $req =http::request::common::post("$url", content_type=>'form-data', content =>[ 'username'=>'user', 'password'=>'pass', 'vhost'=>'standard' ] ); $req->header('cook

Trying to pull data from an API to Excel by reference to a string I type in cell -

was trying pull stocks data api excel using below vba. working if input string directly in url once tried reference stock number cell in sheet, stops working. below vba using: sub incomeapi2() activesheet.querytables.add(connection:= _ "url ; https://www.quandl.com/api/v3/datasets/rb1/" & activesheet.range("d4") & "0288_income.csv?start_date=2016-12-31&end_date=2016-12-31&api_key=xxxxxxxxxxxxxx" _ , destination:=range("e4")) .name = false .fieldnames = false .refreshstyle = xlinsertdeletecells .rownumbers = false .filladjacentformulas = false .hasautoformat = true .refreshonfileopen = 1 .backgroundquery = false .tablesonlyfromhtml = true .savedata = true .refresh backgroundquery:=false .uselistobject = false end range("e4:e5").select selection.texttocolumns destination:=range("e4&qu

javascript - Grab all html tags from string including their content (Regex Only) -

i trying html tags, without exception, string. clarify, needs strictly string only, without converting html object. created 1 regex grabs the tags without content. var text = '<div class="mura-region-local"><p>in october 2010, lisa , eugene jeffers learned daughter jade, 2 , half years old, has autism. diagnosis felt double whammy. parents engulfed stress juggling jade’s new therapy appointments , wrangling health insurance provider, had infant son worry about, too. autism runs in families. bradley follow in big sister’s footsteps?</p></div><img href=""/>' var match = text.match(/<?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[\^'">\s]+))?)+\s*|\s*)?>/g); console.log(match); you can't find pairs of <smth>...</smth> possible tags. can't make regex recognize taga inside tagb , tagb in taga tags, too. must write these combinations directly, , makes such re

c++ - Perfomance Impact of Nested Vectors vs. Contiguous Arrays -

have there been reliable tests display performance differences between accessing , writing nested vectors versus c++'s built-in arrays? i've heard using nested (multi-dimensional) vectors typically have performance overhead compared accessing elements in single array (where elements stored in contiguous memory), seems hypothetical me. have yet see tests show these differences. significant? i'm sure depends on scenario, inexperienced programmer, i'm not quite sure @ level these differences become significant. it depends on scenario, extent don't think it's possible answer in general way approach fastest. fastest approach going 1 access patterns have best data locality - depends highly on access pattern how structures laid out in memory, in case of nested vectors dependent on allocator , varies quite bit between compilers. i'd follow general rule of optimization, first write things in straightforward way , attempt optimization when can prov

swift - How to Check the 'Equatable' protocol is implemented? -

if let equatableobj = newfirstitem as? equatable { // } error message: error:(140, 64) protocol 'equatable' can used generic constraint because has self or associated type requirements how solve it?

javascript - chart.js renders outside div and canvas -

my charts rendering correctly, overlapping on same spot , change between depending on mouseover (both graphs in same position though canvas , div elements not). here images show div , canvas locations: canvas 1 canvas 2 i not familiar css used tutorial snippets temporary layout before begin change style , colours, need on positioning these elements correctly. here html code: <div id="awp" class="tabcontent"> <div class="dropdown"> <button onclick="dropmenu(1)" class="dropbtn">choose dates</button> <div id="mydropdown1" class="dropdown-content"> <a id="2016" onclick="adddata(mychart, 'check' , 2)">last 3 months</a> <a id="5m" onclick="removedata(mychart)">test 3</a> <a id="testnew">bye bye</a> <a id = "2015&q

Android SDK Manager does not exist -

Image
i downloaded android studio , installed in win 7, , went fine. however, not have sdk manager in folder supposed be. here snapshot. idea? there no folder named "sdk manager". in order start developing need install platform tools , atleast 1 version of android using sdk manager. where find sdk manager? open android studio hope helps :)

Database backup in PostgreSQL from R -

i'm using rpostgresql package read/write postgresql r works fine. however, while trying automate backup process error when following: dbsendquery(con,"pg_dump my_db > my_db_backup.sql") error: error in postgresqlexecstatement(conn, statement, ...) : rs-dbi driver: (could not retrieve result : error: syntax error @ or near "pg_dump" line 1: pg_dump my_db > my_db_backup.sql is possible create backup , restore database postgresql r?

python - How do you insert 3 lines' data into MySQL table (which has 10 lines) after its 5th line? -

why this: in fact create mysql table save data(open price, close price ,high price , on) of 3000 stocks; many days after created it, should update new data; should insert data after lines; yes create 1 table 1 stock, when read out them, time wasted.

c# - Windows IoT on RaspberryPi. Error while opening serialPort using SerialDevice.FromIdAsync() -

Image
i having issue communication velleman vm116/k8062. usb dmx converter controlling light fixtures. when looking device ids this var vid_selector = serialdevice.getdeviceselectorfromusbvidpid(0x10cf, 0x8062); var vid_devices = await deviceinformation.findallasync(vid_selector); i retreive generic device, named "minwinpc", nothing else. if use ushort vendorid = 0x10cf; ushort productid = 0x8062; ushort usagepage = 0x00ff; ushort usageid = 0x0001; var hid_selector = windows.devices.humaninterfacedevice.hiddevice.getdeviceselector(usagepage, usageid, vendorid, productid); var hid_devices = await deviceinformation.findallasync(hid_selector); i find device hid devices id \\?\hid#vid_10cf&pid_8062#6&a0b36c7&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} i can open connection using await hiddevice.fromidasync(serialdeviceid, windows.storage.fileaccessmode.readwrite); but dmx device works on strict clock pairing bytes, should (imo, maybe mistake is)

Get back Web page Likes -

i updated website due upgrades host (go daddy). i put script on updated page button. my site had on 1900 likes. when first launched updates social likes appeared usual, has gone zero. how likes back? i need assistance please, have tried delete script , re-post it, did not help. http://www.sandy-robson.com

parsing - How do you parse and process HTML/XML in PHP? -

how can 1 parse html/xml , extract information it? native xml extensions i prefer using 1 of native xml extensions since come bundled php, faster 3rd party libs , give me control need on markup. dom the dom extension allows operate on xml documents through dom api php 5. implementation of w3c's document object model core level 3, platform- , language-neutral interface allows programs , scripts dynamically access , update content, structure , style of documents. dom capable of parsing , modifying real world (broken) html , can xpath queries . based on libxml . it takes time productive dom, time worth imo. since dom language-agnostic interface, you'll find implementations in many languages, if need change programming language, chances know how use language's dom api then. a basic usage example can found in grabbing href attribute of element , general conceptual overview can found @ domdocument in php how use dom extension has been covered exte

c# - How to Save BBC RSS Feed with Images url into Database? -

i'm creating asp.net website showing rss feed bbc, i'm doing want m showing rss feed on asp:datalist problem dont want show feed directly xml document, want store firstly database , show website using datalist. older code is <asp:datalist id="datalist1" runat="server" datasourceid="xmldatasource1"> <itemtemplate> <div class="jumbotron"> <h2><%# xpath("title") %></h2> <br /> <h3><%# xpath("pubdate") %></h3> <br /> <h3><%# xpath("description") %></h3> <br /> <asp:repeater runat="server" id="_subitemsrepeater" enableviewstate="false" datasource='<%# xpathselect("media:thumbnail", xmlnamespacemanager) %>'> <itemtemplate> <img src="<%# ((system.xml.xmlnode)container.dataitem).attributes["url"].value %>" /> &

Slack API: how to reply to slash command as user? -

the giphy slack app sends message gif channel. workflow follows: user "john" uses slash command /giphy john clicks on interactive message button "send" a gif posted in channel user john how do that? how respond interactive message requesting user (as opposed app)? i know can post user using chat.postmessage api, requires knowing user token. there way retrieve when button pressed?

Does Elasticsearch reindex the documents automatically each time I update them -

i have social model users can photos. my photo document looks : { "id" : ... //indexed "url": ... "likes": .. //not indexed //other properties } my question is, long photo gets likes other users have update document. update make elasticsearch automatically reindex (knowing "likes" property not indexed in mapping) or it's done if indexed properties have changed? my concern performance here. document in elasticsearch immutable. updating document reindexing , consist of following steps: retrieve json (that want reindex) change it delete old document index new document elasticsearch documentation

sql - xml agg subquery in select statement taking long time to return data in oracle 12c? -

select ( select substr(rtrim(xmlagg(xmlelement(e, a2.action || ','||a2."date"|| ',' || a2."group",';') order a2.counter).extract ('//text()').getclobval(), ','),1,4000) test3 a2 a2.unique_key = c1."number" group c1."number" ) test_data test1 c1 left outer join test2 c2 on c1."number" = c2."number" ;

how to update view in Group in javaFX? -

i have graph this . want update view when change slider. however, elements stacked that when change slider. can new view. my app's structrue: circle , quadcurve -> group -> scrollpane -> borderpane -> scene -> stage this app demonstrates trying achieve. comments in code. main import javafx.application.application; import javafx.fxml.fxmlloader; import javafx.scene.parent; import javafx.scene.scene; import javafx.stage.stage; /** * * @author blj0011 */ public class javafxapplication6 extends application { @override public void start(stage stage) throws exception { parent root = fxmlloader.load(getclass().getresource("fxmldocument.fxml")); scene scene = new scene(root); stage.setscene(scene); stage.show(); } /** * @param args command line arguments */ public static void main(string[] args) { launch(args); } } controller import java.net.url;

php - Getting a syntax error, unexpected end of file error but cant seem to find error -

this question has answer here: php parse/syntax errors; , how solve them? 11 answers i keep getting parse error: syntax error, unexpected end of file error @ line 167. have gone through code many times , can't seem find i'm missing. i've checked of brackets , statements , don't find off. can error possibly #!/usr/local/bin/php -d display_errors=stdout <?php date_default_timezone_set('america/los_angeles'); $time_stamp = time(); $disp = $_get['time_stamp']; if($disp == "previous") $time_stamp -= 43200; else if($disp == "next") $time_stamp += 43200; $today = date("d, f j, y, g:i a",$time_stamp); $start_hour_offset = -3; $end_hour = 12; $table = "event_table"; $field1 = "person"; $field2 = "time"; $field3 = "event_title"; $field4 = "event_mes

ios - How to handle multiple selection for a UICollectionView, which changes data on swipe? -

i have uicollectionview on uiviewcontroller, changes data on swipe, has search. change array values , reload uicollectionview every swipes. when tried implement multiple selection, selection changes on scrolling. the code use is, func collectionview(_ collectionview: uicollectionview, numberofitemsinsection section: int) -> int { if searchison { return filteredteamnames.count } else{ return teamnames.count } } func collectionview(_ collectionview: uicollectionview, cellforitemat indexpath: indexpath) -> uicollectionviewcell { let cell = collectionview.dequeuereusablecell(withreuseidentifier: reuseidentifiertwo, for: indexpath indexpath) as! housecells cell.layer.maskstobounds = true cell.layer.cornerradius = 6 var singlecomponent = [string : string]() if searchison { singlecomponent = self.filteredteamnames[indexpath.item] } else {

python - How do I test one variable against multiple values? -

i'm trying make function compare multiple variables integer , output string of 3 letters. wondering if there way translate python. say: x = 0 y = 1 z = 3 mylist = [] if x or y or z == 0 : mylist.append("c") elif x or y or z == 1 : mylist.append("d") elif x or y or z == 2 : mylist.append("e") elif x or y or z == 3 : mylist.append("f") which return list of ["c", "d", "f"] is possible? you misunderstand how boolean expressions work; don't work english sentence , guess talking same comparison names here. looking for: if x == 1 or y == 1 or z == 1: x , y otherwise evaluated on own ( false if 0 , true otherwise). you can shorten to: if 1 in (x, y, z): or better still: if 1 in {x, y, z}: using set take advantage of constant-cost membership test ( in takes fixed amount of time whatever left-hand operand is). when use or , python sees each side of operator s

Perform sorting of array that contain alphanumeric elements php -

hi have array like $test = ['orange 2016','orange 2017' ,'mango 2018' ,'apple 2018' ,'apple 2015']; i have sort array array should descending order respect year.i tried different type of sorting.but fails.my expected result below $test = ['apple 2018','mango 2018','orange 2017','orange 2016' ,'apple 2015']; my code shared below $test = ['jan 2016','jan 2017' ,'dec 2018' ,'april 2018' ,'march 2015']; echo "<pre>"; print_r($test); echo "</pre>"; $n = count($test); for($i=0;$i<$n;$i++){ for($j=$i+1;$j<($n);$j++){ preg_match('#(\d+)$#',$test[$i],$year_one); preg_match('#(\d+)$#',$test[$j],$year_two); if($year_one[1] < $year_two[1]){ $temp = $test[$j]; $test[$j] = $test[$i]; $test[$i] = $temp; } if($year_one[1] == $

php - Social sharing icons missing from blog archive page 1 -

can me solve issues! site: bit.ly/2vdavqz have enabled add sharing icons code, not showing on first pagination, shows page 2,3,4, etc how solve ? this social sharing script not plugin code given addthis share <?php /** * template part displaying posts * * @link https://codex.wordpress.org/template_hierarchy * * */ ?> <article id="post-<?php the_id(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if ( is_single() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark" >', '</a></h2>' ); endif; if ( 'post' === get_post_type() ) : ?> <h4 class="meta text-muted"> <?php b

python - lxml: Element is not a child of this node -

i'm trying change value of title within following html document: <html lang="en"> <head> <meta charset="utf-8"> <title id="title"></title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <app-root></app-root> </body> </html> i wrote following python script uses lxml, in order accomplish task: from lxml.html import fromstring, tostring lxml.html import builder e html = fromstring(open('./index.html').read()) html.replace(html.get_element_by_id('title'), e.title('test')) but after running script, following error: valueerror: element not child of node. what's supposed cause error? thank you. the 'title' tag child of 'head' node. in code use replace on 'html' node, has no 'title' elements (not direct

monitoring - monitor kernel threads that are not bound to user processes -

how can know what's kernel charge threads not bound user processes ? (typically top command doesn't show) e.g.: routing purpose (forwarding nic1 nic2 (iptables config)) error handling (device generating bad/wrong irqs) task scheduling thanks in advance.

angular - Uncaught TypeError: Cannot set property 'length' of null at VirtualScroll.readUpdate -

i using simple ion-list ngfor display items in list in ionic 3 & working fine. used virtual scroll ion-list & getting following error: uncaught typeerror: cannot set property 'length' of null @ virtualscroll.readupdate code snippet: <ion-list [virtualscroll]="anarray" approxitemheight="50px"> <div *virtualitem="let arrayitem"> //other code array declaration: public anarray: any[]; in constructor: this.anarray = []; after network response: this.anarray = data.result;

linux - How to use Android ltrace tool to trace an app? -

i want use ltrace tool included in aosp trace closed source app. here did: i built aosp 6.0.1 nexus 5, using userdebug option. ltrace built default. i launched app (a game named minecraft). in adb shell, ran ltrace -p <pid> ltrace did not gave tracing output: root@hammerhead:/data/tmp # ps | grep minecraftpe u0_a52 5534 214 1132728 178176 sys_epoll_ b6cde894 s com.mojang.minecraftpe root@hammerhead:/data/tmp # ltrace -p 5534 can't open com.mojang.minecraftpe: no such file or directory couldn't determine base address of com.mojang.minecraftpe couldn't load elf object com.mojang.minecraftpe: bad file descriptor backend initialization failed. couldn't load elf object /system/bin/linker: bad file descriptor backend initialization failed. couldn't load elf object /data/dalvik-cache/arm/system@framework@boot.oat: bad file descriptor backend initialization failed. couldn't load elf object /data/app/com.mojang.minecraftpe-1/oat/arm/base.odex: b

compare two different workbooks and highlight differences excel vba -

so trying compare 2 different workbooks in excel vba. know application "compare spreadsheets" exist need general code. have looked lot in forum trying find solution no 1 match needs. what have: script that: askes user excelfile (file2) compare current file(file1). differences need highlighted in current file. i kind of beginner vba please gentle :) have code trying use works comparison of 2 sheets in same workbook. if got code job or me step further kind share code. or if have tips on how can make code down below match needs. alot!! `sub test() dim varsheeta variant dim varsheetb variant dim strrangetocheck string dim irow long dim icol long strrangetocheck = "a1:iv65536" ' if know data in smaller range, reduce size of ranges above. debug.print varsheeta = worksheets("sheet1").range(strrangetocheck) varsheetb = worksheets("sheet 1").range(strrangetocheck) ' or whatever other sheet is. debug.print irow = lbound(varsheeta,

printing - There isn't enough free memory to update the display. Close unneeded programs and try again. Access 2013 Report -

i'm developing database application in access 2013. operating system win10. have created report print receipt wp t800 thermal printer. can open report can't print or print preview report. when set "microsoft print pdf" default printer can open, save receipt pdf file or print preview receipt. when default printer wp t800 above error occurs. generally error message relatively accurate still vague enough bit unclear. bottom line there going on. advises - close stuff. instance if there other reports , forms open closed. test that. might have put in close commands them part of code opens new report. closing excess reports or forms easiest fix if works. more challenging extremely complex stack of queries record source report. in case need simplify - sorting occurs in report object eliminate queries make report's data source. if have lot of aggregate query action - might have consider writing results off temp table first step in order make query

wpf - Adding style to Dynamic Button -

i have adding button ui this: button objbtn = new button(); objbtn.content = "test"; grid.children.add(objbtn); how set style button <controltemplate x:key="orangebuttons" targettype="{x:type button}"> <grid> <border x:name="border" background="white" borderbrush="darkgray" borderthickness="2" cornerradius="5,5,5,5" width="auto" height="auto"> </border> <contentcontrol content="{templatebinding content}" width="auto" height="auto" verticalalignment="center" horizontalalignment="center" fontsize="15"/> </grid> <controltemplate.triggers> <trigger property="ismouseover" value="true"> <setter targetname="border" property="borderbrush" value="red"/> &l

handlebars.js - Express & res.render passing the template as string -

i perform res.render, instead of passing template file parameter this: res.render('index.hbs', { a: 'b' }); i able pass template string that: let template = '{{ }}' res.render(template, { a: 'b' }); the code above not working since res.render accepts file path/name. ideas how achieve this? you can render template first var handlebars = require('handlebars'); // set handlebars template var source = '{{ }}'; // compile template var template = handlebars.compile(source); // call template function, passing in data context var outputstring = template({ a: 'b' }); and send output client res.send(outputstring);

reactjs - IntelliJ and React which IDE/Texteditor should I choose -

i going develop web application react , want know ide/text editor fit best. intellij idea example supports framework webstorm. , want know if there differences between support of editors benefits implementing 1 of these 2 ides. as familiar idea use it, if there no important or nice feature missing compared webstorm. webstorms features subset of intellij ideas. won't miss might come webstorm , afaik intellij ship new features (updates) @ same time (or before) webstorm. further reading: can intellij idea encapsulate of functionality of webstorm , phpstorm through plugins? https://intellij-support.jetbrains.com/hc/en-us/community/posts/207461065-intellij-idea-ultimate-vs-webstorm

winforms - C# TreeViewAdv get selected node's value -

i using syncfusion's treeviewadv in multi column mode. i trying selected node's value (from first column) have not been successful. has been able this? many thanks edit: a quick update on how populating control private void refreshoptions() { list<string> objects = globals.thisaddin.utilities.listrobjectswithdetail(); stringbuilder name = new stringbuilder(100); stringbuilder details = new stringbuilder(200); node datarootnode = new node(); node dataparentnode = new node(); node datachildnode1 = new node(); node datachildnode2 = new node(); node datachildnode3 = new node(); node functionsrootnode = new node(); node functionsparentnode = new node(); int charlocation; int indexchild; int childlevel; treemodel _model = new treemodel(); treeviewadv1.model = _model; treeviewadv1.beginupdate(); datarootnode = new column