199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shanki himanshu

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 …

Member Avatar for shanki himanshu
0
380
Member Avatar for IsaacMessi10

I want to make a tab control that looks like this: ![6f8bc46c110356e34b73f3992d388de2](/attachments/large/3/6f8bc46c110356e34b73f3992d388de2.png "6f8bc46c110356e34b73f3992d388de2") Does anybody know how to this? I've searched all over the internet yet nothing really worked. Current Tab: ![9db2836000c6705c1e74ca8d818f3186](/attachments/large/3/9db2836000c6705c1e74ca8d818f3186.png "9db2836000c6705c1e74ca8d818f3186") 'Offline' Tab: ![c8393eabeab3324cf45c45d3caab472b](/attachments/large/3/c8393eabeab3324cf45c45d3caab472b.png "c8393eabeab3324cf45c45d3caab472b") Thanks :)

Member Avatar for tinstaafl
0
582
Member Avatar for IsaacMessi10

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 …

Member Avatar for tinstaafl
0
214
Member Avatar for kyle.mace.35

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 …

Member Avatar for kyle.mace.35
0
161
Member Avatar for tony75

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 = …

Member Avatar for tony75
0
4K
Member Avatar for dinesh012

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 …

Member Avatar for PatMoe
0
235
Member Avatar for MasterHacker110

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 …

Member Avatar for IIM
0
137
Member Avatar for adrian9989

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 …

Member Avatar for ktsangop
0
2K
Member Avatar for lucky banda

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

Member Avatar for Begginnerdev
0
91
Member Avatar for sigvewinter

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 …

Member Avatar for broj1
0
1K
Member Avatar for AmrMohammed

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 …

Member Avatar for deceptikon
0
161
Member Avatar for OsaMasw

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 …

Member Avatar for diafol
0
121
Member Avatar for Aven.Seven

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], " & _ " …

Member Avatar for Hazuan Nazri
0
219
Member Avatar for Violet_82

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 …

Member Avatar for 1@3RaJa
0
2K
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
103
Member Avatar for akkbkht

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 …

Member Avatar for akkbkht
0
190
Member Avatar for michael.yeh.18062

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?

Member Avatar for Assembly Guy
0
307
Member Avatar for davy_yg

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 …

Member Avatar for TonyG_cyprus
0
244
Member Avatar for Aspyred

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 …

Member Avatar for Assembly Guy
0
219
Member Avatar for shakayu

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 ?

Member Avatar for shakayu
0
120
Member Avatar for jalpesh_007

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; …

Member Avatar for JamesCherrill
0
338
Member Avatar for davy_yg

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 …

Member Avatar for akkbkht
0
289
Member Avatar for charleskoliver

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.

Member Avatar for akkbkht
0
148
Member Avatar for jrosh

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.

Member Avatar for jrosh
0
94
Member Avatar for kay19

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 …

Member Avatar for riahc3
0
175
Member Avatar for harbi.dayah

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

Member Avatar for harbi.dayah
0
1K
Member Avatar for SylvanSagacious

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 …

Member Avatar for SylvanSagacious
0
398
Member Avatar for ztdep

*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 …

Member Avatar for ztdep
0
177
Member Avatar for sandi009

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 …

Member Avatar for masterjiraya
0
166
Member Avatar for yy886

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 …

Member Avatar for masterjiraya
0
231
Member Avatar for rexmatthew

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 …

Member Avatar for rexmatthew
0
162
Member Avatar for LeNenne

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 …

Member Avatar for LeNenne
0
176
Member Avatar for shakayu

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.. …

Member Avatar for shakayu
0
168
Member Avatar for dlgmu537

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 …

Member Avatar for jalpesh_007
0
195
Member Avatar for HankReardon

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. */ …

Member Avatar for jalpesh_007
0
2K
Member Avatar for jrosh

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.

Member Avatar for jrosh
0
136
Member Avatar for red-axe

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 …

Member Avatar for LastMitch
0
310
Member Avatar for brood_snow

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 …

Member Avatar for LastMitch
0
361
Member Avatar for irfath

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 …

Member Avatar for masterjiraya
0
280
Member Avatar for shimira

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?

Member Avatar for masterjiraya
0
194
Member Avatar for sandi009

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 …

Member Avatar for masterjiraya
0
553
Member Avatar for thexile

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 …

Member Avatar for Ancient Dragon
0
161
Member Avatar for Kniggles

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 …

Member Avatar for masterjiraya
0
378
Member Avatar for Fiorentino01^

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 …

Member Avatar for Fiorentino01^
0
204
Member Avatar for dusto

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 …

Member Avatar for woooee
0
125
Member Avatar for fr33d0mf0r3v3r

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{ …

Member Avatar for Ancient Dragon
0
188
Member Avatar for marvin.gorres.5

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 …

Member Avatar for Ancient Dragon
0
332
Member Avatar for virusisfound

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.

Member Avatar for virusisfound
0
432
Member Avatar for aritanks

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 …

Member Avatar for lukas.vandendijssel
0
241
Member Avatar for victoria.lim.773124

#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<<" …

Member Avatar for victoria.lim.773124
0
260

The End.