Click here to Skip to main content
15,913,027 members

Comments by dfarr1 (Top 24 by date)

dfarr1 26-May-18 19:47pm View    
First and foremost, you’ve offered no solution. Clearly the point here is to secure the data, otherwise there would be no point in this. I’m here asking for help on securing a web.config, which is useful whether it’s an EHR or any other web application that has connection strings, for that matter.
dfarr1 18-Mar-17 1:33am View    
This snippet came out of a 3-level nested loop in a program that analyzes variances in individual nucleotides across an entire genome. Debugging is great but I cannot interpret the variables line by line. I've narrowed the issue to what I believe is an error transcribing and filling an array, but since Python is looser than I'm comfortable with, I've asked for someone to check and see if my interpretation is functionally equivalent or if there's a better way to translate this snippet.
dfarr1 6-Jan-17 18:53pm View    
Excellent code, Alberto. I did have to tweak the lists a little bit, but for the most part that was great. Here's what I went with:
var df = new ArrayList();
var bs = new ArrayList();
ArrayList[] percentiles = new ArrayList[100];
for (int i = 0; i < percentiles.Length; i++)
{
percentiles[i] = new ArrayList();
}
var line_idx = 0;
foreach (var line in File.ReadLines(in1))
{
var cols = line.Replace(Environment.NewLine, "").Split(new[] { '\t' });
df.Add(float.Parse(cols[0]));
for (int j = 1; j < 9; j++)
{
percentiles[line_idx].Add(float.Parse(cols[j]));
}
var rx = (Convert.ToDouble(percentiles[line_idx][2]) + Convert.ToDouble(percentiles[line_idx][0]) - 2 *
Convert.ToDouble(percentiles[line_idx][1])) /
(Convert.ToDouble(percentiles[line_idx][2]) - Convert.ToDouble(percentiles[line_idx][0]));
bs.Add(rx);
line_idx++;
}
dfarr1 6-Jan-17 12:44pm View    
Well actually working with the csv and the delimiting character is pretty easy - the issue at hand is the code snippet, which I just haven't been able to logic.
dfarr1 24-Sep-14 13:01pm View    
This looks like the right thing, but there's not much explanation on the page... anywhere this might be discussed further or have broader example code?