Posts

Automatically adding file locations (pictures) to an Access database via PowerShell or Python -

i have microsoft access database, , pictures have file names matching entries in database (though part of file name irrelevant). need read file names , insert links them database attached correct entries. i've been playing around powershell , python while, have little experience access , can't find lot of documentation on subject. questions are: am better off using powershell, python, or else project? happen have experience 2 languages they're preferred jumping off point. i imagine take amount of work , don't mind getting hands dirty/doing lot of research, after looking around can't seem find place started. there specific commands, documentation, functions, etc. give me jumpstart on project? thanks! edit: @ako bringing point , concerned about. putting photos in db bad idea, i'd instead host them elsewhere automatically have links files generated in db based on file names , matching db entries.

stata - Check if varlist contains factor variables? -

i trying check if varlist in program contains factor variables. follow recommendation statacorp in page ( http://www.stata.com/support/faqs/programming/factor-variable-support/ ). suggested codes are: syntax varlist(fv) local fvops = "`s(fvops)'" == "true" | _caller() >= 11 if `fvops' { // within loop, can expand factor variable list, // create local version control , perform other // steps needed factor operated varlists } nevertheless, appears me macro s(fvops) not check existence of factor variables in varlist . simple example illustrate: capture program drop test_fvops program test_fvops syntax varlist(fv) local fvops = "`s(fvops)'" == "true" | _caller() >= 11 qui reg `varlist' if `fvops' { di "factor variables specified" } else { di "factor variables not specified" } end sysuse auto,clear test_fvops price mpg foreign weight i.rep78 test_fvops price mpg foreign we...

WASAPI Exclusive Event Driven skip detection -

i have app uses wasapi exclusive event driven mode. microsoft example code not far i'm doing. have problem if cpu taxed enough, skip on 1 of 3ms buffers supposed write. in exclusive event driven mode, there appears no way check write cursor. in shared mode, getcurrentpadding(), nothing exclusive mode. there no way know whether got behind or skipped ahead or whatever. saw capture, there audclnt_bufferflags_data_discontinuity flag. there similar iaudiorenderclient? when call getbuffer(), how know play cursor position pointer corresponds to? seems surprisingly easy out of sync without knowing it. watch clock , error out if funny happens, want more deterministic. want know sure missed buffer before barf out user.

c# - Can't add selenium ide extension to webdriver -

any suggestion why code below not adding extension? firefoxprofile profile1 = new firefoxprofile(); profile1.addextension(@"c:\\downloads\\selenium-ide-2.5.0.xpi"); iwebdriver driver1 = new firefoxdriver(profile1); the same code working fine firebug add-on. think there compatibilty error latest firefox. tried install 2.0.0 version of selenium ide didnt help. it might help.... file file = new file("firebug-1.8.1.xpi"); firefoxprofile firefoxprofile = new firefoxprofile(); firefoxprofile.addextension(file); firefoxprofile.setpreference("extensions.firebug.currentversion", "1.8.1"); // avoid startup screen webdriver driver = new firefoxdriver(firefoxprofile);

python - Django REST Framework: return 404 (not 400) on POST if related field does not exist? -

i'm developing rest api takes post requests brain-dead software can't patch or else. posts update model objects exist in database. specifically, i'm posting data objects related field (a slugrelatedfield, poster knows 'name' attribute not 'pk'). however, need return 404 if poster sends data 'name' returns nothing on slugrelatedfield (e.g. related object not exist). i've been through debugger seems drf uses django signals magic way drf it™, return 400 bad request. don't know how modify - only when it's above condition , not true 400-worthy post - 404. by way, pre_save() in view not executing during execution of failing test. here's serializer: class characterizationserializer(serializers.modelserializer): """ work-in-progress django-rest-framework use. handles (de)serialization of data characterization object , vice versa. see: http://www.django-rest-framework.org/tutorial/1-serializati...

iCloud key value pair entitlement issues -

when tried uploading got following errors invalid code signing entitlements. application bundle's signature contains code signing entitlements not supported on ios. specifically, key 'com.apple.developer.icloud-containter-identifiers' in 'payload/appname.app/appname' not supported invalid code signing entitlements. application bundle's signature contains code signing entitlements not supported on ios. specifically, key 'com.apple.developer.icloud-containter-development-identifiers' in 'payload/appname.app/appname' not supported invalid code signing entitlements. application bundle's signature contains code signing entitlements not supported on ios. specifically, key 'com.apple.developer.icloud-services' in 'payload/appname.app/appname' not supported invalid code signing entitlements. application bundle's signature contains code signing entitlements not supported on ios. specifically, key 'com.apple.develope...

beautifulsoup - How to search by name attribute? -

i'm trying find input element <input id="telephone" name="telephone"> . tried soup.find('input', name='telephone') , didn't find it. soup.find('input', id='telephone') works fine. think problem 'name' has 2 meanings, name of tag , name attribute. so, how can search name attribute? obviously in example can search id attribute, that's not there in actual predicament. im not sure wrote. soup.find('input', name='telephone'); would try use this? soup.find('input[name="telephone"]'); hope works.