64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for peter_budo

I have table something like [ID, ITEM_ID, URI, IMAGE_FILE_NAME, UPDATED_AT etc.]. I need to compare URI that can be something like /system/images/777/medium/Debrecen_-_University.jpg?1279547675 with IMAGE_FILE_NAME that is as Debrecen_-_Protestant_Great_Church.jpg Is there a way so I can provide IMAGE_FILE_NAME as sort of substring of URI and check if that substring is part …

Member Avatar for tesuji
0
393
Member Avatar for TheWeakGetEaten

I am learning stacks, and I am trying to get this program to work. I have to be able to add large integers such as 9999999999999999999999999 by pushing all the numbers on the stack and then adding them up. Currently it works with small numbers but large numbers it crashes. …

Member Avatar for bondgirl
0
1K
Member Avatar for Docbyte

I am new to C++ and have a problem in a class I am taking.I am having trouble trying to create this the way my professor wants. this is what is required from the program: Write a complete program that prints out a “tree” of asterisks with the number of …

Member Avatar for Docbyte
0
165
Member Avatar for arelius

Hello friends, I know that on the Layout options of the DataGridView control that you can set the AutoSizeColumnsMode to "Fill". I noticed that the "Fill" setting is not available for the AutoSizeRowsMode. Does anybody know a workaround so that I can have all the rows automatically "fill" in the …

Member Avatar for arelius
0
938
Member Avatar for elsiekins

This may sound like a silly question but does when using aType is it just means any type ??

Member Avatar for mrnutty
0
98
Member Avatar for starlight849

Hi, I am filling a datagridview with multiple columns from my oracle database. It has become necessary that I add a column with a checkbox. I figured this out. [icode] Dim cbPart As New DataGridViewCheckBoxColumn DataGridView1.Columns.Insert(1, cbPart) With cbPart .HeaderText = "PART" .Name = "Part" .DisplayIndex = 0 .Frozen = …

Member Avatar for starlight849
0
191
Member Avatar for blueman:-0

I have alot of tables in database in one of this contains owner_id and another one have relation many to many with that,and that table have dissent_type how i can select dissent_type where owner_id = ""

Member Avatar for JamesCherrill
0
115
Member Avatar for toydiaz

hi, i need do one scipt that employer can accept and reject requests for product, then print the information about the follwing product.The customers fills out a form after the custumers sends the request. please somebody help me!!!

Member Avatar for EverWebby
1
116
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there …

Member Avatar for ellenski
0
111
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there …

Member Avatar for ellenski
0
124
Member Avatar for TrueVb.NetNoob

Hi Guys! Is it possible to change the color of a button when you move your mouse onto the button? Like say before it was red and it can be changed to yellow? Anyone can help me with the code? Thank you!

Member Avatar for vik2321
0
137
Member Avatar for pumpkin_pub

so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); …

Member Avatar for ashok2004_urs
0
330
Member Avatar for Naveed_786

Hi All, I hope you all would be fine i want to print 1. Only text 2. No controls should be appear in the print like textboxes etc. Thanks in advance.

Member Avatar for Oxiegen
0
152
Member Avatar for Drakarus

Hey, I was wondering if any one could help me with several problems I am having. 1st problem: Can anyone tell me how to combine two int's and put a ':' in between. Bascially I want the user to enter the hour and minutes separately, then combine them both together …

Member Avatar for Drakarus
0
164
Member Avatar for bouhbob

Hi, I am pretty new to php, but I am loving it! Finding out what's wrong, and finding the solution. But this time I can't find it! You can see down there a copy screen of the website I'm doing. There is a menu to the left "Clothing, Bathtime..." When …

Member Avatar for EverWebby
0
1K
Member Avatar for vinithktp

Hi All, I cannot export big numbers to excel. I am using POI jar files for jsp to excel export. Here i am pasting my source code. [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Export to Excel</title> </head> <body> <table cellpadding="3" cellspacing="3" border="1"> <tr> <th>9 Digits</th> <th>18 Digits</th> <th>27 Digits</th> </tr> …

Member Avatar for vinithktp
0
1K
Member Avatar for coroll

Hi!, i have 48 errors with following code.Plzzzzzzz.......can anyone tell me the mistake that i had done. thanks in advance. this is my code [CODE] import java.lang.String; import java.lang.Integer; import java.lang.Float; import java.util.Hashtable; import java.util.Enumeration; import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class testM{ public static void main(String[] …

Member Avatar for coroll
0
340
Member Avatar for AngelicOne

The startup of my application is the main form then it has login.showdialog for login. I already finish this but I want to have a form appear when the user successfully logged in. I tried putting this in my log in form form = new form(); form.Showdialog(); this.Close(); yes, the …

Member Avatar for Geekitygeek
0
408
Member Avatar for jamesonh20

Hi I have a working media player that references the imported winmm.dll. I am trying to link a trackbar to the dll to find the file length & seek to the scrolled related timeframe. I have the code now that only starts the trackbar when the play button starts. Any …

Member Avatar for freewayy
-1
397
Member Avatar for tong1

The following project is considered appropriate for a graduation dissertation in Computer Science Graduation project if the supervising professor is good in Java An English Word Statistics in Java The function may include: 1. To ask client to select a text file to open (FileDialog would be good to start …

Member Avatar for peter_budo
0
589
Member Avatar for pythonbegin

Hi All I have two tab-delimited files. I want to compare first column of testfile1 to first column of testfile2 to find if items in file2 are in file1 and write it to the new file. I have a following code but not working!! :(. [CODE]f1 = open('testfile1.txt') #f2 = …

Member Avatar for TrustyTony
0
775
Member Avatar for acrocephalus

Hello! I am trying to write a function that looks for a desired string pattern within a table (Countries). Look at the code. [CODE]def selectCountry(): print 'Enter country:' country = raw_input('> ') sql = '''select idCountries,CountryEn from Countries where CountryEn REGEXP '%s'''' cursor.execute(sql,(country)) result = cursor.fetchall() rowHead = 'Country ID','Country …

Member Avatar for acrocephalus
0
362
Member Avatar for acrocephalus

Hello! I have this simple funcion [CODE]def newUser(): print 'Choose a username?' Username = raw_input('> ')[/CODE] The variable 'Username' has to be used by other functions. How can I do it? Cheers! Dani

Member Avatar for acrocephalus
0
10K
Member Avatar for troydani

Hi, I typed in word document that is [B]=rand(200,99)[/B]. When i entered by this font. I got some story. I was just wonder about this. Actually, it got increase the font or change the text font. But y it is coming? Any help?

Member Avatar for Jayavardhan
0
73
Member Avatar for NH1

Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box …

Member Avatar for ious
0
383
Member Avatar for jimmiller96

Hi All! I have been working on a site containing a single Paypal 'Buy Now' button, but testing has shown that it takes anywhere from 8-20 seconds to load the Paypal page once the button is clicked. Since there is no indication that the button was successfully clicked, or that …

Member Avatar for jimmiller96
0
162
Member Avatar for markthien

Hello, I have created a query as follow in ms access: [CODE]SELECT cont.id, cont.name, cont.mobile_num, cont.date_created, memb.group_id, grp.name FROM (contact AS cont LEFT JOIN contact_group_member AS memb ON memb.contact_id=cont.id) LEFT JOIN contact_group AS grp ON grp.id=memb.group_id WHERE cont.removed=False ORDER BY cont.id DESC;[/CODE] and I created a 2nd query to query …

Member Avatar for Geekitygeek
0
141
Member Avatar for mono_jit23

How can I use 'like' keyword with wildcard characters(*) in RecordSelectionFormula of crystal report? [CODE] rptdoc = new ReportDocument(); rptdoc.RecordSelectionFormula = " {View1.RefNo}= '" + textbox1.Text + "'"; [/CODE] I need to use 'like' instead of '=' .....

Member Avatar for finito
0
99
Member Avatar for c++learner

Hello, I've copied a multiarray into another multiarray and can't figure out how to convert an int of 1 into an asterik which is ascii 42 I believe. I need help to replace all 1's to an asterik. I've tried static cast which my instructor suggested but I must be …

Member Avatar for jonsca
0
188
Member Avatar for navi17

Hello friends, I am working on downloading script. its working fine in all browsers. but in IE when i click on download button its showing the size of every file zero bytes. I have done lots of googling but didnot find anything. Please help its very urgent. I am using …

Member Avatar for navi17
0
138
Member Avatar for mhs.praveen

Hi I am having a requirement in my project where User press '.' in his num pad and he wants the character ',' to be displayed (dats bcoz he is French User). I tried changing the e.KeyCode but it is a readonly property. Is there any other way to change …

Member Avatar for mhs.praveen
0
95
Member Avatar for ariffin246

[code=mysql] SELECT * FROM fb.order LEFT JOIN item on order.item_name = item.item_name WHERE fb.order.order_status = 'Served' and tab_name='A' [/code] I have two different tables "order" and "item" which i joined using left join. In order table there is a column name called quantity and in item table, there is a …

Member Avatar for ariffin246
0
123
Member Avatar for madkat3

Bear with me, I'm new here and new to PHP...at first I thought it was just me, so I started trying to copy and paste example code I found online...but even that seemed not to work. I've tried this: [code] $to = "my@email.com"; $subject = "BUSINESS"; $message = "blah"; $headers …

Member Avatar for seventeen
0
2K
Member Avatar for Ray007

How to do this structures, any Idea? Given a program segment as follows: #include <stdio.h> struct book { char title[80]; int bar_code; float price; } ; struct book BOOK; void INPUT (struct book *B); float DISCOUNT (struct book *B); You are required to write a complete program that includes the …

Member Avatar for farahlyna
0
109
Member Avatar for hg_fs2002

I'm creating a linked list,adding the data I've read from file in each node but as I'm trying to print what I hold in nodes my output is some symbols.And even when I cout what I hold in my nodes in ADD function it's ok but as it goes to …

Member Avatar for mike_2000_17
0
100
Member Avatar for spac_e

Hey- First time posting here so hopefully I explain everything correctly. [CODE] class sendbackcurricula(app.page): def GET(self): query = models.Curricula.query.all() map = dict() for x in query: x = x.to_dict() map[x['owner_id']] = x['title'] return json.dumps(map); [/CODE] The above code will return the last element held in the database at 'owner_id' and …

Member Avatar for TrustyTony
0
80
Member Avatar for 0xCMD

[CODE=java] public int decrypt(int num) { int number = num; // Encrypted: 4523 Original: 5678 int d0,d1,d2,d3; d0 = number%10; // 3 d1 = number%100/10; // 2 d2 = number%1000/100; // 5 d3 = number%10000/1000; // 4 d0 = (d0 < 3) ? d0 % 10 - 7 : d0 …

Member Avatar for 0xCMD
0
2K
Member Avatar for george61

Pretty interesting problem about linked list. This program is about autobuses. Each autobus is given by brand, registration number, number of seats, kilometres and year when the bus was made. The program is organised as menu and when you hit number it calls some function. Problematic function: it should NOT …

Member Avatar for george61
0
107
Member Avatar for Spakes

Hi , How do I write a code that will print the first 10 even numbers in PERL Thank you

Member Avatar for jon.kiparsky
0
2K
Member Avatar for keyroche

Hey, I have been working on a class to use for pagination and I ran into a problem. I have a function that sets the variables that I will need, then I access them in the other funtions. For some reason one of my functions can't access any of the …

Member Avatar for keyroche
0
215
Member Avatar for andrewliu

Hello, This might be an easy solution for you guys, but I'm learning php on my own and I'm having problems with this code. Its giving me an output of what I want but I'm also getting this error "Notice: Undefined variable: construct in C:\wamp\www\search_exp\data.php on line 27" the line …

Member Avatar for silviuks
0
186
Member Avatar for Musing888

The basic idea for this program is to for me to enter a code to a corresponding website (which is already in a dictionary in the body of the program) and search that webpage for a specific phrase and return a value. This is so that I can check number …

Member Avatar for Musing888
0
235
Member Avatar for LRNPHP

Hi Everyone. Could someone assist me in the query. The table has type_of_vehicle field. In this field I have A, B and M. I would like to create a query where I can specify to select A and B, or A and M or A,B,M. Hope someone could assist me …

Member Avatar for swi2
0
117
Member Avatar for mith_cool

I have designed a jsp which has the following code : [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Form Cookie</title> </head> <body> <form action="http://localhost:8080/FormCookie/AddValue"> Name : <input type="text" name="name"><br> Age : <input type="text" name="age"> <input type="submit" value="submit"> </form> </body> …

Member Avatar for mith_cool
0
93
Member Avatar for lemonzipper

Hello All, I would like the user to be able to choose the file_name (assuming it already exists) and be able to append information to it. However, this condensed version, below, of what I'm trying to do gives me a compilation error. I feel like it has something to do …

Member Avatar for lemonzipper
0
258
Member Avatar for Witblitz

If I have these defined named constants in an include file: [code]define('FORM_FIELD_QUESTION_1', 'Question1?'); define('FORM_FIELD_QUESTION_2', 'Question2?'); define('FORM_FIELD_QUESTION_3', 'Question3?'); define('FORM_FIELD_QUESTION_4', 'Question4?'); define('FORM_FIELD_QUESTION_5', 'Question5?'); define('FORM_FIELD_QUESTION_6', 'Question6?'); define('FORM_FIELD_QUESTION_7', 'Question7?'); define('FORM_FIELD_QUESTION_8', 'Question8?'); define('FORM_FIELD_QUESTION_9', 'Question9?'); define('FORM_FIELD_QUESTION_10', 'Question10?');[/code] Then, I'm trying to loop through them and create a result in which I wanted use such as: [code]for …

Member Avatar for diafol
0
156
Member Avatar for Singlem

Hey I'm using a dbexpress to connect to a mysql server, that works. I then do a query and from that assign values to variables. Now my issue it that I can't seem to find a way to read a 'NULL' value from the Database and assign it to a …

Member Avatar for Singlem
0
156
Member Avatar for Gribouillis

How would you safely round a floating point number to the nearest integer ? Python has the built in function [icode]round[/icode], but it returns a floating point number [code=python] >>> round(4.9) 5.0 >>> help(round) Help on built-in function round in module __builtin__: round(...) round(number[, ndigits]) -> floating point number Round …

Member Avatar for Gribouillis
0
3K
Member Avatar for bleedi

Hey! Again, small but devious problem for me: I have a string that gets time as an input, in a format like "9.45" or "15.37". How do I extract the hours and minutes to integer variables, when the hour part may consist of either one or two digits? If it …

Member Avatar for bleedi
0
140
Member Avatar for java_programmer

I am writing a macro, which will take an excel sheet as input, process the data and after processing the data, will create a new excel sheet with the processed data. In the input excel sheet, there will be some blank row, which I need to be ignored. But i …

Member Avatar for AndreRet
0
165

The End.