64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Fixxxer

Hi there I have written the following code to read some data from a file and bin the data into bins of equal size so I can plot this data easily. [CODE]#include <stdio.h> #define N_HITS 1800 #define N_TIME_BINS 78 int main() { int i, time_bins[N_TIME_BINS],j; double event; double hit[N_HITS],value; FILE …

Member Avatar for Gaiety
0
243
Member Avatar for groff

I have two combobox in a form: Cb1 and Cb2 When I load the form, Cb1 and Cb2 are connected to a bindingsource. When I change Cb1, the code (below) changes Cb2 to show only the items according to Cb1 This is working fine. The problem is when I change …

Member Avatar for groff
0
174
Member Avatar for Gaiety

[CODE] #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main( void ) { int fd,nob; char str[1024]; fd = open("test.txt",O_RDWR|O_CREAT,S_IRWXU); if (fd < 0) { perror("open:"); exit(0); } nob = write(fd,"hello first",1024); close(fd); printf(" %d nob written",nob); fd = open("test.txt",O_RDWR); nob = read(fd,str,1024); close(fd); printf(" %d nob …

Member Avatar for Gaiety
0
124
Member Avatar for geniusvishal

Guys this thread is basically for the beginners who want to learn ASP.NET from the very beginning.. Plz give your valuable suggestions and kindly provide appropriate answers for the queries...

Member Avatar for mani-hellboy
0
355
Member Avatar for jackbauer24

Please explain all these four pages- Open the images in paint. Only then will you be able to view it. Thanks in advance.

Member Avatar for JamesCherrill
0
173
Member Avatar for sharathg.satya

i am trying to use google maps in my application but its giving me an error in the xml file as "error: No resource identifier found for attribute 'apikey' in package 'android'" can i know how to solve this error thanks in advance

Member Avatar for mr.disguise
0
232
Member Avatar for PF2G

Can someone tell me what's wrong here: [CODE] Dim sql As String = "SELECT * FROM courses" Dim con As New MySqlConnection Dim dt As New DataTable(sql) Dim cmd As New MySqlCommand(sql, con) con.Open() ComboBox1.Items.Add(dt)[/CODE] It doesn't show the courses.

Member Avatar for jbutardo
0
116
Member Avatar for arathy nair

I want to delete the strings file1 and file2 after its merged to a single pdf merge12. Please suggest your valuable ideas.. Thanks in advance package com; import java.io.FileOutputStream; import java.util.ArrayList; import com.itextpdf.text.Document; import com.itextpdf.text.pdf.PdfCopy; import com.itextpdf.text.pdf.PdfImportedPage; import com.itextpdf.text.pdf.PdfReader; /* * author * @282532 */ public class PdfMerger { public …

Member Avatar for arathy nair
0
445
Member Avatar for autorunman22

Hello all! I'm having some confusions about what to use as the "Home Page" in my web app. Should I use Servlet?([url]www.foo.com/index[/url]) or JSP?([url]www.foo.com/index.jsp[/url]) I dont know what would be their entry point in my site. I mean, let say, they visit [url]www.foo.com/index.jsp[/url], and they click login, the page then …

Member Avatar for autorunman22
0
274
Member Avatar for LearnVBnet

I Have Listview with All transaction with column InvoiceNo Date Customer Total Now I want to filter only month transation only month with combobox selection and one textbox year Me.cboMonth.Items.Add("1") Me.cboMonth.Items.Add("2") Me.cboMonth.Items.Add("3") ........... Me.cboDate.Items.Add("12") Me.cboDate.SelectedText = 1 my column date display mm/dd/yyyy How can I selection cboMonth to filter only …

Member Avatar for LearnVBnet
0
682
Member Avatar for Neji

Hi All, Here i want to disable right click on textbox. Please help me to do this. Best Regards Neji

Member Avatar for Neji
0
1K
Member Avatar for FriXionX

I'm completely new to javascript, but in my eyes this should work. But then again, i'm quite an idiot myself and it's usually a very very simple problem that someone will see in 5 seconds. I want the header (supposed to be in variable 'itemname') to be put into variable …

Member Avatar for FriXionX
0
168
Member Avatar for jbutardo

Hi, I have a program that needs to create a downloadable excel template with the following headers on the first row named, name, age, gender. And I also want the template to only have 1 sheet on it. how can I create a sample template using vb.net code? Thanks

Member Avatar for jbutardo
0
1K
Member Avatar for jbutardo

Hi, I have this program that would upload files from the client to the server, Now I want to validate the filesize before uploading it into the server.. How can I create this kind of validation? Thanks.

Member Avatar for jbutardo
0
568
Member Avatar for weeraa

I want to stretch an image in picturebox. Is there any property to do it? In VB.NET there is is a property called "size mode". we can change that property to "stretch image". still i couldn't find VB6 property to do it. Please tell me the property or if there …

Member Avatar for weeraa
0
720
Member Avatar for daydie

Here is my HTTP cookie request which auto loads browser after doing the cookie stuff. But it does not login and i dont know why =/ [CODE] Dim logincookie As CookieContainer Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim postData As String = "referer=http%3A%2F%2Fforum.ea.com%2Fuk%2Fcategories%2Flist.page&selectprofile=true&remoteurl=http%3A%2F%2Fforum.ea.com%2Fuk%2FgusUser%2Flogin.page&action=Login&registrationSource=&authenticationSource=EA-JForums&HIDE_GUS=&username=" & …

0
92
Member Avatar for markdean.expres

Guys, I can't still figure out how to show to a user the file info of a file programamtically. Can I just use the Properties window that Windows use to show all the detals of a file (e.g. name, type, size, path, date created ect.) I am using the IO …

Member Avatar for markdean.expres
0
372
Member Avatar for Dragennd

Hello all, zoidmaster here. I have a question regarding Visual Basic and deleting lines of text from files. I'm trying to make a piece of software to manage customers who walk into a store. I got most of it written already but the problem I'm running into is deleting some …

Member Avatar for Dragennd
0
2K
Member Avatar for thumbcop

Hi, I'm trying to code a PHP page with a textfield, a button and one link, every time I click in the button the value is added(sum) to a variable and when I click the link I can see the value of this variable somewhere in the page. please help! …

Member Avatar for thumbcop
0
119
Member Avatar for Tellalca

Hey guys, I am playing with the .NET 4.0's new class Parallel. I tried to open files in a directory and calculate the total bytes of them. However when I run the code, I get a different result every time. Can you explain me the problem I have? [CODE]using System; …

Member Avatar for Momerath
0
210
Member Avatar for faroukmuhammad

I'm designing a software that will help novice Google users get the most out of it. The software takes-in the query, parse it, optimize it and send it to google.com for searching. What advice do you have for me. All advices are welcomed...

Member Avatar for faroukmuhammad
0
123
Member Avatar for miturian

Am, with baby steps, becoming acquainted with the boost library. So far I'm compiling examples. From the tutorial, there is a very short regex-example, mostly there to test that the library is linked correctly: [CODE]#include <boost/regex.hpp> #include <iostream> #include <string> int main() { std::string line; boost::regex pat( "^Subject: (Re: |Aw: …

Member Avatar for miturian
0
479
Member Avatar for letters1417

Okay so this is another question printing patterns but this time using input! I have to prompt the user and read an odd number from the input. I can only use System.out.print('*'); System.out.print(' '); and System.out.println(); I need to maximize my use of repetition and minimize the number of output …

Member Avatar for DavidKroukamp
0
518
Member Avatar for bsabowala

When I export the program to a executive Jar, file.txt does not import. The file.txt is in my src folder. Everything works file when i run the program in eclipse but when i export it, it does not import. HELP, I am new to Java and everything.

Member Avatar for DavidKroukamp
0
394
Member Avatar for issaru07

can i check is there any wrong with this? it prompted me error in line 5 Parse error: syntax error, unexpected T_IF [CODE] <?php session_start() if (!(isset($_SESSION['email']) && $_SESSION['email'] != '')) { header ("Location: login.php"); } [/CODE]

Member Avatar for issaru07
0
209
Member Avatar for FALL3N

ok, I'm pretty embarrassed to be posting such a simple question, I feel like I've done this in much harder applications like a million times... [CODE]String[] wordVar = text.split("$");[/CODE] Why does the above code not split the String 'text' at each occurrence of a "$"? Is the "$" a special …

Member Avatar for FALL3N
0
171
Member Avatar for gargkapil2008

i want to find records between two dates IN ORCALE but the table field values is in "mm/dd/yy hh:mm::ss" and data type is varchar2 The query which i was trying was: [CODE] SELECT * FROM NEW_OUTPUT_UPLOAD_TSN WHERE OUTPUT_UPLOAD_DATE BETWEEN TO_DATE('01/13/2008 18:45:19','MM/DD/YYYY 24HH:MI:SS') AND TO_DATE('01/13/2008 18:45:19','MM/DD/YYYY 24HH:MI:SS') [/CODE]

Member Avatar for hfx642
0
444
Member Avatar for ThaiAmL

I'm writing an assignment for my introduction to programming class and we're supposed to implement the following interface: [CODE] public Interface Account{ //Calculates interest (1%) and adds to the account balance public void interest(); //Calculates the balance after a deposit public void payIn(double money); //Calculates the balance after a charge …

Member Avatar for ThaiAmL
0
206
Member Avatar for Thermalnuke

Hey guys been working on a java Program. I am having a problem with my percent rounding up to 7% instead displaying 6.5% any ideas here is my Program. [CODE]import javax.swing.JOptionPane; import java.math.*; import java.text.NumberFormat; public class Week_three_number_eleven { public static void main(String[] args) { String Investment = JOptionPane.showInputDialog(null,"Please enter …

Member Avatar for stultuske
0
129
Member Avatar for danielbala

Hi.. This is my loginhome.php code i done with form fields validation..but im not getting the output.. please help me... [CODE] <?php //Include database connection details require_once('config.php'); if(isset($_POST['emp_role']) && !empty($_POST['emp_role'])){ $emp_role=$_POST['emp_role']; //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Function to sanitize values received …

Member Avatar for stoopkid
0
113
Member Avatar for Martin C++

Hello, I would like to know how to call a theme in a custom made CMS. I have some very primitive bootstrapping done (I dont really know how to do it). I have finished the functions I need and I have actually finished the theme aswell, the only problem is …

Member Avatar for Martin C++
0
86
Member Avatar for ThaiAmL

Hello! I'm doing my first homework assignment with abstract classes and interfaces. I have a few questions: (1) I know that a class must be saved on the computer as, for example, Class.java. Is this the same for abstract classes? How are interfaces supposed to be saved? Do they need …

Member Avatar for ThaiAmL
0
195
Member Avatar for amir808

can a stack act as a queu or does it has to be last in first out? i am trying to make a program, using Huffman`s compression theory, and i am using stack, while its explained using a queu...i want to know if this can be done... thanks in advance …

Member Avatar for amir808
0
112
Member Avatar for Begginnerdev

I have a question for all of my fellow Daniwebbers. If I place a panel within another panel, can I "click" the panel later? In other words, if I am able to click the panel, can I reference that panel in code for manipulation? Such as flipping or rotating the …

Member Avatar for Begginnerdev
0
165
Member Avatar for kalz

Hello Everyone I have an Internal frame in my application which has a JTable populated with values from a database and a JButton which performs some operation when a row is selected from the JTable.When the user does not select a row from the JTable and clicks the JButton, I …

Member Avatar for kalz
0
459
Member Avatar for scheppy

Is there a method to check if a JButton has an Icon? becouse I've been searching all over google and i cant seem to find anything

Member Avatar for DavidKroukamp
0
325
Member Avatar for Karlwakim

Hi everybody, Is it possible to run c++ console apps in webpages ? I know that its not possible, but is there a way to do that ? Thanks.

Member Avatar for Karlwakim
0
121
Member Avatar for justinkb88

I am very new to JavaScript and am trying to use JavaScript to determine the height of a div. The div starts in the middle of the browser window and I need it to extend to the bottom of the window. How can the window height be determined and used …

Member Avatar for justinkb88
0
132
Member Avatar for Bheeman89

Hello Friends. Im having a problem in identifying the Provider for my MSSQL Server 2008. Can anyone address me the location of this information because I have to initialize it in my VB.et. As I understand for Ms Access it is something like [CODE]"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="[/CODE] Can I know where to …

Member Avatar for Jx_Man
0
274
Member Avatar for srinath1

void swap(int *x,int *y) { static int *temp; temp=x; x=y; y=temp; } void printab() { static int i,a=-3,b=-6; i=0; while(i<=4) { if((i++)%2==1) continue; a=a+i; b=b+i; } swap(&a,&b); printf("a=%d b=%d out side rec\n",a,b); } main() { printab(); printf("end of output 1"); printab(); } out put for the first printab() is 6 …

Member Avatar for srinath1
0
118
Member Avatar for Sabyre

I'm working on an auction script for a client. This portion of the script pulls all the open auctions from the database and allows bidding, but they only want bidding on auction with 30 seconds left until it ends. [CODE] $query = "select * from DSI_auctions WHERE closed='0' AND suspended='0' …

Member Avatar for pritaeas
0
152
Member Avatar for bilal_fazlani

Okay, So I have an application which uses MSSQL server as datasource. Is there anyways I can avoid using any database server and use a local file as datasource ? If yes , what are options. AND HOW ? PS: this is very important guys. please help. THANK YOU.

Member Avatar for bilal_fazlani
0
181
Member Avatar for DavidB

Hi, everybody. I am reviewing some old code and two questions came to mind. 1) Is it better to use “[B]\n[/B]” or [B]endl[/B]? [INDENT]"[B]\n[/B]" seems to be working just fine, but most code samples I see in books nowadays use [B]endl[/B]. What is the difference?[/INDENT] 2) For multi-line output statements, …

Member Avatar for PrimePackster
0
142
Member Avatar for daldrome

Hello. I am trying to use the strtok function to separate individual words and store them in a 2D char array. However, only the first word is stored in the 2D array. [CODE]cout << "Enter a string: "; cin.getline (str, MAX); //count number to words char *p = strtok (str, …

Member Avatar for deceptikon
0
2K
Member Avatar for anuj.juthani

i am calculating some expressions and the result of these expressions is a DOUBLE type value , i am storing this result into a double type variable called Sum . now i want to write this value of Sum into the Edit Control of a Dialog Based MFC application . …

Member Avatar for thines01
0
994
Member Avatar for kamilacbe

Hi.. Is there any option of downloading free controls (eg button) for windows application as we do in asp page . links would be helpful to work on it.. Thanks...

Member Avatar for kamilacbe
0
139
Member Avatar for vivekanandaan

[CODE] Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""d:\sprrg\\scm\scm\sprrg.mdb"";") Dim adapter As New OleDbDataAdapter("SELECT * FROM mr_head", connection) Dim dbInsert As New OleDb.OleDbCommand Dim table As New DataTable adapter.Fill(table) 'job_code,mr_no,mr_date,item_code,qty,mr_status,mr_approved_date 'Dim row As DataRow = table.Rows(0) connection.Open() dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "job_code" dbInsert.Parameters.Item("job_code").Value = jobcode dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = mr_no dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" …

Member Avatar for vivekanandaan
0
1K
Member Avatar for M.Waqas Aslam

hello EveryOne! i am very new in JS and JSON , or you can say this is my first day to learn something about JS and JSON, i have few questions 1- what is difference between JS and JSON. 2-My Task is to connect MSSQL server 2008 and show records …

Member Avatar for M.Waqas Aslam
0
143
Member Avatar for Mr.BunyRabit

Why is netbeans doing this?! I added an image to my login screen, but now when i want to add a new one (i just chose a crytec logo to show) then it doestn display it!? It still displays the old one!? Whyy?? (image Attached)

Member Avatar for Mr.BunyRabit
0
143
Member Avatar for Johnbonono

I have a div with 2 divs inside it. The container div is positioned relative, and the 2 inside it are positioned absolute, one on top of the other (on the z axis). I made it so that when the mouse enters the container div, the top div slides up …

Member Avatar for ckchaudhary
0
204

The End.