199,114 Archived Topics
Remove Filter ![]() | |
how to show data from database in 10 hours ago ex: Article id | title | date ( using datetime) | 1 | data1 | 2014-02-1 01:00:00 2 | data2 | 2014-02-1 07:00:00 3 | data3 | 2014-02-1 11:00:00 4 | data4 | 2014-02-1 12:00:00 Now = 2014-02-1 12:00:00 query … | |
In the following function, the first debug output line ("debugPut"), produces what seems like a valid result: X: 427 Y: 197src=http://www.mygameslab.com/Switch/settingsScreen.png and even pasting the image link itself correctly displays the screen graphics. However, the screen never displays and the next debug text which was supposed to print "Kukuriiiiiiku" doesn't … | |
If anyone needs any help with the projects in the BluePelicanJava book. I am available to help with coding issues. | |
I have figured out how to do this. All that is needed is the .useDelimeter error. help? `import java.io.*;` `import java.util.*;` `public class AddEmUp `{` `public static void main(String args[]) `{` `Scanner sc = new Scanner(System.in); `System.out.print("Enter something like 8 + 33 + 1,345 - 137 : "); `String s … | |
Okay so inside my ArcherArmor.cpp, I'm trying to figure out why the map initializer list isn't working, but for some reason I keep getting "Error C2593: 'operator =' is ambiguous". Here is my code: I also have a class which ArcherArmor is derived from, that has a struct called `Armor`, … | |
I want to find common line in two files and replace the next line of first file with the next line of second file. (sed,awk,perl,bash any solution is welcomed ) Case Ignored. Multiple Occurrence of same line. File 1: hgacdavd sndm,ACNMSDC msgid "Rome" msgstr "" kgcksdcgfkdsb msgid "" hsdvchgsdvc msgstr … | |
i wanted to show the magic of a digit nine to my friensd in c so any one plz help me | |
Hi I am learning strings in c. And I stumbled on this errors on Xcode. What I am doing wrong? #include <stdio.h> #include <string.h> int main(int argc, const char * argv[]) { char *colors[3][10] = {'\0'}; printf("\nEnter 3 colors separated by spaces: "); scanf("%s %s %s", colors[0], colors[1], colors[2]); //error: … | |
How do I use other libraries in C++? Specifically using the PDCurses library in the latest version of Visual Studio Express? What's the general way to set a libray up, how to use it? Thank you for your time and patience. | |
![]() | Hi guys, here is my code for sizeof() problem. #include<stdio.h> struct student{ char name[30]; int roll_no; float marks; }; int main(){ struct student s; printf("\nSize of Name: %d Bytes.", sizeof(s.name)); printf("\nSize of Roll No: %d Bytes.", sizeof(s.roll_no)); printf("\nSize of Marks: %d Bytes.", sizeof(s.marks)); printf("\nSize of S Total: %d Bytes.", sizeof(s)); … |
So I'm trying to figure out why my get method doesn't pass its test. This is my attempt at the get method: public Value get(Object key) { //Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. for (Pair<Key,Value> … | |
Hi, I would like to print the table of a number entered by the user like 2 *1=2 2*2=4 2*3=6 The code is [code=c]#include<stdio.h> #include<conio.h> main() { int i,num; printf("Enter any number"); scanf("%d",&num); for(i=1;i<=num;i++) printf("%d*%d=%d",num,i,num*i); getch(); }[/code] But this code is generating errors. | |
Hi there y'all I have written a simple program that lets you roll a dice. So in one way I am passing this and in another I would like anyone capable of finding a bug, or check my code if I could have used less lines of code or Tell … | |
could anyone please tell me what's the difference between getApplicationContext() and MyActivity.this.."MyActivity" being a class that extends Activity class..somethimes getApplicationContext() doesn't work and I need to use MyActivity.this when the constructur asks for a context... for example, if i use `ProgressDialog p=new ProgressDialog(getApplicationContext());` it gives an error however, if i … | |
Dear All, In Java Swing, for all components there is a setSize method which takes int height and width as arguments. And we will pass parameters like 600,500 & 400,300 etc... My doubt is what is the unit of these height and width . I mean on what unit, the … | |
i may select one or more category.... <?php include('db.php'); $sql = mysqli_query("select * from brandname where category = 'cloths' "); while($row = mysqli_fetch_array($sql)){ echo $row['brandname']; } ?> <form action="checkbox.php" method="post"> Bags:<input type="checkbox" name="bags" value="bags"><br/> Cloths:<input type="checkbox" name="cloths" value="cloths"><br/> Bikes:<input type="checkbox" name="bike" value="bike"><br/> Shoes:<input type="checkbox" name="shoes" value="shoes"><br/> </form> <div id="load"> </div> | |
I got 1 form that contain a table that can be editable . In that table i added 1 column for checkbox . The checkbox is use to send a notification email based on the checked box . I want to create a button that connect to the page which … | |
Hi all!! Can anyone please tell me how to get the source code of an android application? | |
![]() | Hello folks, here is my code with question in it. #include<stdio.h> int main(){ float c=10.0001; char *p; p=(char *)&c; // Casting is correctly done. What exactly is purpose of (char *) ? printf("%f", *p); getch(); return 0; } OUTPUT:  |
Hello, I have this code. After adding this php mailer, I wonder why my form won't appears. Only if I comment out the my code between <?php and ?> then my form appears. Also, how to make my form work so that if I fill it in - in my … | |
I am trying do this pratice but some how the 2nd function did return. P.S>>Since english is my first lang. can some one explane to me this is right path that i am doing? here is question: Write a function that accepts an array of integers and its size as … | |
Hello Community, I was wondering if there is a way to get only the visible section of the image from picturebox1 and place it in picturebox2. So what I have is picturebox1 set to a certain size, and the image size mode is set to center. Picturebox2 is also set … | |
![]() | Hi guys, here is my code that am working on this morning, and I came across a point when pointer operation went wrong. #include<stdio.h> int main(){ char a[20]="Hello World !!!"; char *ptr=a; FILE *p; p=fopen("new.txt", "w"); int i; for (i=0; *ptr != '\0'; i++){ fprintf(p,"%c", ptr[i]); } fclose(p); getch(); return … ![]() |
Hi I just started learning on making gui on Java. I watched some youtube videos and i realise one of the them uses DefaultTableModel. At first i thought it was to allow access to the function of the table but i realise i can directly write and get value from … | |
I having major issues trying to make a GUI for this program. How do I connect my program to my GUI? I don't get it?Can someone help me with this? I also can't get result to read on my GUI.  /* * To change this license header, choose … | |
Herro there :) i'm having serious trouble understaning even the basics of regular expressions in perl. im trying to make a rainmeter skin that lets you search google from desktop and parses the first five links, and a picture if possible. | |
Hello everyone, I am extremely confused and I have no idea how to fix this: When I compile the program I get this message :Error:Incompatible Types:got "SHORTSTRING" expected "CHAR" Here's the section of the program that's giving me issues: IF selection=3 then Begin Writeln('Welcome to option 3'); Writeln('The winners for … | |
Hi, I have been trying to get my program to run for a few days now. I have gotten it almost completed I think, but keep getting "error: variable checkFee might not have been initialized" on line 37. import java.util.Scanner; // scanner class public class PROB3_CHAL15 { public static void … | |
Hi people, I am doing some unpaid work for a friend on an Access/VB application they have. Everything worked for 5 years and then suddenly one day they got the following error: Run-time error '91': Object varialbe or With block variable not set. When I click on debug it shows … | |
“Guess the number” game One of the simplest two-player games is “Guess the number”. The first player thinks of a secret number in some known range while the second player attempts to guess the number. After each guess, the first player answers either “Higher”, “Lower” or “Correct!” depending on whether … | |
Hi, i'am a c# developer but I don't have much experience with c++. I'am curious if it is possible and how to add drad & drop functionality to a window of an external application. From my application I start an external application. I want to be able to drag an … | |
I am learning how to program with MPI and I can't seem to find an example anywhere about scattering two different arrays. Can someone point me in the right direction? I'll post some of my code below, that way you'll have an idea about what I'm trying to do. Thanks! … | |
I am an M.Tech Computer Science student..as per the syballus we need to do a thesis...can you please suggest some new and innovative topics for doing thesis. Recently i heard about hybrid app and am interested in that.Is that a good topic to do as a thesis.? | |
I am in the sixth grade and have come up with an idea for a game. Of course the problem is I don't have the experience to do this and would like to get some advice on how i might pursue my ideas. If I can get positive feedback on … | |
I've created student table with student id , first name and last name .I've alos create trigger to generate student id however when I want to inserte data to the student table I get this error "not enough values " here is my inserte statment INSERT INSERT INTO STUDENT (SID,FIRSTNAME,LASTNAME) … | |
greens = dict(green="#0080000", olive="#808000", lime="#00FF00") >>> print("{green} {olive} {lime}".format(**greens)) -> #0080000 #808000 #00FF00 In the program above what are green, olive, and lime in the dict function? I've seen and read about supplying a function with keyword arguments but only when the function was written with default argument. Even then … | |
Hello, Am doin a web application.How can i implement sms service in my website?? Please show me some references..and guidence please.. Thanks | |
Hi, I have 2 fields that are used for date. In my fucntion, i have it format the date into Y-m-d format, $purchase_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['purchase_date'])); $warranty_end_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['warranty_end_date'])); But when I enter a date into it, it just puts 0000-00-00 I thought this was the correct format, but seems to … | |
The following code unable to insert null or blank value into table called custreg i.e. $sagentid and $sagentname. if(isset($_POST['Submit'])){ $reg_no=$_POST['reg_no']; $firstname=strtoupper(str_replace(',', '' , $_POST['firstname'])); $lastname=strtoupper(str_replace(',', '' , $_POST['lastname'])); $mobno1=$_POST['mobno1']; $mobno2=$_POST['mobno2']; $address=strtoupper($_POST['address']); $city=strtoupper($_POST['city']); $dateofjoin=$_POST['dateofjoin']; $regfee=$_POST['regfee']; $magentid=$_POST['magentid']; $sagentid=$_POST['sagentid']; $skimcity=$_POST['skimcity']; $skimyear=$_POST['skimyear']; $skimname=$_POST['skimname']; $cust_fullname = $firstname.' '.$lastname; $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = … | |
Hi all, I want to write a script to do the following job I have a record like day ID var Month 1 11 x March 2 11 y April 3 11 y March 4 11 y April 5 11 y March 1 22 y April 2 22 x march … | |
HI ALL, I am trying to sketch the beging of function and the end, #include<ctype.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> #include<stdio.h> #include<stdlib.h> int xmax =1024;// getmaxx(); int ymax =760;// getmaxy(); float r,h;//??? int i; void grafica(){ //int gd=DETECT, gm; //initgraph(&gd, &gm, "..\bgi" ); initwindow(xmax,ymax, " Miscare "); setcolor(15); } float f(float … | |
I am trying to created a program that will check for updates then restart the computer and recheck for more updates. I want to know how to restart the application with elevated permission but only ask for permission when the program was first launched. I am not looking for someone … | |
HI GUYS I HAVE 2 WEEKS INTO THIS SUBJECT C++ AND OUR LECTURER HAS SINCE GIVEN US AN ASSIGNMENT.ONE OF THE QUESTION STATES; CONVERT THE FOLLOWING ALGEBRAIC EXPRESSIONS TO C++ a) M= A+B+C+D+E/5 B)Y=MX+B C)Z=PR+Q+W/X-Y D)Y=X(SQUARED)/B(SQUARED) E)Y=AX(SQUARED)+BX+C F)3(a+17) g)x+2=28 h) 50 n+5 =10 i)7x(squared)+4x-10 j)A IS NOT EQUAL TO B | |
I'm trying to connect mysql database through API, and I'm using the following coding. I could't get the proper access to the database. Do I need to create a JDBC to the database or is there any other options available? <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.ResultSet"%> <%@page import="java.sql.Statement"%> <%@page import="java.sql.Connection"%> <% String … | |
I have included a copy of the aspx file and the work behind code file, my problem is I am trying to figure out how to get the text entered in the text boxes so I can update a mysql database. I have tried using the findcontrol but I'm not … | |
This is something that I made a while back during thanksgiving 2007. If you want to add on to it you can, it's not very well made as in the organization sucks. But it is pretty cool in the fact that you can navigate your acii environ with color and … | |
I am currently trying to write a simple multi-threading program using Python. However I have run on to a bug I think I am missing. I am trying to simply write a program that uses a brute force approach the problem below:  As can be seen from the … | |
I have a 31,000 line spreadsheet, that will become a printed book. Based on the current column width (which has to stay the same for printing purposes) there are many lines that are only one line of text, and others that wrap to multiple lines. For some reason, for lines … | |
Hi, I have what I hope will be a quick and easy question. I am trying to select all records from a table called prod_enroll that were last updated on yesterday's date This query works, but I was just wondering if there wouldn't be a more elegant way to accomplish … |
The End.