Posts

azure - How to add the diagnostics extension on cloud service using ARM template -

i know how need define resource in arm template enabling diagnostics extension on cloud service deployed. in examples came across, see virtual machines iaasdiagnostics. couldnt find on enabling diagnostics on cloud service(paasdiagnostics). thanks in advance arm template used deploy , provision of resources application in single, coordinated operation, available in azure resource manager while cloud service in azure service manager, not use cloud service in arm template. you @ create windows virtual machine monitoring , diagnostics using azure resource manager template enable diagnostics in arm template.

asp.net - Strange behavior of ASP .net TextBox -

i have simple asp net web form consists of 2 textboxes 1 single line , 1 multiline in addition fileupload control , button. the page works perfect , button triggers post usual. when copy , paste text "web pages" in particular , paste them in multiline textbox post never triggered, time out error, bad request!!! this behavior generated in iis, not observed in iis express. the text not long, 30 lines or less, noticed when deleting lines of text issue resolved , no errors generated, can't find special in lines deleted, no control characters or other special characters. any idea? has encounter same situation? that strange problem, never had experienced think can problem related browser cache or browser compatibility issue. make sure have declared right version of browser in html code. also, try debug problem placing breakpoint , see runs every time or not.

javascript - Sending Audio file/blob from UI to Servlet for saving at server. -

we trying send our audio file ui side using following code var url = (window.url || window.webkiturl).createobjecturl(blob); var link = document.getelementbyid("save"); link.href = url; link.download = filename || 'output.wav'; var fd = new formdata(); fd.append('fname', 'sample1.wav'); fd.append('data', blob); $.ajax({ type: 'post', url: 'audiototext', data: fd, processdata: false, contenttype: "audio/wav" }); but unable process in servlet. can me javascript code send audio file servet , servlet code save audio fie in servlet. in advance. good day you can use plugin fileupload https://github.com/blueimp/jquery-file-upload there quite full instruction how use spring , ajax: http://krams915.blogspot.ru/2012/06/file-upload-with-spring-and-jquery-part_2793.html (from wiki of plugin) quick tutorial (don't forget include plugin) html code: <label...

java - using sl4j to log from an eclipse osgi plugin -

i'm using sl4j eclipse (luna) osgi bundles. working fine until upgraded eclipse mars. broke something, somewhere , can't figure out did wrong. after few hours trying put back, decide write simple osgi bundle test mecanism that, i thought , understood. i'm going through new osgi wizard , create simple bundle: the manifest : manifest-version: 1.0 bundle-manifestversion: 2 bundle-name: service bundle-symbolicname: service bundle-version: 1.0.0.qualifier bundle-activator: service.activator bundle-requiredexecutionenvironment: javase-1.8 import-package: org.osgi.framework;version="1.3.0", org.slf4j require-bundle: ch.qos.logback.classic, ch.qos.logback.core and activator code is: public class activator implements bundleactivator { private logger logger=loggerfactory.getlogger(this.getclass()); public void start(bundlecontext context) throws exception { system.out.println("hello world!!"); logger.error("logging error {}", t...

html - TD borders not rendered correctly with Firefox -

Image
better check if it's code issue before reporting bug firefox dev team... here fiddle of little table css-styled. css quite simple : table { border-collapse: collapse; font-size: 1em; } th { background-color: #a0a0d8; font-weight: bold; width: 20em; } th, td { border: 1px solid #8080b8; padding: 2px; } sadly, , without zoom , got irregular borders displayed . did make mistake, or issue should reported (didn't find such report exepcte ones zoom) ? note : zooming forward or backward gets borders regular coefficient. edit : here html requested : <div class="content"> <table id="groups"> <thead> <tr> <th class="groupes">groupes</th> <th class="action add" title="ajouter un nouveau groupe">+</th> </tr> </thead> <tbody> <tr id="new-group-tr" style="display: none;"...

delphi - XE6 - How to convert TStringStream content to TStream? -

i using following code convert tstringstream tstream. give error when try copy tstringstream's content tstream. it seems making obvious mistake not able catch it. my code: procedure tfrmmain2.button1click(sender: tobject); var ss:tstringstream; s, s2:tstream; photostr: string; begin photostr := 'hello world, testing: /9j/4aaqskzjrgabaqaaaqabaad//' + 'ga7q1jfqvrpujogz2qtanblzyb2ms4wich1c2luzybjskcgslbfryb2njip' + 'lcbxdwfsaxr5id0goduk/9saqwafawqebamfbaqebqufbgcmcachbwcpcwsj' + 'dbepehirdxerexycfxmughurerghgbodhr8fhxmxiiqihiqchh8e'; ss := tstringstream.create(photostr); s := tstream.create(); s.copyfrom(ss, ss.size); //<= line gives error end; the error message getting is: ...class ewriteerror message 'stream write error'. i don't know why getting error. you creating instance of tstream abstract class. must never instantiate tstream directly. instantiate descendent class instead, su...

conflicts in Git feature branches, how to detect them early -

with developing java git, have frequent problem different people change same classes in different feature branches, results in merge conflicts. while these problems inevitable point, detect these problems early, people can talk , align. i see 2 possible solutions here: best practices (like looking @ other peoples branches) , tool support. if miss best practices, please point me document. if there tools (you add branches list , email in case of possible conflicts), please tell me. that's similar continuous integration. you have whatever build-system use continuous integration (teamcity, jenkins) try merge branches every day/hour , send e-mail when failed automatically.