64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for default_098

I'm trying to get the colors to show on my table. I'm not sure how to even start. I was told to make 3 different css classes and work with that, but still not understanding how to do it. Table on the left is the example. Table on the right …

Member Avatar for GliderPilot
0
207
Member Avatar for flopoe

Hello everyone; I am new to Python. How can we explain this code step by step. I couldn't understand some parts. myList=[43,21,12,80,3,2,35] end=len(myList)-1 while (end!=-1): swapped=-1 for i in range(0,end): if myList[i]>myList[i+1]: temp=myList[i] myList[i]=myList[i+1] myList[i+1]=temp swapped=i end=swapped print(myList)

Member Avatar for vegaseat
1
984
Member Avatar for inaxassan

Consider a hospital scenario. Design classes for: Patients. The class might have fields like unique ID for the patient, name, male or female, age, address, phone number, date of birth, height, and weight. I need help with this problem

Member Avatar for vegaseat
0
2K
Member Avatar for inaxassan

Design a schedule class for classes that a student takes during a semester? This is not a homework `class schedule: def classes(self, course, points, level,): self.course= course self.points = points self.level = level def get_course(self): return course.name` I am stock here

Member Avatar for vegaseat
-1
756
Member Avatar for darkeclipse8

My professor asks me to program the Game Of Life with some required and I find unnecessary classes. But anyhow as I am coding and running the program midway I run into this problem void Life::setup_grid() { cout << "Size of Grid: " << grid.size() << endl; cout << "rows: …

Member Avatar for NathanOliver
0
409
Member Avatar for slasel

Can I change the font size in only one widget and keep it the same in the root window? if yes then how please?

Member Avatar for vegaseat
0
243
Member Avatar for szejna

Hello, I am working on a homework problem that has to do with inheritance, I thought that as long as the class interface and implementation files for the base classes the derived would work with the include statement: #include "salariedemployee.h" and the line class administrator : public salaried employee. I …

Member Avatar for szejna
0
266
Member Avatar for arcticman452

I cannot get this to show up when I run it and I can't figure out whats wrong. import java.applet.*; import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class TravelCostEstimator extends Frame implements ActionListener,ItemListener { //This part defines how the program will look Panel partOnePanel = new Panel(); Label …

Member Avatar for arcticman452
0
211
Member Avatar for Sevyt

For whatever reason beyond my understanding did my DB start this problem. I got 2 tables in my database. 1 dealing with personal info 1 with dates and time To keep my startup form empty I have the first row empty in both tables. But for some reason after I …

Member Avatar for john.knapp
0
133
Member Avatar for nitin1

actually, I just want the idea here. I have a server, a client . client will request to display the files names in its directory(server's current directory). server will send the list. my thinking : system command will be used here. when clinet enter "-ls" then server will have system() …

Member Avatar for L7Sqr
0
162
Member Avatar for inaxassan

Design a class called "sentence" that have a constructor that takes a string representing the sentence as input. The class should have the following methods: get_first_word get_all_words replace(index, new_word) Change a word at a particular index to "new_word." E.g. If the sentence is " I'm going back." and set_word_at_index (2, …

Member Avatar for sneekula
0
1K
Member Avatar for jbutardo

Hi, I want to know what code should be used in order for me to import data from an excel file to dataset and then adding it to the database, how can it be done? thanks

Member Avatar for edgar.alexander.315
0
2K
Member Avatar for Squidge

Evening all. I am using nivoSlider, and have come across an issue with ow i'd like it to work. Here is a sample of the slider: http://gavdev.roundthebend.info/index2.html This is what i would like it to do: http://www.directenergypurchasing.com/ This is the HTML: <link rel="stylesheet" href="nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script …

Member Avatar for AleMonteiro
0
180
Member Avatar for Arthur43

Dear all, I understand the form closing event. But I want to detect when my app. is closing. It needs to update a status into the database, and only when the app. is closing. I have multiple forms in my application and people can close a app with the X …

Member Avatar for Arthur43
0
310
Member Avatar for marnun

This is the exercise I have in codelab. I've been going over and over, and just can't see how to do it without an array. Must be something simple that I am missing. Any suggestions? _____ Assume you have a int variable n that has already been declared and initialized. …

Member Avatar for marnun
0
3K
Member Avatar for inaxassan

class airlineTicket: def __init__(self, start, destination, dateoftravel, firstClass,\ economy, business, price): self.start = start self.destination = destination self.dateoftravel = dateoftravel self.firstClass = firstClass self.economy = economy self.business = business self.price = price Design a class for an airline ticket. Some of the fields of an airline ticket are start, destination, …

Member Avatar for sneekula
-1
2K
Member Avatar for foodstamps

I'm trying to process a list contained within a separate text file. I am able to read the file, and generate an output containing the contents of the file, but the output generated is the unprocessed version, identical to the input. I do not encounter this problem when the list …

Member Avatar for foodstamps
0
311
Member Avatar for JohnMcPherson

Hello, I am trying to compile a Pro*C program, and I am getting a link error "cannot resolve reference to sqlcx2t". I have the libbrary LLIBCLNTSH included in the Imakefile, and have included conio.h in the program. I am not sure how to resolve this issue. I am running on …

0
99
Member Avatar for harinath_2007

I'm having tough time with netbeans. I am trying to add external image files to the netbeans project but confused where to place them. I copied the image files in every folder of netbeans(as i was tired) but nothing worked. Where exactly I should place the external resource files(images,videos,auidos etc)..

Member Avatar for harinath_2007
0
91
Member Avatar for coder91

I have various database tables, one that holds the options within a drop down list - each selection has a value assigned to it. One of the options is "other" which has the value -1 assigned to it. The other table takes the data from a form that the user …

Member Avatar for crazydevelopervish
0
108
Member Avatar for yuri1969

Howdy, for instance this JSTL snippet produces following result. <a href="<c:url value="Profile"> <c:param name="username" value="${requestScope.username}"/> <c:param name="logout" value="true"/> </c:url>"> Logout </a> Result: <a href="Messages?username=abc&logout=true">Logout</a> Ofc this thing works. However, validating against XHTML 1.0 Strict ends up with: > cannot generate system identifier for general entity "logout" href="Messages?username=abc&logout=true">Logout</a> Apparently it doesn't …

Member Avatar for yuri1969
0
347
Member Avatar for angel sunflower

i hav a shopping cart in java he columns of jtable are code-the item code qty-the quantity enterd by the user i want to update the quantity in database .the description of the table is code -item code stock-total stock in hand. i need to to update the quantity by …

Member Avatar for angel sunflower
0
976
Member Avatar for subhraakasuny

hi folks, i am a beginner in JSP, and i am studying headfirst servlet & JSP,but at the time of running a code from there,i have an problem there is directory structure **src/com/example/web/BeerSelect.java** and the code is package com.example.web; import com.example.model.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public …

Member Avatar for subhraakasuny
0
305
Member Avatar for hwoarang69

i am create animation in japplet and i want to know if iam using paint method and draphics2d the right way. public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g; g2d.fillRect(x, y, width, height); //player }/** end of paint method ***/ another question i had was in run …

Member Avatar for JamesCherrill
0
257
Member Avatar for deepak.fugo

Hi All.... I have developed a portal in mvc and i am having problem in making the links SEF... right now if i need to access controller and method i am following www.xxxxxxxx.com/index.php?rt=CONTROLLER_NAME/METHOD_NAME i want to make the above link SEF like www.xxxxxxxx.com/CONTROLLER_NAME/METHOD_NAME Below code i have it in my …

Member Avatar for Squidge
0
217
Member Avatar for Atlanta15Braves

I am trying to sort a certain amount of integers. I have an error in my code. The code is below as well as my error message. Any suggestions of how to fix this? I believe it has to do with it being primitive data rather than an object? `public …

Member Avatar for subramanya.vl
0
385
Member Avatar for choconom

hello, i'm having trouble getting my delete selected checkbox working for a code I'm writing: the trouble is really just in the bottom half of the code after i make the while loop...i made this off of an example that i found on a site but like it was pretty …

Member Avatar for AdelineZ
0
3K
Member Avatar for biscayne

Using print in a python script gives the following result: 10.25, 9.23, 8.97, 8.71, 8.40, 8.36, 8.30, 8.21 10.25, 9.23, 8.97, 8.71, 8.40, 8.36, 8.30, 8.61 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15 0.60, 0.60, 0.60, 0.60, 0.50, 0.50, 0.50, 0.15 4.85, 2.85, 1.85, 1.25, 0.95, 0.85, 0.80, 0.45 …

Member Avatar for biscayne
0
247
Member Avatar for romz

Hi, Im new in VB.Net. im having trouble with filling the datagridview with data. the program seems to skip the part where i declare the **datagridview datasouce** and only executes until **da.fill(dt)**. here is my code, hope you could help me. thanks in advance. Imports System.Data.SqlClient Public Class Form1 Dim …

Member Avatar for romz
0
121
Member Avatar for assgar

Hello I am trying to add two records to an array so I can identify which record has a priority 1 or priority 2. This is not working, how do get this to work? <? //get data from database $query = "SELECT a.street, a.city, a.province, b.dob, b.id1_name, b.id1_value, b.id1_priority, b.id2_name, …

Member Avatar for assgar
0
143
Member Avatar for eyeda

Hello guys! I'd a problem here. Is there any way that I can download a sheet from an excel file by php? For example,I have this excel file named test.xls,and it have several sheets in it. What i want is to download only a sheet from it. Any suggestion or …

Member Avatar for eyeda
0
199
Member Avatar for James19142

I need a way to do a cast without being returned a pointer to a new address but, the same address as the original. Something like this: derivedClass something_derived; baseClass* basePointer = &something_dervived; derivedClass* derivedPointer = static_cast <derivedClass*> (basePointer); /* my problem is "derivedPointer" isnt assigned the same address as …

Member Avatar for James19142
0
191
Member Avatar for Ayinainsoph

How can I input coding for this table contact form that I created in dreamweaver to have dropdown option values? Here is my code: <form action="" method="post"> <table width="600" border="1" cellspacing="2" cellpadding="0"> <tr> <th width="170" scope="col"><label for="name">Name:</label></th> <th width="428" scope="col"><div align="left"> <input type="text" name="name" id="name" required="required"/> </div></th> </tr> <tr> <th …

Member Avatar for Ayinainsoph
0
192
Member Avatar for Ayinainsoph

How can I create a table contact form in Dreamweaver using dropdown options? I have searched everywhere and I have found hmtl coding that does not work for the insert table contact form. Here is my code: <form action="" method="post"> <table width="600" border="1" cellspacing="2" cellpadding="0"> <tr> <th width="170" scope="col"><label for="name">Name:</label></th> …

Member Avatar for Ayinainsoph
0
210
Member Avatar for n3xtgen

I am trying to make a basic page in ASP.Net by inserting into a MSSQL database. When I run the page it does not insert anything and no error is produced :( The connection string name is right as well as the table name and fields. This is my code: …

Member Avatar for Momerath
0
226
Member Avatar for restrictment

Hey everyone, I am taking an online C++ class and part of our assignment is to complete a whole bunch of small program snipits on a site called myprogramminglab.com. This one program seems to have me stumped as I am not very familiar with Data structures. Could someone help me …

Member Avatar for restrictment
0
260
Member Avatar for Ben Ashton

I have a project at school in which I have decieded to make an encryption system which I am struggling with quite a bit at the moment - just finding resources to use and even a guide to follow. The only half decent thing i can find on the web …

Member Avatar for Ben Ashton
0
904
Member Avatar for James19142

in this program i'm writing the functions that have qt classes as parameters Qlabel, QSpinbox, etc. are causing compile errors, my other functions work fine i get the same 2 errors for each QT object i use as an argument this is the function definition that uses QT classes as …

Member Avatar for James19142
0
374
Member Avatar for adishardis

Hi, I've been searching now for the better part of the weekend but I can't get this to work :-/ I want to use Highcharts pie chart to display data from my mysql table. I want to count the column 'Types' occurences of the different Types in that column. Each …

Member Avatar for adishardis
0
153
Member Avatar for Ayinainsoph

I am trying to embed a pdf file with a text file on one of my pages. I read online that the file must be ziped which I have down. However, when I put this page on my remote server the file does not want to download and instead I …

Member Avatar for Ayinainsoph
0
84
Member Avatar for prashanth s j

Hi all, could anyone please provide me a simple example of python threads? I tried looking at the python cookbook, but I find it quite confusing with its mentioning of thread, threading etc (I am familiar with threads in C only) All I want is: From my machine I need …

Member Avatar for Gribouillis
0
346
Member Avatar for OsaMasw

Hello guys, have a nice day... I've created function to test if the user is admin or not and return true or false depending on user function isitadmin($userid) { $query = mysql_query("SELECT * FROM users WHERE user_id = '". $userid ."' AND level = 1"); if (mysql_num_rows($query) > 0) { …

Member Avatar for OsaMasw
0
174
Member Avatar for kaywt

I have the following code that I need to figure out what the output will be. Whenever I try to run it I get an debug error - and it crashes... Somebody else said that it ran fine on their Apple machine. I just need to see what the output …

Member Avatar for kaywt
0
227
Member Avatar for NardCake

Hello! This is the most annoying thing to me, I need redirections with Javascript often but `window.location` Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I do `window.location = "http://mywebsite.com";` Works in Firefox, but not chrome? (I don't …

Member Avatar for NardCake
0
10K
Member Avatar for zachattack05

So I downloaded the [Adventureworks 2012 SQL database](http://msftdbprodsamples.codeplex.com/releases/view/55330) to browse hoping to find something interesting and just nearly fell asleep looking at example data when I came across something new or that I at least never noticed before...a field with a data type of "xml(CONTENT Person.AdditionalContactInfoSchemaCollection)" and when viewing the …

Member Avatar for zachattack05
0
214
Member Avatar for NoUserNameHere

Is it possible to point to a certain index of a value? For example, int x = 2576, is it possible to do something like x[2]? I know you can do it with strings, but can you do it with numbers?

Member Avatar for NoUserNameHere
0
94
Member Avatar for mpc123

HI I seem to have a problem with a drop down menu, the code seems to work fine and the values are showing in source code but do not show on the page???? Another issue is I dont know how to move forward after this to make a combo drop …

Member Avatar for AleMonteiro
0
192
Member Avatar for LD Company

Hello programmers! I made new software, LD File Browser. This software contains ListView but this ListView has error. Software works fine when I run it on F5 (debug), but when I run .exe icon I got error when I select different item in ListView. Here is the code: TextBox1.Text = …

Member Avatar for john.knapp
0
231
Member Avatar for rubai

This code reads a.txt file <?php $file_path = 'a.txt'; $file_handle = fopen($file_path, 'r'); $text_data = fread($file_handle, filesize($file_path)); print $text_data; fclose($file_handle); ?> I want to upload this text file using the code given below and want to read the uploaded file when I hit submit button. I know there is a …

Member Avatar for rubai
0
203
Member Avatar for onofej

Please could someone check this code for me as it is giving me You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near line . Although this type of question has been ask by someone …

Member Avatar for onofej
0
232

The End.