Posts

How i fill combobox items in Radgridview manually using in vb.net -

how fill combobox items in radgridview manually without using datasource in vb.net have radgridview in form.(radgridview1) radgridview1 contained 3 column , column number 3 combobox type. want fill each combobox in column 3 data using code: unp ipe angle box other profile. don't know how it. you can use gridtemplatecolumn following. <telerik:gridtemplatecolumn itemstyle-wrap="true" itemstyle-verticalalign="middle" itemstyle-horizontalalign="center" allowfiltering="false" headerstyle-horizontalalign="center" headerstyle-width="3%" itemstyle-width="3%" headertext="profile"> <itemtemplate> <telerik:radcombobox> <items> <telerik:radcomboboxitem text="unp" value="unp" /> ...

c - Calling a function within a loop -

i trying simple addition function take number x array , add variable i it, iteration variable inside loop. instead of adding each variable individually , producing output of : 3, 2, 7 it produces values of 3, 5, 13. #include <stdio.h> int add(int x[], int y); int main(void) { int i; int a[3] = {3, 1, 5}; for(i=0; i<3; i++) { printf("%d \t", i); printf("%d, %d, equals %d \n", a[i], i, add(a[i], i)); } return 0; } int add(int x[], int y){ return x+y; } try int add(int x, int y){ return x+y; }

vb.net - Unbound DataGridView add row with checkbox error -

this windows forms program. have unbound datagridview control 4 columns; feature id string, parts string, flats string , showonest boolean. columns defined in form designer , boolean column is, indeed, set checkbox tristate set false. the user selects product list box , code executed populate grid grdfeat.rows.clear() = 0 curproduct.lstfeatures.count - 1 (curproduct.lstfeatures(i)) grdfeat.rows.add(.featureid, .parts, .flats, .showonest) end next if allowusertoaddrows false, everthing good. setting allowusertoaddrows true, however, results in following error: formatexception value '' cannot converted type 'boolean'. the error not triggered in code. it's displayed in new tab titled "no source available". it seems pretty clear process adds new editing row trying set checkbox string value, or perhaps null. i'm new (a few months) vb.net, suspect i'm overlooking simple setting somewhere, after several hours of trying...

html - Why isn't this media query display none not working? -

i'm trying have mobile-style.css hide background @ 640px. works on chrome not in firefox nor mobile safari? works offline firefox not on server? very strange. <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/style-mobile.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/muscle-map.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> <div id="muscle-map"> <img id="background" src="crops/00. blank figures.jpg" /> <img id="biceps-a" src="crops/05.a biceps.png" /> <img id="biceps-b" src="crops/05.b biceps.png" /> <img id="obliques" src="crops/04. obliques.png...

Save a file and then open it using javafx -

i have file stored in project directory. make few changes , save using filechooser saved dialog box. after saving want file automatically opened in system. succeeded in saving file not getting how open automatically without user choosing open dialog box. code saving file written below. string input = ""; try { outputstream outstream = null; ipfile = thread.currentthread().getcontextclassloader().getresourceasstream("upgradeworkbench/resources/ip_template.sh"); stage stage = new stage(); stage.settitle("save"); byte[] buffer = null; buffer = new byte[ipfile.available()]; ipfile.read(buffer); filechooser filechooser = new filechooser(); filechooser.setinitialfilename("ip_template"); filechooser.getextensionfilters().addall( new filechooser.extensio...

swift - Table view disappears in custom animation -

i wrote following function implement custom animation: func animateit() { println("here") var mainstoryboard = uistoryboard(name: "main", bundle: nil) var anavigationcontroller2 = mainstoryboard.instantiateviewcontrollerwithidentifier("tnavigationcontroller") as! uinavigationcontroller var ainfo = anavigationcontroller2.viewcontrollers[0] as! ainfovc self.view.addsubview(ainfo.view) self.view.bringsubviewtofront(ainfo.view) self.tabbarcontroller?.tabbar.hidden = false uiview.animatewithduration(2.0, animations: { ainfo.view.frame.origin.x += self.view.frame.width }) { (finished) -> void in ainfo.view.removefromsuperview() } } the ' ainfovc ' has table view, disappears when above animation starts. similar functions work other view controller has not table view. thanks in advance.

sql - Transaction With db context in C# -

i trying commit transaction c# context: private testdbentities context =new testdbentities(connectionstring); this.context.connection.open(); system.data.common.dbtransaction transaction = this.context.connection.begintransaction(); dbcommand command = this.context.connection.createcommand(); command.commandtext = "some insert/update query"; command.executenonquery(); transaction.commit(); but error message: "the query syntax not valid. near identifier table_name, line 1, column 8." query seems fine when directly execute directly on sql management studio. there solution? sqlconnection conn = new sqlconnection(); sqlcommand command1 = new sqlcommand(); sqlcommand command2 = new sqlcommand(); sqltransaction trans = conn.begintransaction(); command1.transaction = trans; command2.transaction = trans; try { command1.executenonquery(); command2....

docusignapi - Trouble-shooting slow-loading documents from DocuSign -

Image
a customer representative suggested try posting these questions here. we spent time monitoring issues docusign loading slowly. while slow every time, when slow seemed hang on particular point in process. below screenshot of trace ran in browser , note element took 52 seconds load. when loading slow, seemed hang on particular element. offer reasons why take 52 seconds or more load part? we have other questions: there seems continuous font downloading (2 or 3 meg in size) throughout process of loading page. occurs each time. why , can avoided? why see seattle connection site when of time chicago? we noticed docusign asks permission know our location. location factor document downloaded from? location used in embedded signing processes? thank assistance. unfortunately, without bit more detail not entirely sure can tell why page loading slow. consistent? if same document (perhaps template?) see slowness? as other 3 questions: in doing own test , decrypti...

python - Regular Expression in URL Not Working -

i have below url pattern , when trying access saying page not found url(r'^getrequest/(add|edit|delete)/(\d+)/', 'cms_graph.views.test_data', name='cms_data'), i have html page pattern. view.py def test_data(request, data , id): title = "got request %s" %(request.meta['remote_addr']) print request.meta['remote_addr'],data,id if (request.meta['remote_addr'] == '172.20.115.137'): download_data(data, id) context = { "titleofpage" : title } return render(request,'test.html', context) test.html <h1>{{titleofpage}}</h1> where doing wrong?? m trying open http://127.0.0.1:8080/getrequest in order open http://127.0.0.1:8080/getrequest need have specified url pattern r'^getrequest/' (note: , have append_slash setting true, different story). with specified url pattern, of urls below valid (as example): http://127.0....

html - Footer code not showing 3px border on top and not allowing added space on top of text -

i have used new hamburger menu had added top of page. footer not showing 3px border , cannot add space top of text. html5 hamburger menu opens whole page has separate style sheet not effect: <div class="overlay"> <div class="wrap"> <ul class="wrap-nav"> <li><h1>about</h1> <ul> <li><a href="#">athena</a></li> </ul> </li> <li><h1>illustration projects</h1> <ul> <li><a href="#">the knowing</a></li> <li><a href="#">save world</a></li> <li><a href="#">henrietta lacks</a></li> <li><a href="#">the new yorker</a></li> <li><a href="#">myths</a></li> <li><a href="#">drawing laurel</a></li> <li><a href="#">the goonies</a>...

sql server - Powershell Script to Start Service if it is Stopped and wait for minute and send an email notification -

i new powershell , in learning stage, have tried create script automate below task. script not working expected. please review , give me on it. my task is, i trying find out sql services (more 1 sql services in multiple servers) in stopped state , trying start it, waiting minute complete service start , verifying service status again. if still stopped state trying sending email setup of people action. could please review below code , correct mistake, tried find unable do #define servers & services variables $servers = gc "e:\bhanu\sqlserver.txt" $services = gc "e:\bhanu\sqlservice.txt" #function call function servicestatus ($servers, $services) { foreach ($server in $servers) { foreach ($service in $services) { $servicestatus = get-service -computername $server -name $service if ($servicestatus.status -eq "stopped") { start-service $service ...

sql server - SSAS Calculated measure to show values only for specific dimension values -

Image
i have calculated measure in ssas cube, want calculate group of dimension members , rest should zero. in following image want mtdoccupancy dimension work account groups rooms, rest related food should show 0 field. following simple mdx using mtdoccupancy measure ([mtdquantity]/[mtdavailablerooms])*100 you can change measure following: iif( left([account group].[account group].currentmember.member_caption,5) = "rooms" ,([mtdquantity]/[mtdavailablerooms])*100 ,null ) i have guessed dimension/hierarchy combination [account group].[account group]. ... - need change reflect names used in cube.

JQuery UI accordion not working . Main menu items being displayed as submenu items -

http://jsfiddle.net/cxjw6/13/ here fiddle here html code: <div id="sidebar"> <ul class="mainmenu"> <div class="sidebarelementdiv"> <div class="systemstatusnormal"> </div> <li class="sub-handle"><a class="sub-link" href="#!">status</a> <ul class="submenu"> <li class="sub-li"><a class="innermenuitem" href="#!">general</a></li> <li class="sub-li"><a class="innermenuitem" href="#!" id="statusnetwork">network</a></li> <li class="sub-li"><a class="innermenuitem" href="#!">timing</a></li> <li class="sub-li"><a class="innermenuitem" href="#!">gnss...

ios - pickerView different row height -

i have pickerview data loaded website. want set height each row of pickerview. here tried seems pickerview accept's 1 value rows. func pickerview(pickerview: uipickerview, rowheightforcomponent component: int) -> cgfloat { var height: cgfloat = 40 if categories.count != 0 { return heightforview((categories[component].valueforkey("name") as? string)!, font: uifont(name: "helveticaneue-thin", size: pickerfontsize!)!, width: pickerview.frame.width) + 10 } return height + 10 } func heightforview(text: string, font: uifont, width: cgfloat) -> cgfloat { let label:uilabel = uilabel(frame: cgrectmake(0, 0, width, cgfloat.max)) label.numberoflines = 0 label.linebreakmode = nslinebreakmode.bywordwrapping label.font = font label.textalignment = .center label.text = text label.sizetofit() return label.frame.height } for first time categories array empty , rowheightforcomponent uses constant value. when...

javascript - multiple errors while momoizing function inside another function -

i have this: function main() { function create_node() { console.log("create_node") (function() { var memo; console.log(memo); function f() { var value; console.log(value); if (memo) { value = memo.clonenode(); console.log("clone node"); console.log(value); } else { var value = document.createelement("div"); var style = ""; value.setattribute("style", style); value.innerhtml = "hello"; console.log("new node"); console.log(value); } return value; } return f; })(); } var colection = []; (var = 0; < 10; i++) { colection.push(create_node()); }; } main(); the problem error (in firefox @ least) while try log "create_node". al...

Can I merge two chromium based browsers? -

i have 2 chromium-based browsers each having own benefits, want both of them in one. possible?any help? i need anonimity(epic browser) , torrent download feature( torch browser) in 1 browser, thought merging these 2 idea. getting thier source code , modifying create our own. feasible? thank you.

Is there a option in Activecollab to link a git repository commit to a task comment? -

i added git repository activecollab project. commits shown messages under "sources"- tab. question now: there way link repo commits comments under task linked to? know in default there no way. more interested in work around makes possible. you can "mention" task in commit message using #taskid (or #taskid@projectslug if 1 git repository connected more 1 project). more info can found in active collab documentation: https://help-classic.activecollab.com/books/source/commit-messages-and-tasks.html note there no way add commit comment task, commits related task can found in commits dialog can access options drop-down.

php - How to send the XML encoded data to the Rest API when it has &amp; as it takes the data after "&" as new post parameter? -

i trying send xml data rest php api, xml data has "&" in - when data reaches server data after "&" taken new param. right behaviour? 1 solution send data binary octet-stream curious know if sending data application/xml &amp has behaviour. server side code accept post: if (isset($_post['xmldata'])) { $data = $_post['xmldata']; } else { //see if data coming in file. $data = '' } data sent server via rest client: <envelope> <partyledgername>abc &amp; co</partyledgername> <basicbasepartyname>abc &amp; co</basicbasepartyname> </envelope> data received server looks like: array ( [data] => <envelope> <partyledgername>abc [amp;_co</partyledgername> ______<basicbasepartyname>abc_] => [amp;_co</basicbasepartyname> </envelope>] => )

amazon web services - Error when trying to increase storage on RDS MySQL instance -

i'm trying increase allocated storage 2000gb 2260gb (and iops 6000 7000) on rds mysql instance , i'm getting following error message: null (service: amazonrds; status code: 500; error code: internalfailure; request id: ea593451-3454-11e5-bc38-b7fa8a060cf1) the read replica instance has had it's storage , iops increased, that's not issue. any ideas might causing this? if i've missed key info, please let me know in comments. this error caused fact memchached 1 enabled in options group assigned rds instance trying increase storage for. from aws support engineer: you got in contact unable initiate scale storage rds instance olympus- receiving internal error. after reviewing further on side let know following error being reported: the option 'memcached' cannot deleted instance olympus has read replica has memcached present. this has been brought rds team issue. aware of , working on fix, unfortunately im una...

jquery - How to determine if radio buttons are checked? -

this question has answer here: how check radio button jquery? 25 answers i'm trying radio buttons names , check if blank. if 1 blank, form show alert , not submit. if buttons filled go "else" part , see whether answer correct. if correct, show right values in page <div> . it goes "alert" but, if select radio button, not go else part. what doing wrong? $(document).ready(function() { $("#btndel").click(function() { var count = 0; if ($("input[name='ques1']").attr('checked', false) || $("input[name='ques2']").attr('checked', false)) { alert("please fill fields"); } else { //question no 1 if ($("input[name='ques1']").attr('checked', false) || $("input[name='ques2']...