199,113 Archived Topics
Remove Filter ![]() | |
How do I convert the integer -2 to its hex 0xfe??? I tried hex() but it gives me -0x2 | |
I have tired several things....And i still can't pinpoint on what I can do differently. I want the dowhile loop to run untill r, b or g is entered. I have tried commas like in the below code and other things exp... while (pick != r || pick != 'g' … | |
menthods to connect a database mysql [CODE]<?php $host="localhost"; $user="root"; $pass=""; $db_name="oma"; $con=mysql_connect($host,$user,$pass) or die(mysql_error()); $db=mysql_select_db($db_name,$con); ?>[/CODE] What is the way you connect your database..? thnx | |
hello! recently i have known that there is graphics in c++,so i searched in the internet for a step by step tutorial that i can draw frames buttons textboxes comboboxes labels and others but i can't find anything and this weird because you can find tutorials for all languages except … | |
i am installing php-joomla with apache on my system. m continuously getting the problem with mysql connectivity. The prob is: "Unable to connect to the database:The MySQL adapter "mysql" is not available." I have installed all the things & have also included dll extension of mysql. Please suggest a solution.. | |
A binary search tree can be used to sort a list. WE simply insert the list elements into a BST, initially empty, and then use an inorder traversal to copy them back into the list. Write an algorithm for this treesort method of sorting, assuming that the list is stored … | |
Problem 1: I was wondering if it's possible to add for example the struct below into a binary tree: [CODE=c] struct Appoint { string place; string title; int hour, minute; int durationHr, durationMin; }; [/CODE] I want the above struct to be sorted in the binary tree by hour and … | |
I'm making a form for admins on my site to submit new videos. the form page has several text boxes (for info like name of video, description, ect.) and a few file upload boxes (for flv video format, mp4 format, ect.) But when it passes to the next page, when … | |
Sorry, I originnaly posted this in the Geek Lounge: Okay, the first project was to build a calculator that functioned as follows: ----------Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to evaluate: (Note: the '>' designates user input for … | |
I am writing a program that sends an email with attachments. I need to send it as HTML but I can not find any reference as to how to do this. My code follows: [ Private Sub sendMail(ByRef Message) Dim Attach As Attachment Attach = New Attachment("c:\Project\Articles1\Article.txt") 'create the mail … | |
Can some one please help me on this issue as I have spent time going around it without making any headway. I have data in an array of size say 3O. 1. I want to take the first five elements of the array, find their mean value. Store the value … | |
Hello. I have made a PHP script that gets news data from a database and i used pagination to split it into page. I have it fully working with page numbers but i would like to know how i would make it only display 10 page numbers at the bottom … | |
Say I want an action to be performed on my database every so often such as add a random number of "points" to a random entry in a table every time it iterates. I want this to happen even if nobody visits my site. If this is possible with PHP … | |
Hi how can i use volume keys and camera key in app ? i use -36 and - 37 constant value but it`s not work !!! i use this to get key name [CODE]str = getKeyName(keyCode);[/CODE] but when i press volume keys or camera key it`s return null i want … | |
Hi, I'm having a problem with this part of my code: [CODE]} while ((menu2.equals("4") == false) || ((menu2.equals("3")) == false));[/CODE] The compiler seems to be ignoring it for me... is there something wrong? I basically want the loop to end if the String menu2 is either "4" or "3". What … | |
I have various list being generated by a mapper function in this format >>> mapper("b.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', 1), ('step', 1), ('for', 1), ('a', 1), ('man', 1), ('one', 1), ('giant', 1), ('leap', 1), ('for', 1), ('mankind', 1)] >>> mapper("c.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', … | |
I'M learning python and I can write very small simple programs with Tkinter or play sound through pygame. I've just started the book "Beginning Game Development with Python and Pygame". I'M in the earlier part of the book and I've just been given the program below. The thing is, even … | |
Hi, I need help with reading a csv file from a folder. The file is sent to the folder via ftp after every 10minutes. The script I want should then read this file almost at the same interval. The file name is dynamic so there is a possibility that these … | |
Hi .. for(int i=1;i<=n;i++) { first=i%10; last=i/10; ....... i want to see how many number that first number equal last number; like 3003..and 1,2,3... is counted because its a single numbers but my statmant it is just count the num unti 100 and its not count the single numbers .. … | |
numpy.vectorize takes a function f:a->b and turns it into g:a[]->b[]. This works fine when a and b are scalars, but I can't think of a reason why it wouldn't work with b as an ndarray or list. For example: [CODE=python] import numpy as np def f(x): return np.array([1,1,1,1,1], dtype=np.float32) * … | |
If I am using overlapped sockets with i/o completion ports, is it ok to use WSASend on a socket to send data [B]after [/B]posting the initial WSARecv on that same socket, but [B]before [/B]having received any data? Will the socket still receive data and trigger the completion port if I … | |
Hi all I was working on a program and really need some help with my coding. Here is code I'm working on thanks for your advice in advance. 'this program will Display Year of age and days on earth assumming the current date is 12/31/2006, the user types 1980 into … | |
Hey, sorry if this question is really really simple and silly to ask here but I can't find a suitable answer anywhere else and nobody out there so far is willing to help me out so any help would be greatly appreciated. Simple thing I want to do: I have … | |
See this Program, [CODE]class Test { enum Days {Monday,Tuesday,Wednesday,Thursday,Friday} enum Periods {Period1,Period2,Period3,Period4,Period5} public static void main (String [] args) { String DnP [][] = new String [6][5]; for (Days dys : Days.values()) { DnP [0][dys.ordinal()] = dys.name(); System.out.print (DnP[0][dys.ordinal()] + "\t "); } System.out.println ("\n\n"); for (int i=0; i<=4; i++) … | |
Hi I've attempted to create a little app which encrypts and decrypts a file using the XOR cipher. However, it only encrypts/decrypts the first few lines and I'm not sure where I'm going wrong. Advice appreciated. Ricky My code: [CODE]//XOR Encryption #include <stdio.h> #include <string.h> //XOR Encryption key char XORkey … | |
hello, i created an executable from a python project, with py2exe & cx_Freeze for testing, and both versions work fine on my Windows OS, but none work on other PCs (Win32), when i start the executable it says : 'The application has failed to start because the application configuration is … | |
With std::queue I've been using this: [code] std::queue<int>::iterator pos = std::find( q.begin(), q.end(), 5); [/code] But when I try that with std::stack : [code] std::stack<int>::iterator pos = std::find( s.begin(), s.end(), 5); [/code] I get [code] error: ‘iterator’ is not a member of ‘std::stack<int, std::deque<int, std::allocator<int> > >’ [/code] Anyone know … | |
![]() | I want to add some while() loop to a windows form app, the problem is that when I try its freezing the window because of the loop. There is any way or method to add a loop that won't freeze the window? ![]() |
Hi please help, I have a simple web form and when the submit button is pressed I would like the form to post to two locations. One location is local and the other is external. Hope you can help. Thanks | |
![]() | hello guys, Can any of you help me create a game in java?? There has to be two paddles, one at the top and the other at the bottom. The paddles have to stop the ball from getting out of the screen. The ball cannot leave the screen from the … |
Is it possible to get the max values from the columns in 1 table and copy them into another or would this not be recommended. The more I think about it the more I begin to think it isn't such a good idea. Here's an example what I'm looking for: … | |
Guys any idea for this equivalent c loops in java::: for (sum=0,i=0,j=0;i<10;i++,j+=2) sum+=i+j Thank you: jamesPH | |
Hello, I've been going through K.N. King's [url=http://knking.com/books/c2/index.html]C Programming: A Modern Approach[/url] and, after completing the first 10 chapters, I wanted to give my knowledge a try and write something I've always wanted to: a Hangman game. It turned out more of a "Mystery Word" game, as I haven't created … | |
Hi, I'm new here and I don't speak English very well, so sorry if I do some mistakes, if you want you'll correct me. ;) I have downloaded Watin which is a free open source that allow developers to work (send e receive messages) with Internet Explorer or Firefox. I … | |
public class While { public static void main(String args[]){ } public void printLoop(){ int counter = 1; while(counter <=25){ System.out.println(counter); counter++; } } } Hi, the above code compiles but nothing runs when I click on the run button. I am new to Java, you guys might find this problem … | |
hai friends ? I am almost completing my C#.net.. but a small doubt is whether "string " data type is a reference type or value type? because in some books i find it as reference type and in some books i find it as value type which can store upto … | |
I am getting runtime error 424 when I try to access my global dictionary's count. It works fine when in the sub routine that initializes the dictionary and right after the sub routine was called inside the form_open event. Why would I be getting this error when I click a … | |
[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; class plc extends JPanel{ plc() { this.addKeyListener(new MyKeyBoardListner()); System.out.println("key listner added"); } public void paintComponent(Graphics g) { super.paintComponent(g); g.drawRect(0,0,10,60); g.fillRect(0,0,10,60); } private class MyKeyBoardListner extends KeyAdapter { public void keyPressed(KeyEvent ke) { System.out.println(ke.getKeyCode()); } } } public class plank { public static void main(String[] … | |
Hello, im starting a new project, about the game who wants to be a millionaire, so In the beggining I have a Start Button, but I want to know how to set the parameters of the mouse click to be only within the range of the START button. heres what … | |
HI guys !! I am new to jsp so pls do help me in solving this .. I am getting error at the highlighted part as: Syntax error,insert ": Expression" to complete Expression [code]<% ---- --- ----- UrlGen urlg = new UrlGen(request.getQueryString(), "UTF-8"); String url = "Contacts.jsp"+"?"+urlg; %> <a href="[B]<%=url%>[/B]"><img … | |
Hey :cool: Im GaYan and im creating a c# web browser , the below is the source code ;) its pretty simple :D its actually a desktop browser ;P [CODE]namespace G2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); textBox1.Text = "http://www.yahoo.com/"; } private void button1_Click(object … | |
Ok, I did search on this site and found nothing that really helps with my issue. I am doing assignment - JPartyPlanner - I have the applet complete, it compiles and shows in IE great, BUT when I add the image code it still compiles but I get nothing showing … | |
[code=php]<?php $host = "Localhost"; $user = "User"; $pass = "Pass"; $db = "DB"; echo "<b>This will test your SQL Server connectivity...</b>"; /********** testing connectivity ***************/ echo"<font color = 'green'><br>connecting to Server....<P>"; $link = mssql_connect( $host, $user, $pass); if( !$link ) { die("<font color = 'red'><p>Failed to connect to server: database … | |
String operator+(const String &s) Here String is a class. here why we are using ampersand operator? please explain me.(&s ?) | |
I have an array of strings as follows: [CODE] char *sCmdInt[8];[/CODE] I am filling this array by tokenizing a line of text from a file. I then want to check if element 0 of the array is equal to a value. Eg: [CODE] if (sCmdInt[0] == "ReadMemory32") { // do … | |
I want to compare a DateTime date & time in a GridView to a smallDateTime date & time in a database table. I'm not sure what goes wrong, but I get the error message "incorrect syntax near 'whatever time'" every time. An example: A DateTime datumStartTid could be '2010-07-25 19:00' … | |
i need help plz i need project idea for information technology under graduates students in mobile application field,biometric field, ... and other fields like this anybody can help me in this ????? | |
I have completed my applet code and it compiles fine - when I try to open it in explorer I get my welcome message but the applet does not fully open - all I get is the little box with the red X in top left corner. Help! Here is … | |
Hello, I'm sure there is a simple solution to this but I cannot seem to find the information I need in my textbook or online. I'm creating a GUI with an entry box for the user to input their name. I then use getText() to retrieve the name they entered … |
The End.