64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for talat.zaitoun

def my_startswith(s1, s2): if s1[0] == s2[0]: return True elif s1[0] != s2[0]: return False elif s2 == '': return True elif s1 == '' and s2 == '': return True Iam having trouble with the third and fourth elif. Third elif: i need to say that if s1 is …

Member Avatar for Gribouillis
0
225
Member Avatar for Caoimhe

I am recently new to python and as part of my college work i need to design and implement a python program relating to computer system administration. I would be grateful if anyone has ideas of a project. Thank You

Member Avatar for Caoimhe
0
200
Member Avatar for hilRunr

My image is embedded in a table cell. I need to know how far it is from edge of window. offsetLeft does not work for this. Neither does style.left.

Member Avatar for hilRunr
0
197
Member Avatar for EXTRA_RICE

i am using vb2010 express. can u pls tell me wat is the code for delete?bcoz when im doing delete my database is not updating after i exit.i can add item in database but i cant delete it.any help?thanx guys? hope u understand my problem.

Member Avatar for Reverend Jim
0
154
Member Avatar for gahhon

#HTML Markup <table> <tr> <td><asp:Label runat="server" Text="Subject: " /></td> <td><asp:TextBox ID="txtSubject" runat="server" /> <asp:RequiredFieldValidator runat="server" ErrorMessage=" *" ControlToValidate="txtSubject" Font-Size="10pt" ForeColor="Red" /> </td> </tr> <tr></tr><tr></tr><tr></tr> <tr> <td><asp:Label runat="server" Text="Messages: " /></td> <td><asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Height="100px" Width="18em" /> <asp:RequiredFieldValidator runat="server" ErrorMessage=" *" ControlToValidate="txtMessage" Font-Size="10pt" ForeColor="Red" /> </td> </tr> <tr></tr><tr></tr><tr></tr> <tr> <td><asp:Button …

Member Avatar for gahhon
0
303
Member Avatar for Rahul47

5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ?

Member Avatar for Labdabeta
0
240
Member Avatar for onalenna_1

create a program that gets the marks the user has for their classes this year. Tell them how many classes they are failing (despite what many o f you think a fail is 50%) Save as Name_Surname_Repetition_Problem1.py................i seriuosly need help with this program,python is giving me a hard tym

Member Avatar for sneekula
0
145
Member Avatar for krystosan

how do I make a class return as `Namespace(filter='b', list="['hi','by']")` class NameSpace(object): """Mock for argparse's NameSpace """ def __init__(self, lst=None, flter=None): super(NameSpace, self).__init__() self._filter = flter self._lst = lst Is it possible what I am thinking, i guess we have to do something using special method call ?

Member Avatar for krystosan
0
320
Member Avatar for Ashok Karale

here is screenshot. http://i.stack.imgur.com/0LAQZ.png and here is code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.SqlTypes; using System.IO; using System.Drawing.Imaging; namespace SampleApplication { public partial class AddNewUser : Form { public AddNewUser() { InitializeComponent(); } // set the …

Member Avatar for Michael27
0
207
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/RSrshS Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/U5F2O8 My question: I got the code …

Member Avatar for Schol-R-LEA
0
151
Member Avatar for Indians

in my project i'm using user input form. that form contains serial no, reference no, name, email, phone, address, etc.., in that user input form serial number textfield is readonly option. user can't able edit the serial number. in that textfield i want to show the next auto_increment id from …

Member Avatar for diafol
0
3K
Member Avatar for mikewyatt

I have 5 image files that I wish to incorporate or embedd inside a program. I am using netbeans and I have created a directory in the files table just under the database directory (I have embedded databases) with the 5 files inside them. For good measure, I have also …

Member Avatar for JamesCherrill
0
154
Member Avatar for somjit{}

Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to …

Member Avatar for somjit{}
0
796
Member Avatar for arifkutty

class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; can any body please explain what the meaning of above code. in the first line …

Member Avatar for arifkutty
0
164
Member Avatar for Xakzi

Hello! Sorry for the bad article title, was not sure what to name it since I couldn't figure out anything good to name it, that would be near my request. Let me begin.. I code with Visual Studio 2010 with C# Windows Form Application. I code everything in combobox1 and …

Member Avatar for Xakzi
0
118
Member Avatar for cambalinho

see these class: class test { public: void virtual Created(){} void test() { Created(); } }; class test1 : public test { void Created(); void test1(): test { Created(); } } test1; void test1::Created() { cout << "created test1"; } (these code wasn't tested, but you get the point) can …

Member Avatar for cambalinho
0
196
Member Avatar for Deegirl

Good afternoon, Can someone help to to understand how to write a student's name and final grade to a sequential file. I am doing this in Visual Basics. I see the syntax for write and read, but is not understanding how to use it in coding.

Member Avatar for Deegirl
0
179
Member Avatar for Muhammed Waseem

Hi guys I'm new to php. I've been given a task to write a code in php that would allow the user to input his initials and the program should out his/her initials as a star pattern. E.g if your initials T.T,it should be as follows... ***** ***** * * …

Member Avatar for diafol
0
224
Member Avatar for shrikanthnk

Hi , Kindly help me to display tempnum when ahref is clicked. Looks like code marked as Italic requires needs to be updated?? <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".mylinktempnum").click(function(){ *alert($(this).attr('this.tempnum'));* }); }); </script > </head> <body> </body> </html> <?php <a class=\"mylinktempnum\" href=\"home.php?tempnum=$num\"></a> ?>

Member Avatar for shrikanthnk
0
189
Member Avatar for 123pythonme

I am doing an assignment for university, so I can't exactly post the code. So I will have to explain the best I can. I have to draw 3 stars in a row, 5 points, 6 points, 7 points. We have to do it using a for loop and the …

Member Avatar for vegaseat
0
272
Member Avatar for Pashan

Hi guys I'm having major issues with this assignment of mine and I cant even figure out where to get started. Any help would be greatly appriciated. I must write a program that outputs that plays the game Hi Lo with a user until they decide to quit. The program …

Member Avatar for Pashan
0
2K
Member Avatar for brynFlew

hello, i was wondering if anyone could help me find a way to allow a user to click items in a combo box and have its value populate an input field. Thanks

Member Avatar for Samanalevi
1
372
Member Avatar for nikolaos

One thread increases an integer named "counter" , and another decreases the same integer. Using synchronized statement on LockObject to control access to counter. If i understand correctly i have to use an Object reference. Can i use synchronized statement on counter somehow? public class Synchronized_Block_Demo { public static int …

Member Avatar for nikolaos
0
344
Member Avatar for Ann aiko

import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, Sbox, Ybox, SCbox; private JButton Qbutton; …

Member Avatar for mKorbel
0
213
Member Avatar for logicslab

Dear pals, I installed Turbo c for windows 7 ultimate 64 bit , but it's not user friendly .When it use in full screen the mouse is not working . Any solution for it ? If you know any new C compiler setup let me know. Thanks, Anes

Member Avatar for deceptikon
0
394
Member Avatar for trishtren

Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have …

Member Avatar for masijade
0
278
Member Avatar for Maideen

Hi I am developing the asp.net using Vb.net code. I need to notify my client if client's browser is disabled the cookies, when the launch the asp.page. Pls help me. Maideen

Member Avatar for Maideen
0
249
Member Avatar for Nebil

Hi guys, I just figured out the normalization problem.And i'm moving on to the application. But i'm facing a problem,i needed to check if an id exists in the db when an item is inserted. It's saying the title i just wrote on the article.Here's the code i used. 'Tocheck …

Member Avatar for Nebil
0
370
Member Avatar for coolsdudes1992

i am confused about "Checked" in C#. I know it use for overflow checking. Can we use it for undeflow ? Or there is some thing else which an be use for underflow.

Member Avatar for ddanbe
0
167
Member Avatar for Alan_3

I have a requirement to make the height of a sidebar grow relative to the height of the main window. I currently have a sidebar that is sized to its content, but the main window is always much longer. Is it possible to (a) determine the height of the main …

Member Avatar for designershiv
0
4K
Member Avatar for mahdihasani

i have in part of my program error "Use of unassigned local variable". long gg = weight << 7;(error 15)

Member Avatar for coolsdudes1992
0
86
Member Avatar for Xakzi

Hello! I come here with a tricky question and I do not know how to code it at all. First off, I am coding in Visual Studio 2010 C# Windows Forms Application I need someone to help me code the following example: I have a text file which includes only …

Member Avatar for Xakzi
0
231
Member Avatar for ReyJEnriquez

Hi Guys. I hope everyone in doing great today:-) I have some problem, this coe does not produce mi in aplhabetical oreder. I am using Heapsort as a sorting algo...and please help me Hope to hear from you guys;-) Public Class MyForm Private MyTable As New DataTable Private MySortedTable As …

Member Avatar for ReyJEnriquez
0
210
Member Avatar for William_6

hello, I created a awk program to work witha data file to output a table and subtotal the rows and total up the collums and average I got it to work but when i added a presentation header before my totals go away. working code so far ------ can be …

Member Avatar for William_6
0
232
Member Avatar for jared.geli

As the title says I'm having trouble in my Vehicle Maintenance routine where I will have a a monthly maintenance based on the last maintenance date. If the vehicle has reach 1 month since last maintenance it will show in a datagrid. Also it should select those vehicle that reach …

Member Avatar for jared.geli
0
226
Member Avatar for NoUserNameHere

I'm new to Wordpress and from what I'm understanding if you're making a website with it, you don't have to write(or know(?)) code for anything unless you're making your own theme or plugin? Let's say you wanted to have a user registration/login system on your website, how would you do …

Member Avatar for NoUserNameHere
0
219
Member Avatar for joester007

How do I count characters using substing and a do while loop? Im trying to make a pogram that will allow the user to type in a phrase and when they click on the search button an inputbox will appear asking for what character to search for. The user types …

Member Avatar for joester007
0
216
Member Avatar for prnjn

Hi , I have a JSP page where i have few checkboxes and i have disabled few of them usign javascript for certain conditions. When i fetch the value from checkbox using `request.getParameterValues("CheckBoxName");` , then do i get the values from disabled checkboxes too or disabled checkboxes are not considered …

Member Avatar for GliderPilot
0
2K
Member Avatar for Mafiamanandre

Hi all, I have a form in visual basic with about 62 textboxes. On this form is two columns of textboxes. Textbox 61 -62 is a total textbox for each column. When the user types in digits to 60 textboxes the program must add it up automatically to textbox61/62. My …

Member Avatar for Reverend Jim
0
951
Member Avatar for Deegirl

how can i save a .txt file in C:\? I keep on getting a permission box preventing me from doing so.

Member Avatar for Reverend Jim
0
394
Member Avatar for krystosan

In the scripts ddirectory of my dummy project I have created this file without extension and has given executable permission using chmod +x filterList #!/bin/env python print "Hello World!" 'python ~/Development/python/listFilter/python/filterList.py $1 $2' but still when I run this i get error message saying $ filterList -bash: filterList: command not …

Member Avatar for krystosan
0
809
Member Avatar for praba_web

Hi, I am Freelance Web developer. i dont know How to Set Web Design and Web Development Prices? Recently i have done one web designing project.that project contains 16 pages with mysql. Please Tell me how much should i have to charge?

Member Avatar for hag++
0
287
Member Avatar for kirtee2209

Hi. My company makes use of Motorola scanners to scan barcodes into the system through a C# application. A driver (Symbol COM Port Emulation Driver v 1.8.5) has been installed on the computers to make the scanner behave as simple COM Port Emulation and when the barcode is scanned, we …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for skyyadav

I am reading these values from a file 12.1 13.4 12.4find gg 16.77 56.55 My program should display the average of 5 float no and ignore find and gg. I did while((inputfile >> f)) { //cout << "ssss"; //continue; //} sum += f; count ++; cout << fixed << f …

Member Avatar for Banfa
0
980
Member Avatar for jared.geli

Good day guys. I'm having problems in my crytal report where it doesn'y load any record. Yesterday it was working I can see all my records but now It doesn't. It's not loading any record like it suppose to. I was wondering if it has to do on the CR …

Member Avatar for jared.geli
0
109
Member Avatar for yaragalla_mural

hi i have small doubt in understanding the difference of the following. the following code did not worked:- window.setTimeout(hello(),3000); function hello(){ alert("ju"); } But the following code worked fine:- window.setTimeout(function(){hello();},3000); function hello(){ alert("ju"); } So what is the difference between the two. In the first code snippet i have called …

Member Avatar for yaragalla_mural
0
137
Member Avatar for skyyadav

I am reading these values from a file 12.1 13.4 12.4find gg 16.77 56.55 My program should display the average of 5 float no and ignore find and gg. I did while((inputfile >> f)) { istringstream iss(f); if(!(iss(f)) { iss.clear(); continue; } sum += f; count ++; cout << fixed …

Member Avatar for tinstaafl
0
316
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to get a grid from another window to display in another window by the way i'm using fluidkit slide transition. Please Help...

Member Avatar for KushMishra
0
263
Member Avatar for Spider_14
Member Avatar for urbanthistleuk

Hello, I am currently working on a project which involves sending email out automatically when certain conditions are met in a MySQL dB using a php script, I have managed to build the email part and works, my question is how do you prevent an email being sent out twice …

Member Avatar for iLikePHP
0
190

The End.