Home » Programming

C# Random Number Generator, MessageBox

Question:
I need to write a program that generates 100 random numbers between 0 and 1000, displaying the number of even values generated as well as the smallest, largest, and the range of values. The output has to be displayed in a Windows message box.
I am new to C# and this is a bit over my [...]

How do I change this code

Question:
this code is great.
#!/usr/bin/perl
unlink (‘result.txt’); #delete result.txt
open (IN,”master.vim”) or die;
open (OUT,”>>result.vim”) or die;
$pos=1;
#position number you can change
while (<IN>){
my @a=split (/,/,$_);
next if ($a[0] >= 1 && $a[0] <= 14 && (($a[2] >= 1 && $a[2] <= 12)||($a[2] >= 32 && $a[2] <= 70)) );
if ( ($a[$pos-1] < 15) or ($a[$pos-1] > 49) ) {print OUT $_;}
}
close [...]

Create webpage thumbnail on the fly

Question:
Is there any way in asp.net (bv) to send in a webpage url and have a thumbnail of this webpage automatically created on the fly?
This is for a search results page which returns a list of webpages, i want it to automatically create and show a thumbnail of the page.
Solution:
Hi AWSHelpdesk,
Check this articles:
http://www.beansoftware.com/ASP.NET-Tutorials/Get-Web-Site-Thumbnail-Image.aspx
http://www.eggheadcafe.com/tutorials/aspnet/b7cce396-e2b3-42d7-9571-cdc4eb38f3c1/build-a-selfcaching-asp.aspx

Publishing my website online using JSP

Question:
I’m new to web development and would like to know how i can publish my website online.
I have my own web domain and have developed my website.
I would like to know
+how i can publish my website?
+I hve my own static ip address can I host my site using my own storage?
+If i can host my [...]

Change Program to input from Txt File

Question:
Hello Again,  Next Assignment, new Problem!
I have written my program using manual input from keyboard, works great!  Now I need to change it to read in from a file and write out to a file that I can read back in later. I also need to add a linked list and I am not sure [...]

Script help

Question:
Hello,
I have a file as in the text document attached. We need a script (Bash/Perl) that can take this file as an input and gives the results as follows:
HOSTNAME         NO OF LINKS
————————————–
rwbllm01              12
nasllm01-ih               8
orallm40               36
Explanation:
i) The strings under the Hostname column are a extracted string between 2 single quotes.
Ex:   (‘rwbllm01′  -> rwbllm01
ii) The values under [...]

Why won’t my jQuery navigation work?

Question:
Hello,
I’m trying to make a header where when you mouseover an item from the navigation bar, the div with the id ‘glow’ will move to just below that spot. Also, note that each li tag has its own width. So I attached my code, and I need to know why my code isn’t functioning at [...]

numpy questions

Question:
Hi,
I have a matrix A of 64 by 64 and I want the power of it, i.e., A^10.  The object is of type array in numpy.
Also other questions:  how to convert an object from array to matrix in numpy?
Solution:
http://www.syntagmatic.net/?p=3
http://www.scipy.org/NumPy_for_Matlab_Users
http://www.ibm.com/developerworks/linux/library/l-matrix.html
http://www.scipy.org/Numpy_Example_List
http://www.scipy.org/Tentative_NumPy_Tutorial
http://www.experts-exchange.com/Programming/Languages/Scripting/Python/Q_21595299.html

Display the asp:GridView in tilted direction ..!

Question:
I want to display the header or table of asp:GridView in Y axis.
Normal gridview displays in X axis.
This is because, i am trying to generate a .pdf file from .aspx page.
I am not using Report Generator.
So how to display a asp:GridView in Yaxis direction.
Solution:
http://stackoverflow.com/questions/333181/a-question-about-datagrid-and-sql-query

Exporting .aspx page to .pdf or directly to print out. VS 2005

Question:
I am working on VS 2005 to generate report on A4 Size.
I need to display images and a grid view in a Vertical direction.
As crystal report has its own limitations, i decied to export .aspx to .pdf or directly to a print out.
I am looking for more suggestions to finish my task, I am open [...]