Posts

How to construct a full-text search predicate for SQL Server 2008 -

i want search full-text column following 2 terms: 2011 j vineyards where construct predicate as "2011*" , "j vineyards*" no rows returned. a record should match is 2011 j vineyards viognier alexander valley united states after experimentation, seems related single "j" character. edit: here select statement full-text column beveragesearchdata. declare @test nvarchar(100); set @test='""2011*" , "j vineyards*"'; select * bv_beverage contains (beveragesearchdata,@test) there couple of possibilities going on here. full query , not predicate better answer. one thing going on sql full-text search eliminates single characters (as in j) when building index. if using contains , may need change noise file , restart sql server fulltext search service. if using like , may able try adding additional single character wildcard. play , see if works without 2011 , add in. where mycolumn 'j_vineyards%' mycolumn ...

sitemap - How to create left navigation using asp.net Menu control with label in between links? -

Image
i have left navigation menu have 3 asp.net menu controls 3 sitemaps below is possible achieve using 1 sitemap , 1 menu control ? sitemap - how create left navigation using asp.net menu control label in between links? - stack overflow stack overflow questions developer jobs documentation beta tags users current community help chat stack overflow meta stack overflow communities sign up or log in customize list. more stack exchange communities company blog tour start here quick overview of site center detailed answers questions might have meta discuss workings , policies of site learn more stack overflow company business learn more hiring developers or posting ads log in sign up learn, share, build each month, on 50 million developers come stack overflow learn, share knowledge, , build careers. join world’s largest developer community. s...

oauth - Having trouble with the oauth_verifier for offline use in simple linkedin php -

disclaimer, please pardon grammatical syntax. i'm using simple linkedin php library offered on linkedin's site. have followed instructions , have collected users oauth-token , oauth-secret. 2 pieces of information have been stored in database. know how make offline oauth call, im having trouble finding more information on oath-verifier. code have far. include('../../php/linkedin/linkedin_3.2.0.class.php'); include '../../php/global.settings.php'; $api_config = array( 'appkey' => linkedin_app_key, 'appsecret' => linkedin_app_secret, 'callbackurl' => null ); $linkedin = new linkedin($api_config); $linkedin->request_token = "4e1e5ede-1de4-4eba-ba33-d3d37cbe67ff -fake"; $linkedin->access_token = "82b2c333-1075-441b-a51f-657196bf507w -fake"; $search_response = $linkedin->search("?company-name=facebook&count=10"); var_dump($search_response); temporarily i'm inserting keys on own trying...

c# - How to check if string will fire “A potentially dangerous Request.Form value was detected…” error -

similar this question don't care characters will/won't cause error fire. i'm more curious method can call, check myself, if current string fire above error message. to give bit of background, i'm creating random passwords when user forgets theirs , needs reset. unfortunately, random password generator "accidentally" created 1 &# in recently. caused page break when user tried login it. as mentioned in plenty of posts around topic, validaterequest=false (or <httpruntime requestvalidationmode="2.0" /> .net 4.0) can used turn off .net checking these exploits, don't see reason lose layer of security when i'm 1 creating string in first place. , telling random generator re-randomize on incomplete list ( < , &# , etc) doesn't seem cleanest solution i'd use same method of checking .net using. microsoft's explanation of exploits in question , being done guard against them here . this guy talks finding function cal...

linux - replay bash session with correct time delay -

edit ( seems important, goes on top, see below details) : need script execute commands, not display recorded ! script utility not far know. auto hotkey, bash , linux, timing information recorded. the question : i record , replay bash session, exact time delay between key presses , on. for instance, if run program called xxx , break ctrl+c after 11.4s , run program called yyy 3.4s after exited xxx , replay same (break xxx ctrl+c after 11.4s, wait 3.4s , run yyy ). i don't need record mouse movements, interested in recording happens in single bash session. i have looked utilities as script (it records bash session commands, no time delay info.) xmacro (it records key presses again no time info.) a person searching similar might want this (i including link because of possible value other users; don't find of solutions mentioned useful want achieve.) script -t standard answer. i rewrote script in python, can find here: http://stromberg.dnsalias.org/~strombrg/pyp...

dictionary - Comparing values of different python dictionaries with different keys & structures -

this more of theoretical question anything. have 3 dictionaries have different structure/keys values may same. e.g. dict1 = {u'd':{u'results':[{u'number':'1', u'dispurl':u'www.site.com'}, {u'number':u'2', u'dispurl':u'www.othersite.com'}] }} dict2 = {u'result_page':{u'url':u'www.greatsite.com', u'pos':u'1'}, {u'url':u'www.site.com', u'pos':u'2'}} dict3 = {u'hits':[{u'displayurl':u'www.othersite.com', u'index':u'1'}, {u'displayurl':u'www.site.com', u'index':u'2'}] } note how dict1 has {u'd': before {u'results': , dict1 , dict3 have different key/values enclosed in square parentheses. note how keys/values layout different in dict1 number key coming before url instead of after in dict2 , dict3 , key names being different in each dictionary. ...

javascript - What does the jQuery function $('#myelement').is('*') do? -

what following code do: $('#myelement').is('*') what asterisk signify? since there 1 element, #myelement , can't understand point of using is() , checks if element matches set of elements? this existential javascript. $('#myelement').is('*') it fail whenever #myelement doesn't exist, , return true otherwise.