The problem asks: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as shown in the following sample run: Enter number of lines: 7 [CODE=text]......1 .....212 ....32123 ...4321234 ..543212345 .65432123456 7654321234567[/CODE] (except the example given shows spaces in between the #s in the pyramid & did NOT include the "." I'm using those for placeholders - this is supposed to look like a perfect pyramid - all of the 1's are in a vertical column, all the 2's are in a vertical column, etc.) I understand how to get the …

Member Avatar
Member Avatar
+0 forum 16

Hi, I'm in need of assistance with mod_rewrite. Currently, I've a folder at www.domain.com/folder. I need to leave the files where they are, but have the address bar in the browser appear as someothername.domain.com Any help would be greatly appreciated! I should mention that I've already got a few .htaccess rules in place, as shown here: Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.+)$ index.php?$1 [QSA,L] Thanks in advance, -Ray

Member Avatar
Member Avatar
+0 forum 1

hello everyone, i have a little problem in ASP with my friend's master project, there is a database which saved images paths in it; when she want to preview an image in an image control the path is readed correctly (she previewed the path in a textbox to check) but the image is not shown. is there anyone can help us in this problem please. we are even ready to pay. thanks all.

Member Avatar
Member Avatar
+0 forum 2

I am working on an app where i would scan a coupon and it would find the matching upc in a sqlite database that i have created and place all of the details from that table into a new table for my personal coupon library. I was getting an error that the database could not be found so I looked here http://stackoverflow.com/questions/16640604/cant-open-database-from-assets-folder-android for help but I am still getting the IOException that yhe database cant be opened. can anyone help? My code is shown below: scanListener.java import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.ActivityNotFoundException; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; …

Member Avatar
Member Avatar
+0 forum 3

Hi, The ticket counter program looks fine, but I have ran into a different problem. It is regarding about the transaction class (lines 64 - 110). After I input the number of tickets to print out, it will register to the transaction class. But when I want to view the transaction once, the total quantity shown is normal. When viewed twice, the quantity will double or increment. import java.util.*; class Transport { protected double price; // Price per person for each transport protected int seatsRemaining; // Number of seats remaining for each transport public double getPrice() { return price; } …

Member Avatar
Member Avatar
+0 forum 1

**Student and Courses Record Management System (LinkList of LinkList)** In this Assignment you need to create a small student and courses record management system with following functionalities. 1- Add New Student This function will allow you to add a new student record,you can use any three attributes of your choice for entity student. 2- Add New Course This function will allow you to add a new Course record, you can use any three attributes of your choice for entity Course. 3- Assign Course to Student In this function you need to take the id of the student for you want …

Member Avatar
Member Avatar
+0 forum 3

Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve this task, But we found out Microsoft doesn't recommend using MS.Interop libraries on server side and they instead suggest using OpenXML. Using MS.Interop libraries we were able to do this with just a few lines of code shown below foreach (Shape shape in aDoc.Shapes) { if (shape.Type == Microsoft.Office.Core.MsoShapeType.msoAutoShape && …

Member Avatar
+0 forum 0

Hi experts. I'm in need for your help. is it able to create a software who can check if a text file contain a text for example Words.txt has few words inside like: "work, job, play, study, go, house" and at Words1.txt have words like: " People, fun, jokes" can the software pick People from Words1.txt and play from Words.txt? like this is not possible I know but I was thinking for something like after the word at the .txt file have a description or tag. something like: Ani | Human, my friend, boy Car | Vecycle, object with 4 …

Member Avatar
Member Avatar
+0 forum 17

Hi, I've been given a task of printing from a grid in VB6 and came across the article shown below. https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/431714/print-from-mshflexgrid-in-vb-6-0 I've implemented the code provided (re-typed, not copy/paste) and when I run it I get a run-time error 383 saying the printer properties are read only. For example, if I try to set the orientation to landscape by coding Ptr.Orientation = 2 the error tells me that the 'Orientation' property is read only. If I comment this line out, I get the same error on the next printer property, for example, Ptr.CurrentY. I'm correctly identifying the default printer and …

Member Avatar
Member Avatar
+0 forum 5

I have a custom ListCell in which I have methods to move the position of the cell to the right or left, but I want a button to be shown similar to deleting a Conversation in Messages on iPhone. If I add a new ImageView, which will act as the Button, then set it to the right position, and of course set the Graphic of the Cell, then it would just appear on the right side visible even without sliding it. How would I add the ImageView underneath the Cell and when I slide and adjust the position of the …

Member Avatar
Member Avatar
+0 forum 3

**5. Consider a data file named STORES.DAT, which contains inventory information for four shops. Each line in the file contains the inventory of five types of merchandize in each store. Write a program to perform the following: (a) Read the data into a two-dimensional array invent(4,5). (b) Produce the output shown below, which includes: - finding the total inventory of all items in each store - finding the maximum quantity of each item THE OUTPUT: ITEMS ,#1 #2 #3 #4 #5 TOTAL - - - - - - - - - - - - - - - - - STORE#1 …

Member Avatar
Member Avatar
+0 forum 3

I have just seen a resurrected thread about issues with loading images to a PictureBox and the inability to delete the file while the program is running. There was no clear explaination of the problem, only suggested hacks and apparent frustration. So I thought I would offer this explanation from [Microsoft](http://support.microsoft.com/kb/814675): > **SYMPTOMS** > When either a Bitmap object or an Image object is constructed from a file, the file remains locked for the lifetime of the object. As a result, you cannot change an image and save it back to the same file where it originated. > > Additionally, …

Member Avatar
Member Avatar
+0 forum 2

I am doing a TCP server & client communication. I would like to display the received data (from client) on the textbox of the server. When i used txtStatus.AppendText, it works perfectly fine. But when i changed to txtStatus.Text, nothing was shown in the textbox. I have tried using txtStatus.Text += recMovementData.BaseMoveData.BaseMov.ToString(); but to no avail. :-( It should work as it is the same as .AppendText but it doesnt :( Can anyone help me with this? This is my code for my server: private void btnListen_Click(object sender, EventArgs e) { //IPAddress ipaddress = IPAddress.Parse(txtIP1.Text + "." + txtIP2.Text + …

Member Avatar
Member Avatar
+0 forum 1

hello my problem this time is i have an multidimensional vector and the example of adj vector is showen in the attached picture and i wanna know the size of each one i mean in i=0 the size is 2 i declare a new vector degree to put in it the size as shown in the code: vector<int> degree; for(int i=0; i <n ; i++ ) { degree[i] = adj[i].size(); } cout << "the degree are: \n"; for (int i = 0; i < n; ++i) { cout << degree.at(i) << ", "; } but when i compile it i …

Member Avatar
Member Avatar
+0 forum 2

I have joined the thousands who have done it before, and have compared a number of sorting routines. The sorting is done on the same random-integer arrays. No surprises, quicksort wins this simple comparison hands down. There are clever combinations of sorting routines that are faster, like the snippet by Narue shown in: [url]http://www.daniweb.com/code/snippet61.html[/url] There is also an expert treatise on sorting at: [url]http://www.eternallyconfuzzled.com/tuts/sorting.html[/url]

Member Avatar
Member Avatar
+2 forum 2

Hello, I am writing a small 'program' using MS Visual Studio 2013. I would like to read in a few tags from the ID3 headers of media for each file to be written to an XML file. I've used taglib and a few other ID3 libraries but I cannot use them without throwing errors. I even used the NuGet package installation for Taglib and Taglib Portable which loads the classes into my project and sets proper declarations. However, every code that I can possibly find online about using the library throws a handful of errors. Since I am using WMP.dll …

Member Avatar
Member Avatar
+0 forum 4

Hi. I have created two tables :Artist and Song .Artist table has fields Artistid and ArtistName and Song table has SongID, Lyrics,Description and Artistid as the secondary key.I have a web form to add new artist containing a textbox and submit button . The code is as below : <head id="Head1" runat="server"> <title></title> </head> <body> <form id="form1" method ="post"> <div style="width: 960px; color: black; border: 2px solid black; padding: 5px; text-align:"center"> <table> <tr> <td> <label>Artist: </label> <input type="text" name ="textArtist" id ="txtartist" value = "" /> </td> </tr> <tr> <td> <p align="center" > <input type = "button" id= "btnArtist" value …

Member Avatar
Member Avatar
+0 forum 9

Below is my database structure: PostUUID subid pricing Name Poscode abc1 1 100 userA 56000 abc2 2 100 userA 56000 abc3 1 100 userB 56000 abc4 2 100 userB 56000 abc5 1 100 userC 56000 abc6 2 100 userC 56000 Now I want to perform search on this table called 'posts'. Say I want look for PostUUID(field) where the details are as below: **-subid =1,2 -postcode=56000 -pricing-100** In the above database image, there are 3 users meeting these criteria, namely vani,kalni and nair. So the result should return 6 rows with unique PostUUID. My query: $a=$data['sub']; foreach($a as $v=>$k) { …

Member Avatar
Member Avatar
+0 forum 2

I am brand new to Visual Studio so please forgive my current lack of knowledge but I've tried searching everywhere for this and am relatively surprised that I couldn't find something about this elsewhere. I am using a currently using an Openfiledialogue with multi-file selection allowed. It then adds the files into a ListBox. I plan on eventually switching to going with FolderBrowserDialogue but that should not change what I am trying to find out now. I use SafeFileNames (as shown below) to print only the filename and file extension to the listbox as using FileNames looked horrible in the …

Member Avatar
Member Avatar
+0 forum 1

I did my disk partition in windows7 to increase storage volume of C: drive , using "easeUS disk partition". after the partition was shown successful, my computer restarted but it went to rescue mode. i tried to slove the problem but i can only boot linux OS. when i try to select windows7 loader, it again goes to rescue mode.. what should i do now?

Member Avatar
Member Avatar
+0 forum 1

Hi, Basically I have a graph that is bound from a DataTable which source is from a DataGridView. I have zoomable functions on the graph and I need it use X Axis SelectionStart and SelectionEnd in order to calculate the block of data that is selected. So I have some minimums maximums and averages placed in a richtextbox on another tab. As shown below in the code: //To show the Data from file into the TextBox richTextBox1.AppendText("\n" + "Heart Average : " + HRM.Active.DataRows.Average(r => r.HeartRate) + "\n"); richTextBox1.AppendText("\n" + "Heart Minimum : " + HRM.Active.DataRows.Min(r => r.HeartRate) + "\n"); …

Member Avatar
+0 forum 0

Hey, i dont know how this is called but i have ideas and if it possilbe that someone can help Help me about this: i have file index.php and 2 folders called: blue, red. in these 2 folders therse a pages that content the same backgroundcolor as the foloders name. like in the image: is that possible to make a query on the index.php that get the content of blue or red. exmple supose mysite called querytest.com/?q=blue , so the blue content should be shown. the problem how can i knew that the requsted page that called by user "x" …

Member Avatar
Member Avatar
+0 forum 5

Hello I was wondering if it is posible to show the user profile along with the products information let suppose if I had shown th the produtcs information can i show the information of the user who uploaded this prodcut. $query2 = "SELECT * FROM users, products; $get_user = mysqli_query($connection, $query2); while ($row_user = mysqli_fetch_array($get_user)) { echo "<div class='col-m'><h2 class='info-heading'>WATCH WORLD NYC</h2>"; echo "<div class='prod-info'><div class='pbox-s'><span>ID:</span></div><div class='pbox-m'>". $row_user["u_id"] ; echo "</div><div class='clear'></div>"; echo "<div class='pbox-s'><span>Name:</span></div><div class='pbox-m'>". $row_user["user_name"] ."</div><div class='clear'></div>"; echo "<div class='pbox-s'><span>Phone:</span></div><div class='pbox-m'>". $row_user["phone"] ."</div><div class='clear'></div>"; echo "<div class='pbox-s'><span>Fax:</span></div><div class='pbox-m'>". $row_user["fax"] ."</div><div class='clear'></div>"; echo "<div class='pbox-s'><span>Mobile:</span></div><div class='pbox-m'>". $row_user["mobile"] ."</div><div class='clear'></div>"; …

Member Avatar
Member Avatar
+0 forum 3

hello friends i need help in c++ programe i want to print the diamond of the type shown in picture any one help me in this regards............................ if possible then send me email at <snipped email>

Member Avatar
Member Avatar
+0 forum 5

Hi., I'm new to php using yii framework.The radiobuttons in the radio buttonlist are not displayed in IE9 and above.The code written is as follows. The radio buttons are displayed well in all the remaining browsers and also below IE-9(even not in IE-9). how to resolve this issue. <div class="services_opts"> <ul> <li class="house_cleaning"> <div class="row-fluid"> <?php echo $form->radioButtonList($homeModel, 'HouseCleaning', array('1' => 'Please clean my house', '0' => 'Not Required'), array('separator' => '     ', 'class' => 'styled', 'id' => 'HomeServiceForm_HouseCleaning')); ?> </div> </li> <li class="car_wash"> <div class="row-fluid"> <?php echo $form->radioButtonList($homeModel, 'CarCleaning', array('1' => 'I want my car to be washed', …

Member Avatar
Member Avatar
+0 forum 1

The End.