199,114 Archived Topics
Remove Filter ![]() | |
there is function : int median(int a[], int b[]) { } how do i find the number of elements in a and b? i am doing sizeof(a)/sizeof(int) but it does not give right results. P.S. i need to submit the function only in online compiler so i dont know what … | |
I want to make a tab control that looks like this:  Does anybody know how to this? I've searched all over the internet yet nothing really worked. Current Tab:  'Offline' Tab:  Thanks :) | |
Public Class Close Inherits Windows.Forms.Button Public Sub New() Me.Size = New System.Drawing.Point(25, 25) Me.FlatStyle = Windows.Forms.FlatStyle.Flat Me.BackgroundImage = My.Resources.CloseNormal Me.BackgroundImageLayout = Windows.Forms.ImageLayout.Stretch Me.BackColor = Drawing.Color.Transparent Me.Font = New System.Drawing.Font("Calibri", 10, Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ForeColor = Drawing.Color.Black Me.FlatAppearance.BorderColor = Drawing.Color.DeepSkyBlue Me.FlatAppearance.MouseDownBackColor = Drawing.Color.Transparent Me.FlatAppearance.MouseOverBackColor = Drawing.Color.Transparent Me.FlatAppearance.BorderSize = 0 End … | |
Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great. Now if i comment that out i get an error with EventQueue … | |
Hi I have 4 files in directory on my desktop? My question is 1.How can I display for each file only the name, the size and the date in this order? 2. How can I display all files sorted accorded their name? #!/usr/bin/perl use strict; use warnings; my $dir = … | |
hi i trying to update some information with a picture to the database but it display followin error message "Syntax Error in Update Statement" this is my code plz any one can help me? i'm a beginner learning VB.net Try Dim fsreader As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.Read) Dim breader As … | |
I program in C++/C/C#/Java but recently started in web programming. I like javascript and i am wondering if one can use it to make desktop program like one would in c++ for creating e.g. console applications... Or is it only a language that can be used in inside a browser … | |
I am trying to write a server-client application for file transfer: the client written in Java and the server written in C++. Unfortunately I have the following error: "java.net.SocketException: Connection reset by peer: socket write error". Here is my code for client: import java.io.*; import java.net.Socket; public class Proba_binar public … | |
drawing multi-colored warms on a vb form.an individual warm will consist of number of segments and segment will be a line of certain width and colour | |
Hi guys. So I have this code for uploading pictures for TinyMce. I can't figure out how I can manage random filenames on upload. I've tried to change "$filename" and adding time() and rand(), but it don't seem to change the filename. Any ideas? define ("MAX_SIZE","200000"); $errors=0; if(isset($_POST["submit"])) { $image … | |
Greetings I want to know what is the difference between passing an agrument by reference as a constant and making the function itself a constant. A constant argument means that the function cannot modify it anyway and any attempt to do so, will report an error from the compiler what … | |
hey there I don't know if this mentioned earlier but I want to do this sql statment $sql1 = "SELECT product FROM products WHERE cat = 2"; $sql2 = "SELECT product FROM products WHERE cat = 3"; $sql3 = "SELECT product FROM products WHERE cat = 4"; I want these … ![]() | |
Greetings guys i'm stuck in this problem for 2 days now can you guy tell me the problem? here's the code If errorMsgLbl.Text = "Password match" Then sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _ " [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _ " … | |
Hi there, on one of my pages I am working on [url]http://www.antobbo.webspace.virginmedia.com/photography/category_1.htm[/url] I have a script which works in firefox, opera but it doesn't in chrome and IE. Now, let me explain first what the script is supposed to do. On the above page if you click on the second … | |
I'm having a little difficulty understanding why a piece of my code cannot be modified to work with stack instead of heap. Well that is just a descriptiom, I'm aware there are no gurantees where my data will be stored. As it stands my working code is... //u_char = unsigned … | |
Hello. I have a user defined function in start of an Html page. I want to add textfields in the innerHtml. Please guide me what should I do. When I enter string in the innerHtml on line 10 and 11, It show "New" in the cells. BUt i am adding … | |
So I made a simple scripting language in C# based on batch. I made it compile into a batch file since it is a scripting language it had no compiler. Is there any program out there where you can customize a programming language and compiler? | |
This code works online for login. I wonder it doesn't work offline for login. I am using windows 7 and apache server. I already enter the correct username and password. It shows nothing as if nothing happens. <?php ob_start(); include('../includes/koneksi.php'); /* the files */ // username and password sent from … | |
Hi everyone, At my new workplace, I've been learning and making a few scripts/macros in VBA to help out with work processes and so forth. Nothing major, but I've taken an interest in it and really want to take it a step further. A lot of this might be amateur-ish … | |
How to separate admin and frontend part in php with codeigniter? I have 3 users.. How to give them the privelges to get access on their pages ? | |
i have made one program,but it will give none of the port number. Following files i have made **SimpleRead.java** import java.io.*; import java.util.*; import javax.comm.*; import java.nio.ByteBuffer; public class SimpleRead extends SpeedometerExample implements Runnable, SerialPortEventListener { static CommPortIdentifier portId; static Enumeration portList; byte[] readBuffer=null; InputStream inputStream; SerialPort serialPort; Thread readThread; … | |
How to install XAMPP on windows 7? I have downloaded several XAMPP installer and all of them have the same errors when I try to install them. Because an activated User Account Control (UAC) on your system some functions of XAMPP are possibly restricted. With UAC please avoid to install … | |
I want to know that how I prepare a website in wordpress from scratch without using any premade template. What files are required and how to upload them on server that browser start showing that website. | |
What is the procedure can be used in MS-SQL server 2012 in order to create a workflow as in dynamics CRM? Is there a way. Or what is the alternative? Thnakx in advance. | |
Well I need help on moifying my report regarding SearchTree.java(Working with Recursion) "Modify the private report to have an additional parameter which indicates the level of indentation at which the visit should be displayed. The public version of report should be modified to call the private version with an indentation … | |
I'm new to php and dymanic web applications using PHP I'm tyring to read from table Id(primary key) to other form and save othe table as forign key. I appreciat for you help | |
I have a UDP server and need to perform an "all" function. That means when a user sends "all blah blah" the server checks a list of clients and sends "blah blah" to all of them. I've stored the clients in a HashMap and I'm trying to figure a way … | |
*Dear friends: I need a quick algorithm to find the common faces of polyhedrons meshes for the finite volume computation. Each plolyhedron is recorded with the indexes of its six vertices(hexahedron) or four vertices(tetrahedron). Each polyhedron has only one common face with its neighboring polyhdrons. The common face can be … | |
Hello Everyone I am using 2 different database servers to retrieve my data. Some of my query retrieve data from one database server and some from other database server. I had made connection successfully, But there is one problem. The problem is that when I am retrieving data it is … | |
I am thinking to implement a forum like Private Message into my website for those who are a registered member. (<100 Member anyway) So Member A can send a message to Member B. Member B will have a notification popup within some seconds saying that he received a new message … | |
I've been having trouble with just the map area and the calendar piece of my website. But more focused on the map piece. The map does not want to load properly or won't load at all in the second tab of my jquery tabs. I need help, I think I … | |
Hi I am going to solve a problem and have now idea of how, I will that in the list1 only those people that correspond to the date of the date is showing. No one else than that one of the day the word Prn is standing for birthday in … | |
Hello guys Am still a newbie in php in codeigniter Hmm, am creating a website..for that when a user log in...the session has to be kept..while she is browising between several page in the website. how can i include this? Header or something? I have already do the login part.. … | |
I have written a super class called Parent.java and it was extended to create a subclass called Child.java. The super class can be compiled properly, but when the child is compiled an error is poped up. //parent class package abc; public class Parent{ protected int st_marks=180; } //child class package … | |
Hello Friends, Can someone please advise me on how to print an array inside of a GUI text field? Thank you, Jim Here is some of my code. /** This private inorder method recursively traverses a binary tree in inorder. @param btree The root of the tree to traverse. */ … | |
I have an assignment where i should demonstrate concurrency controls.In order to do that i should work with two sessions in the same database in ms sql server. How can i do that. | |
hi, i am a web and app developer. i need some help in a javascript code which belongs to a wordpress plugin - wp-imageflow2. wp-imageflow2 is a image slider with lightbox features. The slider moves from left to right and then back to the 1st image (basically image1 to last … ![]() | |
A list of courses is displayed and user has to select 1, so I used radio buttons. The course list vary from one student to another. If I have more than 1 courses displayed and user selects one, everything is ok, but if I display 1 course, the test is … ![]() | |
I Have a problem about display an image and a descryption to a web page. as admin or some how i need to upload photos to my web site.(only to admin). so for that i need a help to do it (PHP CODE) please! im actually new to PHP.it would … | |
hi, am Gilbert i developed a desktop application in java and i craeted an autorun of the application. and i made a webbased application using php. how can i run the desktop application via php? | |
I am working with HTTP & RTSP Protocol. For live streaming video I am using RTSP Protocol. For RTSP live streaming my URL is something like this: rtsp://www.sitename.com:554/video/exp.mp4 But it's give me error "Cannot play video". Can any one suggest how RTSP will work & is there any other setting … | |
Hello I am at a lost of how to search for data in a file which was populated through structure. Supposed I have 15 chemicals and each of them contains additional information (e.g. Chemical Name, Chemical Formula, Chemical type, State of the chemical, Antidote name etc). If I want to … | |
Hi all this should be an easy one, Trying to move an input from text box1 to text box2 and return back to page1. page 1 reads, <HTML><HEAD><TITLE>php scenario move text </TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 9.00.8112.16457"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE></HEAD><BODY><P> </P><P><FORM method=post action=2.php> <TABLE border=1 … | |
Hi I have these two tables:Customers and Bookings;Customers has these fields CustomerId,firstname,lastname etc.Table bookings has bookingId, customerId,datebooking,startdate,enddate etc.I want to retrieve customerId,first and last name from Customers and datebooking,start and enddate from bookings, I understand I have to use a LEFT JOIN.I tried everything but it does not work, coud … | |
Ok, so my program's input is the number of days someone worked. They earn .02 a day. Each day they work after the first, their pay doubles...(.04, .08, .16....) my code below displays the days worked and the money earned each day. I think i did it the hard way … | |
I have to submit a C project tomorrow on KD tree and i found this code.I understand some parts of it but rest is out of my head.I know how kd tree is created.Please help #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define MAX_DIM 3 struct kd_node_t{ … | |
Hello guys, i'm new here. I would like to convert my .txt file which have the following content into an array of int which every elemnt in the array should only have 4 character inside. example: two[1]= 0x03; two[2]= 0x00; two[3]= 0x03; two[4]= 0xf5; This is the content of my … | |
How to divide a number into multiple parts so that the resulting sum is equal to the input? for ex : input from textbox : first input is(txt_val1) :5 second input is(txt_val2) :3 output : 3+2=5 2+3=5 4+1=5 1+4=5 or any other combinations like these. both input are dynamic always. | |
I'm working on building a forum in PHP and am trying to include a feature that would log a user out after a certain amount of time. It would also direct them back to the login page after the elapsed time. I've built the forum using separate php pages for … | |
#include<iostream> #include<cstdlib> #include<string> using namespace std; class Menu { public: Menu(); virtual void showMenu(); private: }; Menu::Menu() { } void Menu::showMenu() { cout<<"\nFood Selection:"<<endl<<endl; cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n"; cout<<" Food Category "<<endl; cout<<" __________________________________\n"; cout<<" 1. Appetizer *"<<endl; cout<<" 2. Main Course *"<<endl; cout<<" 3. Drinks *"<<endl; cout<<" 4. Dessert *"<<endl; cout<<" … |
The End.