Posts

sql server - update existing column values and insert new in record doesn't exist in SQL when importing from CSV -

can please me on following? we have payroll software runs on sql server. have update payroll category sql server can reflect on software. this excel file: employee number payroll category rate ------------------------------------------ 111111 011 32.21 111111 012 56.23 111111 013 12.52 111111 021 45.21 111112 011 36.21 111112 012 56.23 111112 013 42.54 111112 021 85.21 these current values in database table masterpaycard employee number payroll category rate ------------------------------------------- 111111 011 0.00 111111 012 0.00 111111 013 10.25 111112 011 36.21 111112 012 12.50 111112 013 41.25 11111...

Doxygen docs for 'extern' variables in C -

i have extern variable in c code: /** * key. */ extern key_t key; however, according doxygen, style of documentation wrong: extern.h:29: error: parameters of member key not (all) documented (warning treated error, aborting now) what proper way of documenting extern variables?

java - Akka : How to assign an Actor an alias path -

i working on poc trying implement device server using akka java. same wondering how can create alias path symbolic link actor after actor created. i reading article ( http://doc.akka.io/docs/akka/snapshot/general/addressing.html ) blockquote in real file-systems there “symbolic links”, i.e. 1 actor may reachable using more 1 path, 1 involve translation decouples part of path actor’s actual supervision ancestor line; these specialities described in sub-sections follow. if can example great. that section of docs little misleading: fact cases actor may have multiple paths implementation detail, not mean aliases can created deliberately. in particular, remote deployment way can happen. so short answer is: in practice impossible.

beagleboneblack - Debian: jessie / sid -

perhaps silly question following mean i'm running sid? returned when running jessie non-sid? happens on beaglebone device. i'm asking because i'm working on new project , i'm concerned our devices have 'unstable' version of debian. $ cat /etc/debian_version jessie/sid

python - Scrapy installed, but won't run from the command line -

i'm trying run scraping program wrote in python using scrapy on ubuntu machine. scrapy installed. can import until python no problem , when try pip install scrapy requirement satisfied (use --upgrade upgrade): scrapy in /system/linux/lib/python2.7/dist-packages when try run scrapy command, scrapy crawl ... example, get. the program 'scrapy' not installed. what's going on here? symbolic links messed up? , thoughts on how fix it? i tried following sudo pip install scrapy , promtly advised ubuntu 16.04 installed. had first use sudo pip uninstall scrapy , sudo pip install scrapy install. should able run scrapy.

python - How to match strings with possible typos? -

i have multiple pdf converted text files , want search phrase might in files. problem conversion between pdf , text file not perfect there errors appear in text (such missing spaces between word; mix-up between i, l, 1's; etc.) i wondering if there common technique give me "soft" search, looks @ hamming distance between 2 terms example. if 'word' in sentence: vs if my_search('word',sentence, tolerance): you can use this: from difflib import sequencematcher text = """there 3rrors in text cannot find them""" def fuzzy_search(search_key, text, strictness): lines = text.split("\n") i, line in enumerate(lines): words = line.split() word in words: similarity = sequencematcher(none, word, search_key) if similarity.ratio() > strictness: return " '{}' matches: '{}' in line {}".format(search_key, word, i+1) p...

php - Typo3/TCA create new tab with fields of another tab inside -

i need in typo3/tca. im trying modify backend layout of extension, cant work. i try make context of "firma" new tab (see image). firma1 i fugured out context of "firma" defined in tca.php in $tca['tx_jobsystem_domain_model_job'] column 'address'. (l. 328 ): 'address' => array( 'label' => $languagefile . ':tx_jobsystem_domain_model_job.address', 'config' => array( 'type' => 'inline', 'foreign_table' => 'tt_address', #'foreign_field' => 'uid', 'symmetric_field' => 'address', 'appearance' => array( 'collapseall' => true, 'expandsingle' => true ) ) ), i did copy $tca['tx_jobsystem_domain_model_advertisement'...