Posts

html - Keep drop down list scrollbar a fixed height -

html - Keep drop down list scrollbar a fixed height - i have 3 drop downwards lists varying amounts of items in them. possible maintain scrollable height fixed? e.g if have 3 items in 1 list , 8 items in list, when click on either list drop downwards part stays same height. @ moment drop downwards area of list 8 items much larger obviously. <select id="picdd1" > <option value="0">new leaf green</option> <option value="1">air forcefulness blue</option> <option value="2">grecian purple</option> <option value="3">antique gold</option> <option value="4">deep coral red</option> <option value="5">yellow</option> <option value="6">pink</option> <option value="7">grey</option> <option value="8">white</o...

wpf combobox event for 'item not found' -

wpf combobox event for 'item not found' - can know if text not compatible no iten in list <combobox iseditable="true" itemsource="..."/> there event or property determine if no item found textsearch you check selecteditem property on combobox , if null while changing, means there no match in list. here have little demo how work. xaml part: <window x:class="wpfapplication1.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" height="350" width="525"> <grid> <combobox itemssource="{binding itemssource, updatesourcetrigger=propertychanged}" iseditable="true" text="{binding typedtext, updatesourcetrigger=propertychanged}" height="36" verticalalignment=...

linux - Loop through api call in bash script -

linux - Loop through api call in bash script - i have api returns 50 users. is there way of looping through api call expand=users%5b1%3a50%5d the 1 after b starting number , pull until 50 number after a i have script store responses text file how can loop through adding increments of 50? for example. having variable in place of numbers expand=users%5b$num1%3a$num2%5d expand=users%5b{1..50}%3a50%5d the {1..5} expand 1 2 3 4 5 for illustration $ echo abc{1..5}def abc1def abc2def abc3def abc4def abc5def now need loop on expand for api in $expand #do done linux bash shell

SQL Server running totals (sum over order by) -

SQL Server running totals (sum over order by) - i looking "running totals" sql server. easy query. wrote this: select firstname, lastname, thetot, sum(thetot) on (order lastname) runningtot customers you'd think accurate running total output. not true. here's spit out: firstname lastname thetot runningtot billy bobthornton 0.01 4.46 billy bobthornton 4.45 4.46 bob hope 3.52 7.98 jimmy johnson 4.84 12.82 jason meyers 3.50 16.32 ted turner 1.77 18.09 is me or should first record's running 0.01 ? the self reply provided drastically changes semantics. in question calculating running total ordered firstname, arbitrarily switching order pk brings resultset answers exclusively different question. the reason resultset seeing documented in books online if rows/range not specified order specified, range unbounded preceding , current row ...

php - Pass the variable in regular expression within heredoc (MYSQL) -

php - Pass the variable in regular expression within heredoc (MYSQL) - i got parse error. passed variable in regular look within heredoc mysql query expression? $sql = <<<sql select name, full_code m_category full_code regexp '^00'.$var.'[0-9][0-9][0-9]$' order full_code asc sql; originally code was $sql = " select name, full_code m_category full_code regexp '^00".$var."[0-9][0-9][0-9]$' order full_code asc"; $sql = <<<sql select name, full_code m_category full_code regexp '^00{$var}[0-9][0-9][0-9]$' order full_code asc sql; please, read heredoc: http://php.net/manual/ru/language.types.string.php#language.types.string.syntax.heredoc php mysql

c# - what is the common practice in organizing PageMethods for Ajax calls -

c# - what is the common practice in organizing PageMethods for Ajax calls - i have been using pagemethods in develping asp.net c# applications long time. i realized have phone call same method different pages, , re-create , paste same method pages. this creates redundancy problems, know. would fine create separate *aspx pages hosting related pagemethods. what mutual practice in this? i recommend switch ajax-enabled wcf service. requires bit more configuration 1 time working 1 service can copy/paste another. @ point add together proxy js page , utilize pretty much same way utilize pagemethods. of course of study there multiple other ways ajax ajax-enabled wcf services drop-in replacement page methods... almost. c# asp.net ajax pagemethods

Convert string of strings to string array in LabVIEW -

Convert string of strings to string array in LabVIEW - is there way convert string of strings string array in labview. eg. "test hello yeh ok" becomes [0] = test [1] = hello [2] = yeh [3] = ok i'm working memory here, bear me. utilize convert spreadsheet string vi in strings palette. set delimiter space. arrays string labview