Posts

Stream Analytics and Machine Learning

Image
hi, i have seen how can use stream analytic queries create alert data can sent event hub , displayed on power bi dashboard, can't see how possible utilise machine learning algorithms in stream analytic queries machine learning identifies anomaly data used event hubs. i grateful or direction. basically create output in stream analytics, , configure point eventhub. you can create "client" program .net programming in c# read data inside eventhub. following shows quick tutorial on how create client sends , receives event hub: https://channel9.msdn.com/shows/azure-friday/azure-service-bus-event-hubs-101-with-dan-rosanova https://channel9.msdn.com/shows/azure-friday/scaling-out-azure-service-bus-event-hubs-102-with-dan-rosanova after retrieving message client application can make rest call exposed web service azure ml. sr. enterprise architect | trainer | consultant | mct | mcsd | mcpd | sharepoint ts | ms virtual ts |windows 8 app store developer | linux ge...

Trimming Strings

hi, have code: static string trimwhitespace(string thestring) { string result = ""; //remove whitespace chars string... return result; } i want trim whitespace off both ends of string. how can without using system.string.trim  method ? thanks!! p.s.  not know, whitespace characters include spaces ( ' ' ), newlines ( '\n' ), carriage returns ( '\r' ), tabs ( '\t' ), vetical tabs ( '\v' ), , form feeds ( '\f' ). please let me know if missing any. nevin janzen ( visit website ) if post answers question, please click propose answer . if post helpful, please click vote helpful . var value = "with whitespace"; var chars = c in value c != ' ' select c; var newvalue = new string(chars.toarray()); // value "withwhitespace"; Visual Studio Languages ...

How to make the primary key set back to zero every time I delete the table contents in a C# program

hi all, this problem. have c# program running on sql server table. have primary key in table. program intended run many times possible(as in other usual computer programs) user inputs. every time run program needs first read data sql table(lets originaldata table) , math , save results in table called alldata. when run program first time, 600 results , primary key(named id- integer type) starts 1. when run program second time, primary key starts 601 :( need primary key start 1 no matter how many times run program. because need delete first result alldata table(which in program using c# method) , save new results primary key starting one. i dont want delete whole table , create new table every time run program. want delete previous results , save new results primary key starting @ 1. here sql dump of the table reference. use [dataset] go /****** object:  table [dbo].[alldata]    script date: 10/19/2012 14:52:38 ******/ set ansi_nulls on go ...

Setting up a variant definition with a SKU

i trying create product definition sku defined within variant properties.  seems sku locked down product definition.  know create new property , treat sku variants, seems odd when go define catalog, can want variant id sku, cannot set sku assigned variant properties.  there way change base assigned product properties?   the sku set in schema manager name given product code, can changed.  new proprerty should created variant sku, or "assign product types" attribute should set false the productcode, @ point can reused. Commerce Server  >  Commerce Server 2009

debatching

i have listed out inbound , outbound. easiest approach accomplish desired outbound message using debatching. the inbound message(a) output of map(using xslt) transformation applied @ receive port. can apply second map debatch execute on output first map in receive port. don't need orchestration in solution. my final debatched message(b) filtered by messagetype in a sendport. inbound message- a <root> <a></a> <b></b> <c></c> <d></d> <a></a> <b></b> <c></c> <d></d> <a></a> <b></b> <c></c> <d></d> <a></a> <b></b> <c></c> <d></d> </root> expected debatch results should have 4 messages each below final mesasge - b <root> <a></a> <b></b> <c></c> <d></d> </root> ...

Get regex pattern

hi, i want check "new incorrect id , label value element ref" in xml file using regex pattern ("\<ref id\=\"r|\"\>\r\n\<label\>|\<\/label\>") not worked. regex regitem = new regex(@"\<ref id\=\"r|\"\>\r\n\<label\>|\<\/label\>"); please check regex , give me right pattern for example : input : < ref - list id = "appj.rl1" > <title> references for appendix j </ title > < ref id = "appj.r1" > <label> 1 </ label > < citation citation - type = "journal" > < ref id = "appj.r4" > <label> 4 </ label > output : < ref id = "appj.r1" > <label> 1 </ label > < ref id = "appj.r4" > <label> 4 </ label > hi soniya, find below, 1 posssible approach. https://regex101.com/r/dq0iv7/1 string filepath = @"c:\ms...

How to order the custom tools options page?

hello, have worked on addin in vs2005. , need registering 2 custom tools options pages following code in addin file:  <toolsoptionspage>     <category name="options">       <subcategory name="general">         <assembly>addintest.dll</assembly>         <fullclassname>addintest.generalpage</fullclassname>       </subcategory>       <subcategory name="color">         <assembly>addintest.dll</assembly>         <fullclassname>addintest.colorpage</fullclassname>       </subcategory>     </category>   </toolsoptionspage> but made me dismayed have no way change order of options pages, want set general page first place.  can me? thanks he's referring tools\options dialog, not toolbox. the tools\options settings come registry.  pages sorted alphabetically because how retrieved registry.  suspect general special cased show first.  in fact i'm willing place mone...