Posts

synchronization - SQL Azure Data Sysnc Issue -

the use case distributed deployment of web application on azure using paas. read azure documentation on sql azure database geo-replication, , seems none of services tiers best fit need. other option sql sync, in preview , cannot used in production.it seems microsoft azure not have way redundant database centric application using paas model. please how resolve issue or alternate solution. akanksha both sql data sync , geo-replication database redundant using. need know detailed scenarios, can 1 more fit. geo-replication db level data synchronization used dr. sql data sync table level data synchronization used reference data replication both azure db , on-prem db.

html - How to insert password as Hash to Ms SQL in coldfusion? -

i creating form saves user registration. want insert password database hash or md5. this html form few coldfusion codes: <form id="myform" class="ui form segment" method="post" action="registeraction.cfm"> <p>let's go ahead , signed up.</p> <div class="field"> <div class="field"> <label>name</label> <input placeholder="name" name="name" type="text"> </div> </div> <div class="field"> <div class="field"> <label>email</label> <input placeholder="email" name="email" type="email"> </div> </div> <div class="field"> <div class="field"> <label>password</label> <in...

web services - Acessing windows schedules task from web -

i need expose scheduled tasks on windows server forecast tool. there way access tasks through webservice or service install? there nice powershell command get-winevent -logname "microsoft-windows-taskscheduler/operational" will avaliable log info

python - Django: Field 'X' doesn't have a default value -

the models.py of table : class testcaseglobalmetricdata(models.model): testrundata = models.foreignkey(testrundata) testcase = models.charfield(max_length=200) cvmtotalfree = models.integerfield(default=0) systemfree = models.integerfield(default=0) sharedmemory = models.integerfield(default=0) and part of code uses table testcaseglobalmetricdata(testrundata=testrundataobj, testcase=tokens['tc_name'], timestamp=tokens['timestamp'], cvmtotalfree=totalfree).save() when line executed following error seen, file "/web/memmon/eink-memmon/projects/process.py", line 382, in process_cvm_usage cvmtotalfree=totalfree).save() ..... warning: field 'sharedmemory' doesn't have default value i tried inserting table using python manage.py shell , works fine. the schema of table seen in mysql is +-----------------+--------------+------+-----+---------+---------...

arrays - how to measure apperance frequency of words in a text with PHP -

this question has answer here: count word frequency in text? [duplicate] 1 answer given text (here, convenience, i've put text (text)file), want know how many time(s) each word appear in text. php provides useful function : str_word_count , which, $format argument set 1 , returns simple array of words contained in $string . this code : <?php $lines=array_map("findwords",file("words.txt")); $text=[]; foreach($lines $line) { $text=array_merge($text,$line); } $words=array_count_values($text); //order array values desc, preserving keys $words2=[]; ($i=0;$i<=count($words)-1;$i++) { $numof=max($words); $key=array_keys($words,$numof)[0]; $words2[$key]=$numof; unset($words[$key]); } echo '<pre>'; print_r($words2); echo '</pre>'; function findwords($str) { return str_word_count...

ibm bluemix - Can user provided services be shared across multiple apps -

i creating logdrain service in bluemix apps: `cf cups myapps-logdrain -l <logdrain-endpoint>` can bind myapp-logdrain service multiple apps @ time? looked @ cloudfoundry documentation , played logdrain service cf cli. settings don't specify whether or not can shared. yes. log drain service(user provided service) can shared other service. you can differentiate logs different applications querying application guid and/or instance number. you may see logs similar following format: [date][log-service-name][application guid][app-instance-number][log-message] apr 21 00:35:44 bluemixlogs 3398064b-8de6-46dd-egf1-0dde35546496/[app/0]: sending logs 3rd party service : log info

c# - Unable to step-in to Recursive function breakpoint VS2013 -

i trying convert method loops recursion part of coding kata practices(trying solve problems recursive approach). there's nothing in logic the breakpoint not being hit anywhere in recursive method. i tried place logger(console output) check if method called nothing being logged. here's method definition(s): // original method loop public ienumerable<tuple<int, int>> getelementwithlargestdeltaontimeline(int[] a) { int runninglindex = 0; int currlvalue = a[0]; int runninghindex = 1; int currhvalue = a[1]; int currdelta = 0; (int = 1; < a.length - 1; i++) { if (a[i] < currlvalue) { currlvalue = a[i]; runninglindex = i; } (int j = runninglindex + 1; j < a.length; j++) { if ((a[j] - currlvalue) > currdelta) { currdelta = a[j] - currlva...