199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for msrikanth

Hi, I Want a shell script, when i run it should print the current row & column number of the terminal in which is invoked , so how can i get the current row & column number in the linux . Thanks Srikanth M.

Member Avatar for msrikanth
0
2K
Member Avatar for karoma

I'm trying to create an array of structs, of which the array size is defined by the user in the program. eg. p[0], p[1], p[2]..... [CODE] typedef struct { int score; }player; void main() { int numPlayers; printf ("\nEnter number of players (1 - 4)\n"); scanf ("%d", &numPlayers); }[/CODE] The …

Member Avatar for death_oclock
0
225
Member Avatar for sha1023012

I am writing a code and I am somewhat new and this is kinda throwing me off. Here is my code: [CODE]private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { textBox4.Visible = true; textBox5.Visible = true; } else { textBox4.Visible = false; textBox5.Visible = false; } } } }[/CODE] …

Member Avatar for Jx_Man
0
152
Member Avatar for dmv091

Hello I am new to Dani web but here it goes. I am trying to create a game that called Three button monte i am using graphics from zelle but and i will upload the proper code to go alone with mine. My problem is when it comes to checking …

Member Avatar for woooee
0
468
Member Avatar for Mongooseman

In my Senior English class, we were assigned a research paper based on our prospective vocation, and for it I chose Computer Science, specifically software engineering. One of the requirements of the project is that I have two interviews as sources, but I don't personally know anyone who works in …

Member Avatar for hua052011
0
187
Member Avatar for PrimePackster

Problem: "Error highlighting on the go" not working (Syntax, Semantic & Type errors). IDE: Microsoft VC++ 2010 Express Edition + MSQL Basic. So far: Googled & Went through options in Options>>Text Editor>>C/C++>>Advanced. So please help me.... How can i turn it back on???

Member Avatar for Ancient Dragon
0
182
Member Avatar for slygoth

Hey guys i need to color code [CODE] printf("hello World");//how do i change this to green printf("How are you");//How do i change this to yellow or something [/CODE] How do i change the color of the text inside the printf

Member Avatar for Ancient Dragon
0
138
Member Avatar for ozzyx123

hi everyone i have made a program which extracts information from an email account, it extracts the date, the sender, number of copies written in the body, and it extracts the pdf file from the email and puts it into a directory, it also counts the number of pages in …

Member Avatar for ozzyx123
0
1K
Member Avatar for vyrte

i'm writing a program in c++ using linux and i face the following issue: i want to tell the difference between a hard link and a file,given a path. To be more specific, i consider that it is the file itself when there's only one hard link pointing to the …

Member Avatar for BobS0327
0
187
Member Avatar for danielsikes

Hi, I am in need of parsing some html code. Here is an example of what I am trying to do, but not quite sure how to do it. [CODE] <tbody><tr> <td>1.</td> <td><a href="something.php?y=US&amp;id=197003">Some Name Here</a></td> <td>City, STATE</td> <td class="noWrap"></td> <td class="noWrap">123-456-7890</td></tr><tr class="altRow"> <td>2.</td> <td><a href="something.php?y=US&amp;id=113762">Another Name</a></td> <td>City, STATE</td> <td …

Member Avatar for danielsikes
0
136
Member Avatar for nekoleon64

[ICODE]#include <iostream> using namespace std; void GetRoomTiles(int WidthFeet, int WidthInches, int &TotalWidth, int LengthFeet, int LengthInches, int &TotalLength, int TileSize, int &RoomTiles); void GetTotalTiles(int RoomTiles, int &TotalTiles); void GetNumberOfBoxes(int TotalTiles, int TileBoxes, int &ExtraTiles, int &NumberOfBoxes); int main() { int NumberOfRooms; int TileSize; int WidthFeet, WidthInches, TotalWidth; int LengthFeet, LengthInches, …

Member Avatar for VernonDozier
0
282
Member Avatar for DMBoston

I am trying to building this program to run 10 times and then calculate at the end with needHelp if 75% or more was correct or incorrect. For each random number multiplication question correct and incorrect messages come up. I have been working on this for 3 days and it …

Member Avatar for DMBoston
0
164
Member Avatar for nishant3316

hi, I recently wrote this code to calculate the hamming distance between any two binary numbers... The program accepts the numbers in decimals, performs a bitwise XOR operation and returns the HD... However, it returns the Hamming distance in decimal... that is if after XOR it gets something like 0010... …

Member Avatar for SHIVANGII
0
627
Member Avatar for maxinville

Hello everybody, I am new to Java, I am creating a simple application that will insert into my database, but what I really want is, I have a class called product which contains the jTextfields of the product description and product qty and a button called test, and I also …

Member Avatar for maxinville
0
688
Member Avatar for JHoover10

This is what I need my program to do: 1. Ask the user to enter the number of points. 2. Ask the user to enter x and y positions for each point. Store the positions in a 2-D array. What should the dimensions of the 2-D array be? 3. Compute …

Member Avatar for SW7
0
1K
Member Avatar for showman13

Good Morning All, OK, so here is the deal... I have a membership site that at some point in time (very soon) I will have an event take place that will require me to produce printed reports... I have the scripts written to gather the information from the DB, and …

Member Avatar for showman13
0
162
Member Avatar for DOMINATIONINPRO

Allo. I am finishing up my coding project and I am going nuts trying to figure out what I'm doing wrong. I thought I finished my ISBN checker code properly, but when I finish imputing the ISBN number that is valid, I get "The ISBN number is valid", but I …

Member Avatar for JamesCherrill
0
129
Member Avatar for zacharysr

Hello. I allow members to post statuses on my website and i want to check links. And if that text includes "www" i want to make that a link. How would i check this everytime i pull the status from the database to show it on the page

Member Avatar for zacharysr
0
198
Member Avatar for garden4ork

Hey all again, I'm just wondering how you could get a graph to represent your data file (Such as a ValueListEditor) as I've had no success in managing to read from it or how it can be done. Wanting something like this; Video(5) DVD(8) CD(2) Video..|----- DVD....|-------- CD......|-- ...........|____________ Many …

Member Avatar for pritaeas
0
269
Member Avatar for chris007

Hi guys. I have an activex which was installed to my computer by an other application.. i will be clear, I DO NOT WANT TO "STEAL" their files etc.. So i made a project using "their" ocx and my project works fine. I copied their ocx file to my bin/debug …

Member Avatar for chris007
0
138
Member Avatar for dushtu.bor

Hi, here is my codes, its doing show binary tree. But the problem is, maximum ids show easily, but some ids are not showing anything, give a blank page, totally blank, without any error. How to check where is wrong? First parent id not showing anything, if i run it …

0
118
Member Avatar for Johnathon332

Hi guys, I was wondering if this was a good place to use a goto statement? I know this will get stuck in an infinite loop eventually and I am working to fix that right now. However I wanted everyones views on whether or not this is acceptable, the goto …

Member Avatar for mike_2000_17
0
189
Member Avatar for nosehat

Is there an easy way to modify the contents of a zip file inside the archive, without unpacking everything to a temp directory, making the change, then packing it all up again? I've got a whole bunch of zip files, each one with a bunch of plain text files (html, …

Member Avatar for nosehat
0
1K
Member Avatar for me!

I wanna make the frontpage of a JOOMLA website look like a blog with the image to the left and the intro text to the right with a readmore link on the bottom. So far I got it, however the code below grabs the first image of the article and …

Member Avatar for me!
0
504
Member Avatar for tabish saroha

Dear All, I want to develop a network application in java based on HTTP.. In which one server and other is client application..... The problem is that, How can I check whether a server ip address is valid or not ? Please tell me... I am very thankful to you.... …

Member Avatar for DavidKroukamp
0
204
Member Avatar for gozo12

hello in DataGridView1 control there is 3 items i want when you for etc select item , "number 1" then do something like when i use listbox selected item [CODE] If ListBox1.SelectedItem = "1" Then textbox1.text="hello" end if[/CODE] if like if DataGridView1.selected item ?

Member Avatar for Jx_Man
0
123
Member Avatar for gogs85
Member Avatar for BobS0327
0
545
Member Avatar for naheedkassam

hi, I have a web form that consists of several Radcombobox. The first combobox gets its list from a database. After selecting a value from this combobox i would like it to update the text shown on the second Radcombobox. The autopostback is always resetting the value of the second …

Member Avatar for naheedkassam
0
185
Member Avatar for Yarra

[B]I have a timer class that prints out a string every 5 ticks, and on the 6th tick it runs a random event. now what i want is to have the timer to restart from 9 ticks. As i tried to do with the else statement in the MyTask Class …

Member Avatar for Yarra
0
183
Member Avatar for caltech

[QUOTE] 1. Print the following heading at the top of the output page: Miser Corporation Payroll 2. Read an unknown number of employee data records as shown below. Each group of data will contain an employee's name, hours worked, rate of page and age. A typical group of data will …

Member Avatar for caltech
0
302
Member Avatar for christos312

Hello, I have a question, I am using the following jQuery code to get some data from a database [CODE] $('#CountryA1').keyup(function(){ var country = $('#CountryA1').val(); $.get('test.php',{name: country},function(data){ $('#test').html(data); }) });[/CODE] Now, the <p> HTML tag with id test shows me these data [CODE][{"id":"4","Description":"Bosnia-Hercegovina"},{"id":"9","Description":"Cyprus"},{"id":"10","Description":"Czech Republic"},{"id":"17","Description":"France"},{"id":"20","Description":"Greece"},{"id":"21","Description":"Croatia"},{"id":"25","Description":"Iceland"},{"id":"28","Description":"Liechtenstein"},{"id":"32","Description":"Monaco"},{"id":"34","Description":"Macedonia"},{"id":"49","Description":"Vatican City State"}][/CODE] But using Chrome Inspect …

Member Avatar for christos312
0
189
Member Avatar for boiishuvo

[CODE]info = '''<table> <tr align = "center"> <h1> Lachlan Osborn </h1> <p> Address: 5 Smith Street, Manly <br> Date of Birth: 26th April 1993 </p> <a href="semester.html"><b>My Semester Units</b></a> <p><b>Check out my <a href="hobbies.html">hobbies.</a></b></p> </tr> </center>''' def remove_html(text, info): import re text = re.sub(r'<.*?>', '', info) return text remove_html(text.strip())[/CODE]

Member Avatar for snippsat
0
287
Member Avatar for nekoleon64

My name is Leonard Norwood Jr. If anyone knows a program that will estimate the number of boxes of tile needed for a job. A job is estimated by taking the dimensions of each room in feet and inches and converting these into a multiple of the tile size (rounding …

Member Avatar for nekoleon64
0
552
Member Avatar for bavenbabu

I am new in creating XML file using php..I wrote a code but the code doesnot show xml file on running it..Can anybody figure out what the problem is the code is as follows <?php $dom = new DOMDocument('1.0', 'UTF-8'); $root=$dom->createElement("xml"); $dom->appendChild($root); $title=$dom->createElement("title"); $root->appendChild($title); $path=$dom->createElement("path"); $title->appendChild($path); $title=$dom->createTextNode("pepperoni"); $path->appendChild($title); echo $dom->saveXML(); …

Member Avatar for blocblue
0
245
Member Avatar for razamughal67

Hello to all i want to format usb drive in vb6 we use a drive box 1 command botton 2 labels 1 check box and 1 loading bar we want to do when i select a drive in drive box example: D:\ Drive the label caption show drive memory size …

Member Avatar for Jx_Man
0
465
Member Avatar for Ahmed2

hello there, I'm trying to sort a list according to the "length" paramter in ascending order, which represents the third coloumn. List elements are read from a csv file contains 9 coloumns, I only push 6 coloumns in "futurelist" which is the information i'm intersted in. //input csv data [CODE] …

0
116
Member Avatar for solomon_13000

I attempted to set up pagination for the datalist control. However when I click next link the next image doesn't display. Then when I click previous the first image is displayed. Did I miss something in the code? [CODE] <table border="0" width="800" bgColor="#ffffff" height="644"> <tbody> <tr bgColor="#ffffff"> <td height="173" colspan="2" …

0
122
Member Avatar for boiishuvo

I want this program to read a text file then target and replace anything start with < and end with > for example it finds <html>, replace that into **** but somehow i tested it and it didn't work than i expected. any suggestions? [CODE]def remove_html(text): txtLIST = list(text) i …

Member Avatar for boiishuvo
0
448
Member Avatar for sellelim05
Member Avatar for inuasha

Alright so I was not sure exactly how to say this, but here is the idea. I have a graph or table I guess you could call that looks like this. [CODE] print ''' ----------------------------- | | | |x | | | |----------------------------- ''' [/CODE] Then I want to make …

Member Avatar for Gribouillis
0
218
Member Avatar for FireBlah

Hey guys. I was running assembly lang on visual studio but when I debug it, the cmd prompt window doesn't stay on. It displays the output and disappears immediately giving you no chance to take a really good look at your output. How to solve it? Thank you.

Member Avatar for FireBlah
0
117
Member Avatar for c++ lover

Hello , I'm new here and new to c/c++ programming. Can you guide me how to extract user from path like : /home/[COLOR="Red"]user[/COLOR]/public_html Please help me , thanks a lot

Member Avatar for zeroliken
0
81
Member Avatar for cchacholiades

String sQueryShow = "SELECT SUM(pf5_showplaylists.runningtime) FROM pf5_showplaylists WHERE pf5_showplaylists.showID = " + ShowID + ";"; HOW CAN I GET THE RESULT OF THIS SQL STATEMENT INTO A VARIABLE SO COULD DISPLAY THE OUTPUT IN A MESSAGE BOX? (URGENT, REALLY URGENT..)

Member Avatar for vimit
0
4K
Member Avatar for poolet25

Well, My code is working fine I just need a way to reset the DataAdapter1 into 0 (like reset) So if the user hit the button search 2 times to shows up only 1 time the elements of database "product".. If i used the code below and hit 2 times …

Member Avatar for poolet25
0
5K
Member Avatar for K0ns3rv

Hey! So I've been playing around with OpenCl a lot recently and it's pretty impressive. The first thing I wanted to do was to make an mandelbrot set generator, so I did. It works wonderful and I am really amazed by the results, almost a thousand times faster than my …

Member Avatar for K0ns3rv
0
410
Member Avatar for vuquanghoang

I have a homework. My teacher requires me to do a project which use Link base binary tree. I do almost all needed function but still remain print method. It throws StackOverFlow every time I complile project. I know since the print method but, I have a base case to …

Member Avatar for NormR1
0
249
Member Avatar for NPDA

public MainPage() { InitializeComponent(); StreamReader read = new StreamReader("T1.txt"); string rr = read.ReadLine(); textBlock1.Text = rr; } } when it start debuging it's stop here: string rr = read.ReadLine(); it's give me an method ccess exception how can i solve this problem??

Member Avatar for NPDA
0
123
Member Avatar for shandow

Hi, i have my FYP now, the title is build a web apps by present restful web services. I have some basic knowledge of Jsp and J2EE, but i have no idea how to present restful into my project, anyone have idea or any references recommend ? i stil have …

Member Avatar for shandow
0
99
Member Avatar for pakiali007

Create a function that take a full name as a parameter and returns just the middle name regardless of how many words it consists of.

Member Avatar for peter_budo
0
75
Member Avatar for Usoda

I have a Product class that is the parent of 3 other classes; Books, Movies, Music. And the Product class connects to the Store class that holds the Store's location. If I need to find a certain Product I have to traverse the list of each the Store class and …

Member Avatar for JamesCherrill
0
190

The End.