Somu

-4

votes
0

answer
8

views

how to prevent download file from websites [on hold]

I have try and searched lot of way to prevent the file download options from my web application .But i unable to do it .Anybody known , If is it possible please share the details to me.
somu
1

votes
1

answer
230

views

UnitTestIsolationException : Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables

I am using VS2015 with Update 3. I have a simple hello world unit test project where I am trying to get the shimContext , below is the code snippet. I am getting the exception at shimContext to create call: * Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException' occurr...
Somu
1

votes
2

answer
53

views

Adding Firewall rules with ip addresses for PAAS servers using Powershell

I have Azure environment and I have to add firewall rule into all Pass servers for different subscriptions. Server name and Resource groups are different for all subscriptions. For example: Enterprise\dev Subscription. Server RESOURCE GROUP SUBSCRIPTION caddvsql11 Dw...
somu
1

votes
1

answer
3.5k

views

Multiple Window problem in SELENIUM IDE

HI, I am using Selenium IDE for recording test cases. In a particular test case, I need to work on two windows simultaneously but the selenium IDE does not record when I open a new tab and work on it. Can anyone give me suggestions on this? awaiting replies !
somu
1

votes
1

answer
547

views

Calculating inverse Mod where Mod is not prime

I want to calculate value of F(N) = (F(N-1) * [((N-R+1)^(N-R+1))/(R^R)]) mod M for given values of N,R and M. Here A^B shows A power B and NOT any Bitwise operation Here M need not to be prime.How to approach this question?Please help because if M was prime that it would not have beed so difficult...
somu Boy
1

votes
1

answer
262

views

Need Dynamic Date in XML request (Shell Script) [duplicate]

This question already has an answer here: how to edit XML using bash script? 4 answers Need help, I have a XML request (request.xml) which I use to generate response using curl, below is the tag: 20150615 Can I make this date dynamic, so that, whenever I send my request it always take the future da...
Somu
1

votes
1

answer
83

views

Export unresolved list in RTC as a text document

I am using RTC with visual studio 2013. After I refreshes changes I get a list of files as unresolved. Is there any way by which I can save/export these file names as a text file.
Sudhir Somu
1

votes
2

answer
542

views

Start the ReactJS App without port

I am working on ReactJS application using create-react-app. The npm start and npm run build application is working fine, The application is running in a port number like 4000 or pushstate-server build in the port 9000, The problem is that I need to run the build application without port number in a...
Venkatesh Somu
1

votes
1

answer
0

views

Tabcontrol in VB.NET

Using VB.NET in Visual Studio 2005, how do you disable or make read only a particular tabpage?
somu
1

votes
1

answer
0

views

UnitTest in Python [duplicate]

Possible Duplicate: ValueError: no such test method in : runTest import unittest class BzTestSe(unittest.TestCase): DEFAULTUSERNAME = 'username-a2' DEFAULTPASSWORD = 'pass' DEFAULTHOST = 'localhots' def __init__(self,username=DEFAULTUSERNAME, password=DEFAULTPASSWORD, host=DEFAULTHOST): super(unitt...
Somu
1

votes
2

answer
244

views

Relating enums and using in generics

I need to create enums for countries and states. What's the most appropriate way to create and relate these enums (as in country X can have states P, Q, R and so on)? If I have a generic class parameterized with a Country type, can I declare a method which will accept a State only available to the s...
Somu
1

votes
3

answer
446

views

How to convert a inline assembly in a header file function to c++ function without assembly to support x64?

Can anyone help with converting the following inline assemly in a header file to corresponding x86-64 .asm file or c style function without assembly? extern const char hexlu[]; void _inline hextoascii(char* a_src , char* a_dest ) { _asm { mov esi, a_src; mov edi, a_dest; sub ebx,ebx mov edx,[esi+00]...
Somu Rajan
1

votes
3

answer
244

views

What is wrong with this algorithm?

I was trying to solve Project Euler Problem #2 : Find the sum of the even terms of the fibonaci series upto 4,000,000. Ex : Upto 1000, the sum is 2+8+34+144+610 = 798. Now, my algo was to add every third fibonaci number from 2 onwards - as every third fibonaci number is bound to be even following th...
Somu
1

votes
1

answer
26

views

Read data from CSV and write data to CSV - String to integer

I have a CSV file with 100,000 rows. Each row in column A is a sentence comprised of both chars and integers. I want column B to contain only integers. I want the new columns to be in the same CSV file. How can I accomplish this?
kartik somu
0

votes
2

answer
17k

views

mysql oledb driver

how to install mysql oledb driver in local system. please give Mysql oledb Connection string
somu
1

votes
3

answer
61

views

How to improve performance of relatively large table

I have a relatively large table (currently 3 million records). Which has columns: [id] INT IDENTITY(1,1) NOT NULL, [runId] INT NOT NULL, [request] VARCHAR(MAX) NULL, [response] VARCHAR(MAX) NULL And an Index as : CONSTRAINT [Id_Indexed] PRIMARY KEY CLUSTERED I have view on this table. when I do quer...
Somu
1

votes
1

answer
483

views

Find Control returns Null Exception

I am having an asp .Net page where i have a labe named rowId protected void testResultsGridView_onRowUpdating(object sender, GridViewUpdateEventArgs e) { string str = string.Empty; GridViewRow row = testResultsGridView.Rows[e.RowIndex]; Int32 id = Int32.Parse(((Label)row.FindControl('rowId')).Text);...
Sudhir Somu
1

votes
2

answer
54

views

Unable to linkfy with text with both email and URL in php

I am trying to write function which will linkfy (convert as hyperlinks) email and URLs in the given text, but facing issue while replacing email since it will have domain in it. can some please correct my code where it should replace domain name in email? Code Sample function linkifyMyString($noteTe...
somu.web
1

votes
1

answer
374

views

Choose XSLT processor depending on XSLT version

My application has many old stylesheets written in XSLT 1.0 and the new ones are being written in XSLT 2.0. With Saxon 9.6 many of the old stylesheets are not functioning properly, especially the ones using EXSLT set:distinct. Hence, I want to continue using Xalan to transform the old XSLT 1.0 style...
Somu
17

votes
2

answer
19.9k

views

Ignoring the PHP warnings in PHPUnit

Am using PHPUnit for unit testing my functions when ever any warning comes in code the test script will not be executed for that functions, can anyone tell me how to ignore the warnings and proceed with testing
somu.web
2

votes
1

answer
37

views

How to get the Populated values of a model in GraphqQL list without _id reference?

I have a Users model with some fields and reference to 'Skills' model. The models are look like this below 1.Users.js (users model) const mongoose = require('mongoose'); const Schema = mongoose.Schema; const UsersSchema = new Scheam({ name: { type : String }, email: { type : String }, address: { typ...
Venkatesh Somu
1

votes
1

answer
374

views

Validation message position is not updating on resize of window

I am facing problem with showing validation message in a proper position when change the size of the window, am using jquery validation engine along jquery mobile. When I submit the form the validation message will appear at correct position when rotate the screen or resize it the message will not...
somu.web
19

votes
4

answer
16.9k

views

Use app data directory in NLog file path

How can I set the target in the NLog.config file to create the log file in the user app data directory? Below is the desired location of the file. C:\Users\userid\AppData\Local...\LogFile.txt I tried setting the fileName in the following ways without any success. target name='logfile' xsi:type='File...
Somu
6

votes
3

answer
3.5k

views

How can I avoid Outlook's security warning when sending email programmatically?

I send email through Outlook using VB.Net 2005; this is working fine. At the same time, however, I receive the following message: A program is trying to automatically send Email on your behalf. Do you want to allow this ? if this is enexpected, it may be virus and you should choose no. Is there any...
somu
2

votes
2

answer
757

views

Looping over a Cfquery or a Struct?

I have a query which retrieves Some data. I want to display that data considering some conditions in different div tags. Now my question is, I am doing this by looping the query once and getting the data in three different structs and using these structs while displaying. Is this a good approach o...
Somu
5

votes
2

answer
4.2k

views

How to loop all variables in VelocityContext?

In my Velocity template (.vm file) how can I loop through all the variables or attributes present in VelocityContext? In reference to the below code, I would like the template to write the names and count of all the fruits passed in context. Map attribues = ...; attribues.put('apple', '5'); attribue...
Somu
2

votes
2

answer
2.7k

views

Currency conversion api using php [duplicate]

Possible Duplicate: Programmatically access currency exchange rates Is there any api which provide exact converted value of currency? I have used google and yahoo api but they are not giving required result for VND(Vietnamese dong) to US dollars.
somu.web
2

votes
2

answer
591

views

Set orientation of signaturepad to landscape mode always in IOS MVVMCROSS application

I have implemented signaturepad for my ios application. (Its not a native application. I am developing using MVVMCROSS platform. I wish to set the orientation of this signature pad in landscape view always. I am unable to find any parameters for the signaturepad frame. var signature = new Signatur...
Somu
1

votes
1

answer
1k

views

REST API design for non-CRUD actions, e.g. save, deploy, execute code

Resource in my REST API context is application code written in some programming language. CRUD operations that can be easily mapped to HTTP verbs are save/edit/delete code. Non-CRUD operations that are difficult to map to HTTP methods are deploy the code on server, execute the code, and undeploy. Co...
Somu
5

votes
3

answer
1.2k

views

ShallowEtagHeaderFilter does not work under WAS8 app server

org.springframework.web.filter.ShallowEtagHeaderFilter is unable to set response header under WAS8 application server stating 'WARNING: Cannot set header. Response already committed'. However this works fine when tested under Tomcat server. ShallowEtagHeaderFilter is indeed wrapping the original res...
Somu
7

votes
2

answer
1.2k

views

Tomcat servlet mapping error after Broken pipe error

We have implemented Servlet 3.0 AsyncContext in Tomcat Version:7.0.23. It is runing in RHEL 6.1 using OpenJDK version 1.6.0_24,64-bit server The app is working fine for most part. When there is some disturbance in the network, the update from the server is not able to reach the client as there is a...
3

votes
2

answer
621

views

What happens when you pass a non-associative array to json_encode()?

My code is : As you can see, I'm passing a non-associative array to json_encode(). The Output I get is Array ( [0] => One [1] => Two [2] => Three ) ['One','Two','Three'] What exactly is the second line of the output? If we pass an associative array to json_encode(), what is returned is a JSON Objec...
Somu
3

votes
0

answer
586

views

Swift 4 iOS 11 : Success closure for UIApplication.shared.open to make phone call is different for ios11

I am trying to make a phone call using UIApplication.shared.open(url as URL, options: [:], completionHandler: { success in However, for iOS 10.3+ i get success closure when call is placed successfully or user hits cancel on prompt For iOS 11 however the success closure is when you successfully open...
Somu
3

votes
1

answer
127

views

Regex.IsMatch returns two different output in C#

I'm trying to find match between a string and pattern using Regex.IsMatch(). I framed the regex and tested it using regex101.com it works fine. Now problem is that Regex.IsMatch(filename, curSetting.RegExMatch.ToString()); returns true curSetting.RegExMatch.IsMatch(filename)) returns false for same...
Sudhir Somu
3

votes
0

answer
7k

views

3D reconstruction with opencv and point cloud library

I am working on a project which involve 3d reconstruction and rendering of the 3D scene , I have done up to disparity image and generated the 3D coordinates using opencv 2.1 and after that I am trying to render the 3D scene using point cloud library here I am gtting a crash in the code . I am using...
somu_mtech
36

votes
5

answer
59.6k

views

Split string and trim every element

Is there any library API or regex pattern to split a String on some delimiter and automatically trim leading and trailing spaces from every element without having to loop the elements? For example, on splitting ' A B # C#D# E # ' on # the desired output is [A B,C,D,E] The closest I got is st...
Somu
3

votes
6

answer
27k

views

how to Zip files in vb.net 2005 [closed]

How to zip files(Any files or folder ) in vb.net 2005?
somu
3

votes
5

answer
43.9k

views

DataGridView header alignment

I am using vb.net 2005. I want one clarification for datagridview. I use the following property to set the alignment of header text: DataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomCenter This property applies to all header cells. I only want to change one...
somu
3

votes
1

answer
6.2k

views

Call Using GSM modem

I am developing Sms Project in vb.net.I can Send and receive Sms Easily. I can attented Incoming call and dial. but not hearing and talk. I connected with com Port. This is possible or not for talking and hearing. please tell me
somu
38

votes
2

answer
18.3k

views

What is OncePerRequestFilter?

Documentation says org.springframework.web.filter.OncePerRequestFilter 'guarantees to be just executed once per request'. Under what circumstances a Filter may possibly be executed more than once per request?
Somu

View additional