64,152 Solved Topics
Remove Filter ![]() | |
##TASK Step One The DNA molecule is a double-helix. You can think of this double helix as two parallel sequences of DNA with nucleotides or bases (A,C,G,Ts) on one strand matched with their associated nucleotide on the other strand according to the following rules: A matched with T C matched … | |
Hi i'm having a trouble with this i got 3 textbox and i format it to Textbox1.Text = Format(Textbox1.Text, "Standard") Textbox2.Text = Format(Textbox2.Text, "Standard") Textbox3.Text = Format(Textbox3.Text, "Standard") which give something like this 1,230.00 2,500.00 1,245.00 and when i add it `Textbox4.text = Val(Textbox1.Text) + Val(Textbox2.Text) + Val(Textbox3.Text)` the result … | |
les say i have a map: //my map is biiger but this is just a ex. int map[][] = {{1, 1, 1 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}; int camera_pos_x = 0; int camera_pos_y = 0; int camera_speed = … | |
So I have been working on something that will check if a user is online or offline. I have the login page set up adn when you loggin, it will take you to the datase that shows all the users. I have a row called "UserOnline" and I want it … | |
I'm working on an assignment in which we aren't allowed to use arrays or functions. So i need to use loops to split words from a text file. I got most of the code working but i get an error at this part where the loop doesn't exit when i … | |
So the "substr" command is used for extracting certain characters, i have a problem in which if the character is a space, the previous value is used for filling the variable The code: #include "stdafx.h" #include<cmath> #include<string> #include<iostream> #include<sstream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string line="Introductory … | |
Group, I see there are multiple "validation" type events to choose from in the "Declarations" drop-down box. I want to understand these choices better to see if one would work for what I want to do. I've got several textboxes that need to have either a number entered into them … | |
As part of my Uni course i have been given code to edit to create a MineFinder (mine sweeper) game. I have 3 seperate classes to create this game. But for now, my problem lies with this "MineFinderModel class... the tasks i am struggling to complete is as follows: > … | |
Hello, I have build my application and now that I am trying to run the jar file by double clicking on it nothing happens. I tried to access it from my terminal(mac OS) using this line: java -jar "C:\Users\Me\NetBeansProjects\BS1\dist\BS1.jar" But get the following error: Unable to access jarfile Can anyone … | |
Hey guys, I have a quick question. I normally only do Front-End but I have just started working more with PHP. So I have a question regarding conditionals. Here is my code: //I actually get this from when a user posts, this is for demo $videoURL = "http://www.youtube.com/watch?v=-XjwL9kCmgc"; $parsedURL = … | |
I read a sample code from a development kits. The global array is declared without indicating the array size. I wonder is it safe? Here is the code: #include <stdio.h> // For Used Function printf // UART Buffer char uart0_buf[]; // "sprint" UART[0] Buffer char uart2_buf[]; // "sprint" UART[2] Buffer … | |
hi i m making a c# app which reads data from ms accesss & display it in textbox i have tried the following method but that didn't worked suggest me smthing or correct my code pls myconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\nature bliss\Desktop\Stock\section1.accdb;Persist Security Info=False"); try { OleDbCommand cmd = new … | |
so i got finally done with make my player move right and left, and 1st level. now i want to make my player shoot bullets. i kind of now logic behind it but i need some help. and please let me know if you have a better method of bullet … | |
Hello C# experts! can't figure it out. obviously i'm missing something. here is part of my code: private void button1_Click(object sender, EventArgs e) { dataGridView1.ColumnCount = 5; dataGridView1.Columns[0].HeaderText = "Payment #"; dataGridView1.Columns[1].HeaderText = "Monthly Payment"; dataGridView1.Columns[2].HeaderText = "Amount to Interest"; dataGridView1.Columns[3].HeaderText = "Amount to Principal"; dataGridView1.Columns[4].HeaderText = "Remaining Balance"; double … | |
hi , I have found vegaseats codes and tutorials helpful for biginners , how can I collect them in the pdf format? | |
Hi to all, I try to insert a values in SQLSERVER 2005,It shows "Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table 'designation' when IDENTITY_INSERT is set to OFF." BEGIN TRAN INSERT INTO DESIGNATION (ID,DESIGNATION) VALUES(17,'TEST') COMMIT Kindly Suggest How to Solve … | |
Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is … | |
Hey guys i was just wonder how i would do this; i need to supply a value for Counts() in the triples function how would i do this to check all values in the array? Private Counts() As Integer = {two, three, four, five, six, seven, eight, nine, ten, eleven, … | |
Please help. I already had my booking calendar added to my site last week and the calendar showed up but now only the booking form is showing up but the calendar does not seem to show. I've tried a lot of fixes and nothing seems to work. Please help. ------------------------------------------------------------ … | |
Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" … | |
hy guys can you please tell me what s wrong with the folowing code float a,b,c; printf("input three numbers:\n"); scanf ("%f%f%f",&a,&b,&c); float z=sqrt((1/2)*(pow(a,2.0)+pow(b,2.0)+pow(c,2.0))-(3/4)*pow(a,2.0)); printf("res is %f",z); getch(); return 0; | |
I am currently fluent with html and css. My goal is to create a website where there will be tasks for site users to gain points for completing certain tasks. Tasks include reviewing a material they used which they will gain points for if the review is useful, points are … | |
Hi All - I am trying to correctly valididate forms on serverside using PHP and on client side with JavaScript I seem to have got lost in the processes here. Thanks DJ <?php // define variables and initialize with empty values $fname = ""; $fnameErr =""; $lname = ""; $lnameErr … | |
I am new to website designing & ASP.NET but knows few basic things. As a final year project i have choose to make a **Music Website**. It will sell the albums & songs developed by the organization. Yesterday I showed it to my project guide in the college. Before that … | |
impliment the selection sort algorithm to sort the elements in a two dimentional array of order 3*4 in descending order. the program should prompt the user to input 12 element, sort and display the elements in the matrix format. | |
Hello, i wanna ask you guys if there is anyway i can get the value of a dropdown and pass it to another php file without using the <input type="submit> way? The way is i have the options in my menu coming from the database This is my code on … | |
Hi I would like to write the script that produces at least 6 encrypted password using crypt module and save them in a file called password.txt but I get error? and How can I add more than 6 encrypted password ? import crypt import random, string password = input("Please ender … | |
I'm a beginner in php.. can any one explain cookies & sessions in an easy way for me? i have surfed different sites for it also i have taken many trainings but yet i m not that much clear about these two concepts... kindly help me out ! | |
I am using Netbeans 7.1 I have 2 jFrame JFrame1 and JFrame2 I just not able to close or hide the JFrame1 when I switch to JFrame2 This is the JFrame1 Code - private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try{ int flag=0; String sql="Select * from login;"; smt1=con.createStatement(); rs=smt1.executeQuery(sql); String log=jTextField1.getText(); … | |
trying to buld gllery.php page. where i want to print all user image with 4 cols. and infity rows. all in one page gallery.php <?php session_start(); include("connect.php"); $user = $_SESSION['username']; if($user) { $user_id = $_SESSION['user_id']; //get user_id who ever is loged in $image = mysql_query("SELECT * FROM image WHERE user_id … | |
how can i put an if statement in a OkCancel Msgbox .. for example when i choose OK .. it will perform the code .. and if I Cancel it will not perform the code? | |
I wrote a large project dealing with images, files, and WINAPI functions. I decided to add RichTextEdit to it and used the msfedit.dll.. Turns out that it only supports UNICODE style strings and chars and my entire project is std::strings and LPCSTR's, etc.. None of the WINAPI functions are unicode … | |
Group, I'm stuggling to get values from an sql database table into several textboxes. I'm not getting an error, but I'm also not getting anything to show up in these textboxes. Can you offer some thoughts as to what I need to do to fix this? Private Sub btnUpdateOrder_Click(ByVal sender … | |
All, How do I convert a DataTable double from a row object to a normal double? I'm creating the DataTable like this (note that Temp and Hum are doubles): private void readDummyData(DataTable dt) { string fileName = "dummydata.csv"; string[] lineCSV = new string[5]; StreamReader myReader = new StreamReader(fileName); // Define … | |
I'm trying to extract some metadata from a m4v file. I'm looking for the duration, height, width, etc. I do all my programming on a Raspberry Pi and was looking at gexiv2 but could not get it going. I got exiftool working though. My script looks like this: import exiftool … | |
I am making a Webpage in asp.net which is having three dropdown lists One for Country, Second for State & Third for City. Here's the code for dropdown list: <tr> <td class="td1"> Country: </td> <td> <asp:DropDownList ID="ddCountry" runat="server" Width="250px" onselectedindexchanged="ddCountry_SelectedIndexChanged"> <asp:ListItem>India</asp:ListItem> <asp:ListItem>UK</asp:ListItem> <asp:ListItem>USA</asp:ListItem> </asp:DropDownList><br /> <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label> … | |
i trying to my background move left if user hit right key. and background right if user hit left key. that way it will look like my player is moving. the problem is that when ever i hold right key, the background waits 1 sec than moves to left. i … | |
I don't know whats wrong but my code not working properly here is my html code <input type="text" name="username" id="username"> <div id="check_usr"></div> AJAX call <script> $(document).ready(function() { //user name $('#username').on("keypress", function(e) { startTypingTimer($(e.target)); }); }); var typingTimeout; function startTypingTimer(input_field) { if (typingTimeout != undefined) clearTimeout(typingTimeout); typingTimeout = setTimeout( function() { … | |
i have problem my login it's not running plzzz help me <?php session_start(); require("dbc.php"); if(isset($_POST['submit'])) { $username =mysql_real_escape_string( $_POST['username']); $password =mysql_real_escape_string($_POST['password']); if ($username && $password) { $connect=mysql_connect("127.0.0.1","root","") or die("couldnt connect to database"); mysql_select_db("login") or die("couldnt find database"); $query = mysql_query("SELECT * FROM `users` WHERE `username` ='$username'"); $numrows = mysql_num_rows($qurey); if($numrows … | |
Group, I've got part of my code started to populate the DataGridView with the data I need to return. When testing it, I have this long pause and no returned data. I finally have to kill it via <Control><Alt><Delete>. I've tried reading through mulitple websites to find some information to … | |
Hi, i am trying to make a server client application using sockets in C. Server and client compile just fine but they dont seem to connect with each other and i don't understand why (i just started learning about sockets). My OS is SunOs 5.10. This is my server code … ![]() | |
Hi, am wanting to add a pause and play button on my slideshow but don't know what code I need to get this working. Below is the code I have. It will automatically pause on hover but would like a seperate play and pause button aswell. <link rel="stylesheet" href="css/global.css"> <script … ![]() | |
error: The method paint(Graphics, main) in the type player is not applicable for the arguments (Graphics, main.Display) on line: player_class.paint(g) main.java public class main extends JApplet { Timer timer; Display display_class; Player player_class; /*** init method ***/ public void init() { setSize(800, 400); display_class = new Display(); setContentPane(display_class); }/*** end … | |
Hello to everyone, im having trouble getting the value of a combobox in HTML to php! Frist I import data from a mysql collum into the combobox, being this the value of the combobox! I want to be able to get the selected value when I submit my form. I … | |
how to execute two queries if isset like this but this code wont work if (isset($_POST['Add'])){ $tror=$_POST['tror']; $name=$_POST['name']; $product=$_POST['product']; $price=$_POST['price']; $deliver=$_POST['deliver']; $return=$_POST['return']; $custody=$_POST['custody']; $cash=$_POST['cash']; $charge=$_POST['charge']; $date=$_POST['date']; mysql_query("insert into delivery (TrOr,Customers_Name,Product,Price,Deliver,xReturn,Custody,Cash,Charge,Date) values('$tror','$name','$product','$price','$deliver','$return','$custody','$cash','$charge','$date') ; UPDATE inventory set Quantity='$_POST[cquantity]' WHERE Product='$_POST[product]'"); } | |
Can any one help me writing code which can only creat three digit random number not two digit or one digit number? Following code creates 3 digti but also creats two and one digit number.. public class random { public static void main (String [] args) { double n = … | |
how to trim a text and get the data after the colon(:) and eliminate space example: 5 Gallon Qty: 10 adn then on dropbox selected the the value of quantity textbox will be the trim part **10** | |
What is the difference between Definition and Declaration of a variable? Am not talking about function, but variable. When I googled, I found these two answers which are quite contradictory! While one says "definition occures once through the program( memory is allocated once ), but the declaration can occur many … | |
Hi, Can anyone tell me how to create a class in C++ such that, the instance of that class cannot be created on stack? Am not able to figure out how to do it. Thank-you in advance, Sri | |
$ awk -F ":" 'NR!=1 {print $1}' test1.txt what does this mean?? especially ":"?? |
The End.