Posts

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?