Posts

Showing posts from July, 2013

c# - I want to compress a byte[] and return a byte[] -

i want write method in c# takes byte[] , compress byte[], can find libraries compress directory directory (the zipfile library ). is possible using .net platform? is possible using .net platform? sure - that's system.io.compression namespace for. example, use gzipstream class. use memorystream receive compressed data, , can call toarray afterwards. sample code (untested): public static byte[] compress(byte[] data) { using (var output = new memorystream()) { using (var compression = new gzipstream(output, compressionmode.compress)) { compression.write(data, 0, data.length); } return output.toarray(); } } public static byte[] compress(byte[] data) { using (var output = new memorystream()) { using (var compression = new gzipstream(output, compressionmode.decompress)) {         compression.write(data, 0, data.length);     } return output.toarray(); } } you...

c# - How to create a powershell extension for my app -

i'm developing platform , because has lot of configurations , parameters thought nice allow system administrator script tasks , stuff that, sharepoint does... , not that: since i'll 1 administrating quite time don't need (or have time build) gui, don't want keep running tsql scripts mad... so question is: how do that? how tell powershell when enters get-myapptenants should invoke dll , execute method retrivealltenants() ??? i recommend writing binary cmdlet since going use methods in seperate library. can write in c# can use skills have , supply powershell module application. a startup guide can found here: building binary powershell modules – part 1 – getting started building binary powershell modules – part 2 – design principles , other guidelines

Neo4j Server Closing for no Reason? -

i have small database working fine day ago, now, when try start it, console claims succeeds in opening, web server hangs. lsof -i | grep 7474 states neo4j listening port, , "close_wait"-ing, i'm told means server side shut down. the new error logback.groovy missing, along logback-test.xml, odd, because set logging false in neo4j config file. any idea happening? 1 else encounter problem? check messages.log more detail shutdown reason.

printing - Print function in my DoublyLinkedList creates duplicates. C++ -

basically print function print out contents when have 1 player object inserted list. when insert object, adds first element inserted has been overwritten. have tested insert , append functions , dont believe these functions. think print function printing last entered firstname,lastname,level , exp number of nodes in list. here code: stats.cpp #include "stats.h" #include <iostream> #include "validators.h" using namespace std; validators validators2; stats::stats() { firstname = ""; secondname = ""; level = 0; experience = 0; } stats::stats(string firstname,string secondname, int level, int experience) { firstname = firstname; secondname = secondname; level = level; experience = experience; } string stats :: getfirstname() { return firstname; } string stats :: getsecondname() { return secondname; } int stats :: getlevel() { return level; ...

iphone - CLLocationManager initialization and call on button -

i want app current location when user taps button. initialize locationmanager object in init method. first question: if i'm going need currentlocation every time press button? or should initialize in viewdidload ? - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil { self = [super initwithnibname:nibnameornil bundle:nibbundleornil]; if (self) { // create location manager object locationmanager = [[cllocationmanager alloc] init]; locationmanager.delegate = self; // best accuracy posibble [locationmanager setdesiredaccuracy:kcllocationaccuracybest]; } return self; } in delegate method stopupdatinglocation got currentlocation . // delegate method - (void)locationmanager:(cllocationmanager *)manager didupdatelocations:(nsarray *)locations { cllocation *currentlocation = [locations lastobject]; [locationmanager stopupdatinglocation]; } here startupdatinglocation...

vbscript - Permission denied on CopyFile in VBS -

i'm trying automate pushing file users' home directories, stuck on "permission denied" error — thrown on line 6 here, copyfile call. there other parts of script (not shown) create , copy folder contents using same source , destination directories, , work perfectly. it's when use copyfile fails. dim fso set fso = createobject("scripting.filesystemobject") if not fso.fileexists("h:\minecraft\.minecraft\options.txt") fso.copyfile "c:\minecraft\options.txt", "h:\minecraft\.minecraft\" end if set fso = nothing h: network home directory, current user has full read/write privs. i've tried adding/removing trailing slashes paths, adding "options.txt" destination path, removing false argument... not sure else try. thoughts? thanks! fyi, chunk of code, comes before error-prone bit above, executes every time: if not fso.folderexists("h:\minecraft\.minecraft\bin\") if not fso.fo...

php - Converting a non-associative list of arrays to an associative array of arrays -

i have list of arrays (or objects, coming database via pdo fetchall() function, both options ok me). wish convert list of arrays associative array of arrays key of each array being 1 of columns. i can loop, wondering whether there php function this, maybe in more efficient way. so illustrate it, lets have array (non-associative) arrays inside: [0] => {'name' : 'joe', 'surname' : 'bloggs', 'id' : '12345'} [1] => {'name' : 'sandy', 'surname' : 'smith', 'id' : '54321'} i wish convert to: ['12345'] => {'name' : 'joe', 'surname' : 'bloggs', 'id' : '12345'} ['54321'] => {'name' : 'sandy', 'surname' : 'smith', 'id' : '54321'} a simple loop do, that's boring post answer for, here go: $array = array_combine(array_map(function (array $row) { return ...

ruby on rails 3.2 - Active Record Association without using id -

i not sure hasn't been answered, not sure search please point me in right direction if asking answered. i have 2 models: stock_symbol , weight_symbol stock_symbol has symbol in matches commodity in weight_symbol model how can association work when stock_symbol.weight_symbol, weight_symbol back. i know how in sql, if not standard id this_id lost. edit: class stocksymbol < activerecord::base has_many :weight_symbols, primary_key: :symbol def commodity "lc" # example simplify it, there more this. end end class weightsymbol < activerecord::base belongs_to :stock_symbol, foreign_key: :commodity end sample object stock_symbol: stocksymbol.last <#stocksymbol id: 729, symbol: "lcj13c12500", created_at: "2013-03-15 21:50:49", updated_at: "2013-03-15 21:50:49"> sample object weight_symbol: weightsymbol.first <#weightsymbol id:1, weight_group_id: 1, symbol: "lc", created_at: "2010...

Relationship between SQLite and Python 2.X -

i little puzzled relationship between sqlite3 , python 2.x here output: $ python python 2.7.2+ (default, jul 20 2012, 22:12:53) [gcc 4.6.1] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import sqlite3 >>> sqlite3.version '2.6.0' >>> sqlite3.sqlite_version '3.7.7' the '3.7.7' supposed version of sqlite on ubuntu os. however, when tried sqlite3 test.db bash: sqlite3: command not found which means sqlite3 not installed on machine. then how can use pragma statements "pragma encoding = "utf-8";" when creating database in python? first: the '3.7.7' supposed version of sqlite on ubuntu os. no. it's version of sqlite library python built against. if python built against static library, there's no reason expect related in way else on system. if built against shared library, doesn't have same ...

database - What is an "active" statement in MySQL? -

an interviewer asked me question, if familiar "active" statements. i asked if referring prepared statements, , said no, had no other choice answer "i'm sorry, i'm not familiar them". it seemed not important @ all, still got second interview. however, after googling question haven't been able find reference "active" statements. i should have asked answer, again since interview have not been appropriate question. does around here have clue? thanks bunch! p.s. if not question community, feel free close or delete thread! did maybe mean "active record?" that's object-relational mapping technique, used match model-tier code data code, , uses automatically generated sql statements.

filenames - Get the file name from a full or relative path knowing that this one is not a parameter of the batch -

when file, along relative path or full path..., given parameter of batch, know how expand %1 file name %~n1 it's quite easy! nevertheless, want name of file relative/full path right handled inside batch. please @ code. i'd expand %%x (which relative path in case) take account file name. please have idea? thanks @echo off setlocal enabledelayedexpansion set currdir=%cd% /f "tokens=*" %%x in (lists.out) ( echo %%x set filetxt=%%x) here's example "lists.out" file different files built-in relative paths. "lists.out" can made of temp\my file1_x temp\my file2_x ............... ... echo %%~nx set filetxt=%%~nx) should cure problem. or use ~nxx if want extension too.

Crontab not sending php reminder email to the right person -

i try develop new feature system can send email users 1 day before reservations expired. wrote php script, , used crontab trigger execution of php file every morning. problem if compile php file, works fine, , emails sent users. when check maillog, telling to=<useremail@email.com>, ctladdr=<blablala> (0/0), delay=00:04:12, xdelay=00:04:12, mailer=esmtp, pri=120371, relay=xxxxxxx., stat=sent (r3hmoisd031604 message accepted delivery) but if used crontab execute same php file, mail sent root of server, not "useremail@email.com" wrote in php file. to=<root@myserver.com>, ctladdr=<blablabla> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30958, dsn=2.0.0, stat=sent what can problem of it? why php file doesn't work expected crontab? can help? my php file -- "demo.php" require_once "defaultincludes.inc"; global $tbl_entry, $tbl_users; $current = mktime(date("h"),date("i"),0,date("...

jQuery Cycle Plugin not working in ASP.NET MVC 4 -

i created asp .net mvc4 project default , put code this sample , not working @ all. any clues? error: uncaught referenceerror: jquery not defined jquery.cycle.all.latest.js:918 uncaught referenceerror: $ not defined <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>@viewbag.title - asp.net mvc application</title> <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <meta name="viewport" content="width=device-width" /> @styles.render("~/content/css") @scripts.render("~/bundles/modernizr") <style type="text/css"> .slideshow { height: 232px; width: 232px; margin: auto; } .slideshow img { padding: 15px; border: 1px solid #ccc; background-co...

eclipse - Android drawable stops being reachable -

the weird one: ref drawable image = getresources().getdrawable(r.drawable.mypic); at first running fine, except image (which draw) missing shade. edit image away eclipse , replace old mypic.png new one. eclipse refused see new image, if had cached old 1 , using that. change mypic.png mypic1.png , line of code kept returning image null . gave , changed image name mypic.png (i figure i'd let use cached one), eclipse kept on returning image = null . any appreciated. after modifying png images f5 on res folder eclipse see the new image

php - SQL Query succeeds but no information -

okay code works pretty far, goes through, problem when try , print unordered list , it's contents nothing. when view source code have <ul> </ul> . there's space, surely happening. this code, have commented what's happening obvious: $uname = mysqli_real_escape_string($link, $_session['username']); //get username ready $sql = mysqli_query($link, "select * users username = '" . $uname . "'"); //sql query result if(!$sql) { echo "error retrieving user id. please try again. mysql error: " . mysqli_error($link); } elseif($row = mysqli_fetch_assoc($sql)) { $uid = $row['userid']; //obtain userid } else { echo "error: " . mysqli_error($link) . "<br />" . $uname . " / " . $sql . " / " . $uid; } mysqli_free_result($sql); $sql = mysqli_query($link, "select * auditio...

java - Is modeling infinite-scale relationships in NoSQL / BigTable (GAE) possible? -

my team writing application gae (java) has led me question scalability of entity relationship modeling (specifically many-to-many) in object oriented databases bigtable. the preferred solution modeling unowned one-to-many , many-to-many relationships in app engine datastore (see entity relationships in jdo ) seems list-of-keys. however, google warns: "there few limitations implementing many-to-many relationships way. first, must explicitly retrieve values on side of collection list stored since have available key objects. more important 1 want avoid storing overly large lists of keys..." speaking of overly large lists of keys , if attempt model way , assume storing 1 long each key per-entity limit of 1mb theoretical maximum number of relationships per entity ~130k. platform who's primary advantage scalabililty, that's not many relationships. looking @ possibly sharding entities require more 130k relationships. a different approach (relationship...

cuda - The behavior of __CUDA_ARCH__ macro -

in host code, seems __cuda_arch__ macro wont generate different code path, instead, generate code exact code path current device. however, if __cuda_arch__ within device code, generate different code path different devices specified in compiliation options (/arch). can confirm correct? __cuda_arch__ when used in device code carry number defined reflects code architecture being compiled. it not intended used in host code. nvcc manual : this macro can used in implementation of gpu functions determining virtual architecture being compiled. host code (the non-gpu code) must not depend on it. usage of __cuda_arch__ in host code therefore undefined (at least cuda).

javascript - How to scroll to an element within a modal using jquery? -

i have opened modal insert elements line line. each line has it's own id tag. the list grows bigger modal window text gets hidden @ bottom of modal window. can manually use scroll bar text scroll in modal window printed. i have played around following code scrolls webpage behind modal. have tried replacing 'html, body' modal elements no avail. $('html, body').animate({ scrolltop: $('#element').offset().top }, 500); i'm sure close. suggestions? thanks it looks calling animate method on html , body. $('html, body').animate(...); if want scroll modals window have call animate method on element instead. $('#modal').animate(...); where #modal element containing elements you've created. edit: i see tried call animate on modal. here fiddle scrolls elements in modal when click button. also in code have closing bracket after #element causing script error: ...scrolltop: $('#element'])...

cocoa - Change border "glow" color of NSTextField -

i have nstext field in mainmenu.xib , have action set validate email address. want nstexfields border color (that blue glow) red when action returns no , green when action returns yes. here action: -(bool) validemail:(nsstring*) emailstring { nsstring *regexpattern = @"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"; nsregularexpression *regex = [[nsregularexpression alloc] initwithpattern:regexpattern options:nsregularexpressioncaseinsensitive error:nil]; nsuinteger regexmatches = [regex numberofmatchesinstring:emailstring options:0 range:nsmakerange(0, [emailstring length])]; nslog(@"%ld", regexmatches); if (regexmatches == 0) { return no; } else return yes; } i call function , setting text-color right now, set nstextfield's glow color instead. - (void) controltextdidchange:(nsnotification *)obj{ if ([obj object] == emails) { if ([self validemail:[[obj object] stringvalue]]) { [[obj obj...

function - Int and Num type of haskell -

i have below code take args set offset time. setoffsettime :: (ord a, num b)=>[a] -> b setoffsettime [] = 200 setoffsettime (x:xs) = read x::int but compiler says " could not deduce (b ~ int) context (ord a, num b) bound type signature setoffsettime :: (ord a, num b) => [a] -> b also found not use 200.0 if want float default value. compilers says "could not deduce (fractional b) arising literal `200.0'" could 1 show me code function (not in prelude) takes arg store variable can use in other function? can in main = do, hope use elegant function achieve this. there global constant stuff in hasekll? googled it, seems not. i wanna use haskell replace of python script although not easy. i think type signature doesn't quite mean think does: setoffsettime :: (ord a, num b)=>[a] -> b what says "if give me value of type [a] , type a you choose member of ord type class, give value of type b , type b you choose member...

c# - How do I manually pass data from view to controller? -

i have view form can edited. view rather complicated. form contract. contract name can edited @ top. contract has many ads, , details each of ads can edited. length of form depends on how many ads contract has. have loop in view displays form fields each ad. furthermore, there fields in model used determine of ad details, shouldn't saved database (yet must appear as, say, dropdowns in view). also, there model fields don't need appear in view needed in post controller method in order save database (i'm saving manually), must go through view somehow , passed controller. here's model: public class modcontract { public int contract_id; // pk; needed public string contract_name { get; set; } // save public list<modads> ads { get; set; } } public class modads { public int contr_ad_id; // pk; needed public string name { get; set; } // save public string print_product_id { get; set; } // used product_name public string product_name...

php - SQLSTATE[42S22]: Column not found: 1054 -

i'm french, sorry bad vocabulary. have little problem in code, when execute sql query have error: sqlstate[42s22]: column not found: 1054 unknown column 'id' in 'where clause' here's code: update s_data_bans set `name` = '$name', `text` = '$corps', `idcat` = '$cat', `on` = '$unpub' id='$id' the error showing have not such column named id in s_data_bans table, check out , make sure letter case of column table matches query (if it's lower case (i.e id) put id= ... in query). good luck

cuda - Required buffer for cuFFT -

this question buffer required cufft. in user guide documented that in worst case, cufft library allocates space 8*batch*n[0]*..*n[rank-1] cufftcomplex or cufftdoublecomplex elements (where batch denotes number of transforms executed in parallel, rank number of dimensions of input data (see multidimensional transforms) , n[] array of transform dimensions) single , doubleprecision transforms respectively. what "array of transform dimensions" mean? how buffer cufft need? understand above needs @ least 8x size of array being ffted not make sense me thanks in advance daniel the "array of transform dimensions" array containing problem size in each dimension, see section on multidimensional transforms more information. cufft allocating temporary space able accommodate intermediate data, part of doc quoted says "the worst case", it's not "at least 8x", it's @ most. doc goes on say: depending on configur...

iphone - How to jump from an event handler in story board to the code -

Image
i have "hello" button in main view. have set touch inside handler changegreeting() in helloworldviewcontroller.m. connections inspector, can clear see association: my question is, how jump changegreeting() function in .m file here (the story board view)? i expect clicking on "hello world view controller changegreeting:" button bring me source code. turns out not case. there no way (as far can tell) jump directly panel changegreeting: method. you can press command-shift-o (or choose file > open quickly…) , type changegreeting: (or prefix of it) jump definition. if want apple add better way, go https://bugreport.apple.com/ , file feature request.

java - asynctask not getting arraylist when called from a handler -

i'm using handler start asynctask when doing so, application crashes. reason stuck because if start asynctask via else (eg. onclicklistener) can run many times, on , on again, , works perfect every single time. execute asynctask handler, crashes application nullpointerexception. my handler looks this public handler handler = new handler() { @override public void handlemessage(message msg) { super.handlemessage(msg); handler.post(new runnable() { @override public void run() { new sortnearby().execute(); } }); } }; here part of stack trace application showing exception caused by: java.lang.nullpointerexception @ badams.android.app.fragments.mainmenu_nearbyfragment$sortnearby.doinbackground(mainmenu_nearbyfragment.java:100) line 100 of code first line in asynctask under doinbackground protected string doinbackground(string... args) { (int = 0; < global.places.size(); i++) { //this lin...

java - Complex Polygon Area -

clonelist = point[] (series of points put constructor) have tried many different times fix formula, coming wanting. formula found on http://en.wikipedia.org/wiki/shoelace_formula index(i) point has both x , y values. public double getarea() { double area = 0; (int = 0; < clonelist.length-1; i++){ area += clonelist[i].getx()*clonelist[i+1].gety() - clonelist[i+1].getx()+clonelist[i].gety(); } area = area/2; //system.out.println(math.abs(area)); return math.abs(area); } i'm not familiar formula ill give shot... me looks though not following formula correctly, implementation(based on gleaned wiki page xd) public double getarea(){ double area = 0; int n = clonelist.length; double firstsum = 0; double secondsum = 0; for(int = 0;i< clonelist.length - 1;i++){ firstsum+= clonelist[i].getx()*clonelist[i+1].gety(); secondsum+= clonelist[i+1].getx()*clonelist[i].gety(); } firstsum+=clonelist[clon...

c# - Asynchronous Programming with Async and Await -

i'm walking through tutorial on how program asynchronously in c# , have come across error i'm not sure how resolve. here's link: http://msdn.microsoft.com/en-us/library/hh191443.aspx , error is: cannot find types required 'async' modifier. targeting wrong framework version, or missing reference assembly? i targeting .net 4.0 framework , unsure additional assemblies required. here code: public async task<string> accessthewebasync(class1 class1, class2 class2) { // getstringasync returns task<string>. means when await // task you'll list<string> (urlcontents). task<string[]> listtask = getlist(class1); // send message task // can work here doesn't rely on string getstringasync. //compareservice(); // await operator suspends accessthewebasync. // - accessthewebasync can't continue until getstringtask complete. // - meanwhile, control returns caller of accessthewebasync. // - control r...

java - Having trouble with File I/O in Android -

heres code: string path = "/data/data/edu.bfit.readwritedemo/files/test.txt"; fileinputstream fis; file file = new file(this.getfilesdir().getabsolutepath() + path); try { fis = new fileinputstream(file); sbuffer = new stringbuffer(); bufferedreader dataio = new bufferedreader(new inputstreamreader(fis)); while((strline = dataio.readline()) != null) sbuffer.append(strline + "\n"); strline.substring(0,4); dataio.close(); fis.close(); toast.maketext(activityone.this, "read successful!!", toast.length_short).show(); } catch (ioexception e) { toast.maketext(activityone.this, "read failed!!", toast.length_short).show(); e.printstacktrace(); } the file keeps failing open. feel issue path , confused. manually created test.txt testing purposes , stored in directory in root directory of project. n...

Trying to understand basic regex functions in C++ -

i've done regular expressions in perl years , trying utilize them in c++. having problems though. want parse through string such translate(0.0,-572.36218) , grab 2 numerical values. here's have far: std::cmatch m; std::regex e("([-|\.|0-9]*),([-|\.|0-9]*)" ); std::regex_search ("translate(0.0,-572.36218)",m,e); float xtransform = atof(m[1].first); float ytransform = atof(m[2].first); however when @ values in debugger here's see: m[0].first = "0.0,-572.36218)" m[1].first = "0.0,-572.36218)" m[3].first = "-572.36218)"; if use regex debugging tool (like regex coach) can see regular expression syntactically correct. guess don't know if i'm doing right, or how extract data need cmatch instance. update: must missing something, because if change regular expression this: std::regex e("([0-9])"); m returns being 2 entries deep , each entry's first element = "0.0,-572.36218)". ...

iphone - UIPageViewController - transparent areas on view controllers blend wrong -

Image
is there way tell uipageviewcontroller not shadowing or blending on pixels alpha value of 0? right areas show translucent , looks bad. even better way specify own shadow path.

html - Wrap left box text around right float, keep markup semantic, IE>=8 -

what want: div text div text | div b text | div text div text | div b text | div text div text | div b text | div text div text div text diva div text div text div text diva div text div text div text diva what have: <div id="a"> <h3>...</h3> <p>...</p> <p>...</p> </div> <div id="b"> <h3>...</h3> <p>...</p> </div> if order of content in 2 div's must remain in order given (note content variable), how possible achieve want (and work in ie8...)? div b of fixed width, variable height, , container div of div a , div b of fixed width. edit 1 i've discovered technique of inserting dummy div above div a , setting it's width of div b , using js calculate height of div b , applying dummy div, floating dummy div right, absolutely positioning div b on top of dummy div. it's way i've found maintains order of content in div a , d...

jQuery Help In Dreamweaver -

i'm new html/jquery , struggling solve problem. goal make when click box (#boxone), image appears in different box (#boximage). i'm not sure if there error in code or problem dream weaver loading it. appreciated! <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> $(document).ready(function() { $('#boxone').click(function(){ $("#boximage").attr('src',"http://i.minus.com/ipbqanenxrxtb.png"); return false; }); }); </script> you need wrap jquery code inside own <script> tag: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#boxone').click(function(){ $("#boximage").attr('src',"http://i.min...

php - Magento dropdown group selection customer registration -

i trying make group selection dropdown on magento customer registration page work. have done of following: inserted following code template/persistent/customer/form/register.phtml: <label for="group_id" style='margin-top:15px;'><?php echo $this->__('which group belong to? (select "pet owner" if uncertain)') ?><span class="required">*</span></label> <div style='clear:both'><p style='color:red;'>note: dvm/dacvo , institution accounts require administrative approval.</p></div> <div class="input-box" style='margin-bottom:10px;'> <select style='border:1px solid gray;' name="group_id" id="group_id" title="<?php echo $this->__('group') ?>" class="validate-group required-entry input-text" /> <?php $groups ...

jquery - Javascript not working on content appended via ajax on scroll -

i have been working on adding more content page scroll reaches end of page. the problem javascript not working on content loaded via ajax below simple code: html: <div class="ajax_load_wrapper"> <div id="title_191"> <div id="title_172"> <div id="title_171"> <div id="title_105"> <div id="title_95"> <!-- new divs load here on jquery events don't work --> </div> <div id="load_more_vbz" style="display: none;"> <a href="somelink">loading...</a> </div> jquery: (function ($) { $(window).on('scroll',function(){ if (($(window).scrolltop() == $(document).height() - $(window).height() )){ load_mode_content(); } }); //loads more content function load_mode_content(){ var link = $('#...

c# - The multi-part identifier "System.Data.DataRowView" could not be bound -

this question has answer here: the multi-part identifier “textbox1.text” not bound in c# asp.net? 3 answers i have table populate combobox1 , combobox1 should populate combobox2 , problem is. that's exception i'm getting the multi-part identifier "system.data.datarowview" not bound. code : private void frm2_load(object sender, eventargs e) { //populate combobox1 sqldataadapter da = new sqldataadapter("select categoryid, name categories", clsmain.con); dataset ds = new dataset(); da.fill(ds); combobox1.datasource = ds.tables[0]; combobox1.displaymember = "name"; combobox1.valuemember = "categoryid"; } private void combobox1_selectedindexchanged(object sender, eventargs e) { //populate combobox2 sqldataadapter da = new s...

tfsbuild - Error deploying to windows Azure cloud service from tfs preview -

i have followed steps described in link below create continuous delivery tfs build windows azure: https://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ the problem tfs fails deploy azure cloud service , gives me following error: an attempted http request against uri https ://management.core.windows.net/...-1b8d-49ae-9d78-.../services/hostedservices/myhostedservicename/deploymentslots/staging returned error: (400) bad request. additional exception information: error code: badrequest message: certificate thumbprint 96a.... not found. create deployment operation threw unexpected exception. deployment failed. check logs exceptions may have caused failure. exception message: attempted http request against uri https: //management.core.windows.net/474...f4/services/hostedservices/myhostedservice/deploymentslots/staging returned error: (400) bad request. additional exception information: error code: badrequest message: certificate thumbprint 6789... not ...