199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am writng a simple networking program with a single server and multiple clients. I would like to send and receive objects between the clients and the server and hence I use the ObjectOutputStream/writeObject(Object) and ObjectInputStream/readObject() combination. First, my server program: import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; … | |
hi sir, i have vb.net project connected with msaccess ,in that when i inserting a value to one table i want to update the value in another table is it possible ,in my code it is not showing any error but it is not updating only inserting can u check … | |
Hi, I have a raspberry pi and was wondering if it was possible to detect button presses from a webpage in python. I have a robot arm and can control it using this code: #!/usr/bin/env python #ROBOT ARM CONTROL PROGRAM # MoveArm(1,[0,1,0]) @Rotate base anti-clockwise # MoveArm(1,[0,2,0]) @Rotate base clockwise … | |
Hello! I would like to ask you for help about this: Create a program in C that inputs a random number from the keyboard( long long ), finds the sum of the numbers formed by the digits, grouped in pairs starting from the one and displays the character equivalent of … | |
Hello Guys, I need your help. How to convert decimal into precent using php codes example like this. Example: 0.2 = 20% Thanks in Advance Please help me, Thanks | |
Hi, I am not begging for code here, but rather some concepts / ideas on how to accomplish this. I code in VB.NET, but that isn't really too relevant at this point. I am trying to develop something similar to a radar system. I have that all working and the … | |
Hiya guys, I am wondering whether anyone can help me, I have been stuck on this for weeks. I have got a similar thing working but I just cannot get this working. I have got a SQL Server Database integrated into my VB application. There is a table called 2HaulierLogIn … | |
Essentially, I'm trying to go oldschool and make a lil 2D engine, but instead of just importing bmp's or other image files, i'm looking to print each pixel to the screen myself. Firstly, Ive got it so I can display a single image I made, however, for colors such as … | |
I'm hoping that another set of eyes will see something that I'm not. I'm having an issue with a script that I just added a little routine to, so I know the issue is in the routine, because the sript as a whole was working before adding this... the routine … | |
Is it possible to put a checkbox in the title bar of JInternalFrame? | |
![]() | I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int … ![]() |
input_gallery.php <?php include('../includes/koneksi.php'); $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $post_image = isset($_POST['post_image']) ? $_POST['post_image'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; //Load image if (!empty($_GET['post_id'])){ $result = mysql_query("SELECT * FROM static_page WHERE post_id … | |
My problem with this program is within my do while loop. From line 33 to line 47. Please find attached the original intention in the pdf document ` //Program to show loan and interest calculation #include <iostream> // for cin, cout #include <string> using namespace std; const double ANN_INTEREST=0.05; //simple … | |
I am writing a code for my Computer class, that takes a user input string, and displays it with the vowels removed. I have the code to where it takes the input and displays the string, but it only displays the letters in front of the first vowel. For example, … | |
Since some of us might get a bit rusty with our coding, we constantly need projects to keep us busy, no matter how big or small. Making sure you code a little a day it not only fun but also allows your skills to continue growning. The problem though, is … | |
I'm quite new to Python, and am trying to make a simple unit converter - was hoping if anyone could tell me where i'm going wrong? This is the script as it stands: input('Would you like to convert centimeters to inches (a), or inches to centimeters (b)?\ntype a or b: … | |
Write a program which asks the user to either convert the number of days into hours or minutes. Based on the option entered by user your program should calculate the result accordingly. | |
Hello, DaniWeb! Today I am in need of a Java Crash Course! Maybe a couple of (very short) source files with comments describing what things do? Any help is appriciated! I already know C++, how much does that help me? | |
A hardware merchant sells steel bars at a flat rate of Kes 1000.00 per meter, and has announced the following discounts: Quantity of steel bar bought (per meter) Discount (%) <20 0 21-40 5 41-60 10 61-80 15 81-100 20 100 25 Implement the following programs: a) Using if..else statement, … | |
Hi, The problem I am having is that the returned object, from a dll factory, is not lasting for more than the function scope that recieves it. Despite reading [How to prevent the static initialisation order fiasco](http://www.parashift.com/c++-faq/static-init-order-on-first-use.html) I fail to see how it even applies to my code. `g_spEngineLog` is … | |
<?php if (isset($_POST['Login'])){ $Username = $_POST[ 'UserName' ]; $password = $_POST[ 'Password' ]; $user = 'localhost'; $pass = ''; $db = new PDO('mysql:host=localhost;dbname=ovs', $user, $pass ); $sql = "SELECT * FROM Voters WHERE UserName=:UserName"; $query = $db->prepare( $sql ); $query->execute( array( ':Username'=>$UserName ) ); $results = $query->fetchAll( PDO::FETCH_ASSOC ); foreach( … | |
Hi all, I wonder if somebody can help me with this. I have this situation: I have a header div with a heading and when I click on it another div hiddenDiv slides down or slides up (I am using the slideToggle method). What I want to do also is … | |
I am having problem with programming, i have been given a program to perfom and so far i have benn unable to start..can anyone help me? This is my question..1. Create a class called MyString. Within this class, you are to implement, from scratch, two versions of each of the … | |
what iam trying to do is get field parameter and run mysql query to update(decrement) value from field quantity, can any one tell me how to do that? <form method="post"> <table class="bordered"> <thead> <tr> <th>No</th> <th>Drug Name</th> <th>Strength</th> <th>Quantity</th> <th>Dis Qty</th> </tr> </thead> <% try { String query="select * from … | |
Hey everyone, I am learning recursion in Java and I have a lab to do. I have done the first part right, which is to draw those squares. The second part of it is to do the reverse of it, so left starts from the smallest square to biggest. I … | |
i have worked on standalone projects on vb but dont know how to debug server & client side database application whose front end is vb.net & back end is ms access. do i have to install vb.net on the server to debug the software or is there any other way … | |
My eclipse id is taking too long time to open (at least 15 minutes) I tryed all the options in google search but the problem remains the same kindly give me tips to fix the problem thanks for your time | |
I am using the Eyesis Data Grid Control (http://www.phpclasses.org/package/4951-PHP-Display-data-from-a-database-in-a-sortable-table.html) and would like to add the Delete function as shown in Example 3 (http://www.phpclasses.org/browse/file/25088.html). The line in the sample code where this is done is: $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, "alert('Deleting %Id%')"); How do I change the "alert('Deleting %Id%')" to either a function that deletes … | |
In one of my applications, I had to toggle the background of a box between two colors, say blue and red. As I like to store an information in only one place, I decided that this place would be the box itself and that I would check the current color … | |
// random number generator var theDecimal = 0; function newProblem(){ theDecimal = Math.floor(Math.random()*256); //math.floor chops off decimals and rounds document.getElementById("startNumber").innerHTML = theDecimal; } | |
I am a beginner to VB.NET, and I am creating a program that displays a new string in a label. The new string should take a sentence entered by the user and remove every occurrence of a substring supplied by the user. This is my code so far: Dim input … | |
Hi, why is it, when you [click](http://jsfiddle.net/WildWind/d7jhN/) "whatever", the string "hello there" isn't written with the ID#thename input box ? | |
Hello, I'm a first timer here but I've kind of exhausted all my options for help on this program so this is my last resort... Anyhow, I'm constructing a hash table given a hash table class header file from my textbook. I'm working on the Driver.cpp file and here's what's … | |
![]() | Hey guys, At the moment I have an `if == admin then show admin form` on my views. I guess it was more for the sake of convenience rather than anything else. Is it best practice to create a separate controller and view for an admin panel and place this … ![]() |
![]() | how to prevent this in codeigniter. The user may still wish to type this in so xss filtering is not an option ![]() |
Develope an algorithm that will accept and allocates the fund for the differenct state activities for America's 50th celebration. The algorithm should accept and store the actual dollar value that will be allocated to the parishes.Noo more than 14 states should be accepted.The algorithm should also determine the number of … | |
hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 … | |
Hello, So I have been trying to produce an algorithm for unsymmetric matrices which finds the smallest magnitude eigen value. I have found this:   However, I still don't know how to implement it in python. Can someone help out or provide psudocode/code ? | |
hey how to compare longest decimal number using == operator?? | |
As a beginner java learner, I would be grateful if some people could point out a few open source projects with a high quality code base. Not necceserily aimed at a beginner, I would rather see a professional quality example, and preferabbly the project would use some common tools for … | |
-->>I'm trying to make a simple Audio player and so far I'm good. -->>The problem I'm facing is redusing and increasing the Volume. -->>Any ideas please... -->>Thak you. | |
Hello all, My assignment is as follows: Write a program that prompts the user for the number of tellers at Nation’s Bank in Hyatesville that worked each of the last three years. For each worker the program should ask for the number of days out sick for each of the … | |
I'm trying to emulate bash/cmd type program. I have written programs like cat, ls, grep (simple one) and kept it under \bin\ directory. This program will take user input and run programs present in \bin\ accordingly. I'm using `_spawnv ()` as the argument list is going to be variable. When … | |
Hi everyone, I have to write a function that will dig into a folder and store all the filenames into an array. I will have to use that Array later to access to each of the file. My function worked, and when i tried to output onto the screen, the … | |
Hi, I'm new to vb and I need to record the time the user used a certain privilege and the time s/he finished using it. i used date/time picker but whenever i run the program, i can't edit the time. only the date. help please? | |
Can someone help me on my database with regards that the records can be prone to data redundancy.. pls help to avoid record redundancy on my database.... How do I check if the record that i will be input is existing on my database.. and i want to prompt the … | |
i was wondering how you could make a counter that shows how many people are currently on the site. how to show how many people brousing my site now with page name and how to show recentaly updated pages? you can see it here [Click Here](www.indianrajputs.com) www.indianrajputs.com please please please … ![]() | |
![]() | I have already seen that someone posted this question a couple of years ago. I do not want any one to flat out give me the answer. I hav the code written, I just cannot figure out why the pattern won't look like this: 1 12 123 1234 12345 123456 … |
The End.