199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lxXTaCoXxl

Just a couple basic static mathematical helper methods that I've found useful for game development. Feel free to add some in replies for future visitors. I will do another post later this week with advanced helper methods from trig and calc. I will also do a geometry helper class as …

Member Avatar for skatamatic
0
159
Member Avatar for rockout15

i want to add my dynamically created table rows.. to the database .. however i cant add it .. badly needed your help guys... thanks in advance heres my code: <?php include('connect.php'); if(!isset($_SESSION['user_id'])) { header('Location: login.php'); } $user_id = $_SESSION['user_id']; ?> <?php $date = $_POST['date']; if (isset($_POST['submit'])) { if($date != …

Member Avatar for mustafaneguib
0
1K
Member Avatar for GilbertB

Currently I am working on a project regarding C# and SQL and I have a problem regarding the SELECT function and I cannot find any solutions on-line. The scenario is regard searching query from C# through SQL server and display the results in a Data Grid View at C#. I'm …

Member Avatar for Mitja Bonca
0
989
Member Avatar for IndianaRonaldo

I started with curl and now I'm able to post form data, obtain html pages and all that basic stuff. But I'm unable to analyse individual data in the obtained webpage. Like filtering all the images, videos and things like that. I can do that in Javascript, but that can …

Member Avatar for mustafaneguib
0
244
Member Avatar for malsmit2014

package program.p02; import java.io.*; import java.util.*; import java.lang.*; public class Dictionary { private String[] dictionary; private static final int NUMBER_OF_WORDS = 81452; private static String FILE_NAME = "dictionarycleaned.txt"; //no arg constructor??? public Dictionary() { Scanner fin = null; //open and test the stream try { fin = new Scanner(new File(FILE_NAME)); …

Member Avatar for JamesCherrill
0
188
Member Avatar for Labdabeta

I have created a custom font for programming and I wish to use it in code::blocks. The thing is that code::blocks only allows for standard fonts (as far as I can tell) and so I cannot get it to recognise my font (even though it is a ttf). [Here](http://www.4shared.com/file/4avU0Xuh/lucidaprogrammer.html) is …

Member Avatar for Labdabeta
0
320
Member Avatar for Labdabeta

I want to use opengl to draw some stuff, not to the screen but to a data buffer instead. Is this possible? IE: uint32_t *data; glSetDrawTarget(data,GL_RGBA|GL_UNSIGNED_INT_8_8_8_8);//this is the line I cannot figuro out how to do glBegin(GL_TRIANGLES); //... glEnd(); //and now my buffer is full of custom data glSetDrawTarget(NULL,NULL);//reset to …

0
130
Member Avatar for kng9

Hello everyone, Im new to this forum and sort of new to Java aswell. I'd like to ask you to comment on the way I practise Java and also hopefully solve this **"Start: Applet not initialized."** error. I have not tried to run this through browsers because i didn't create …

Member Avatar for kng9
0
159
Member Avatar for nHulk

Below code includes both client and server code.... I am trying to read message from client and display it on server and vice versa......Problem i am facing is both the codes are executin but messages are not getting displayed ....help me import java.io.*; import java.net.*; class Client { public static …

Member Avatar for NormR1
0
295
Member Avatar for OblibSystems

What i need to do is parse an integer to a "library" of co-ordinates. This integer allows for a random co-ordinate to be chosen. The "Library" i mentioned is shown below Public Function Hit(ByVal rnd As Integer) Select Case rnd case 0 return "(0,0)" case 1 return "(0,1)" End Select …

Member Avatar for OblibSystems
0
206
Member Avatar for mgunia

I'd like to say "hello" to everyone as it is my first post. I looked for the solution to my problem on the internet for over 2 hours and I didn't find anything relevant. I hope you are able to help me. I have a bunch of invoices written in …

Member Avatar for mgunia
0
531
Member Avatar for SuperManofBC

public String getCurrentDay() { if(day.getValue() == 0) { return "Sunday"; } if(day.getValue() == 1) { return "Monday"; } if(day.getValue() == 2) { return "Tuesday"; } if(day.getValue() == 3) { return "Wednesday"; } if(day.getValue() == 4) { return "Thursday"; } if(day.getValue() == 5) { return "Friday"; } if(day.getValue() == 6) { …

Member Avatar for stultuske
0
216
Member Avatar for saadi06

Hi, I have two tables and they have one to many relationship.The two tables are fares and fare preferences.Now in fares table there is a unique user id and username and the user id is related to multiple preferences.Now I want to make a query that displays the username once …

Member Avatar for pritaeas
0
71
Member Avatar for jwings

Now I have 2 classes. The first one is called UIController and the other one is called MainJFrame. I would like to know how to make a listener for a JFrame which has a JComboBox inside. Everytime a ComboBox submit a new data the JFrame will tell the UIController that …

Member Avatar for JamesCherrill
0
95
Member Avatar for rasizzle

Here's my dilemma: I am creating a histogram through matplotlib and saving it in the same folder I'm running. There are a few image files that I can save it as, none of them being bitmap. So I'm trying to convert the image to bitmap. I've looked at WxImage and …

Member Avatar for Gribouillis
0
28K
Member Avatar for otengkwaku

Hi, i want to start developing app for the andriod paltform and i want to know how to start. i have knowlegded in C#.

Member Avatar for juliermills
0
97
Member Avatar for divyakrishnan

Hi.. How to count no of files in a directory which is in another machine? I used the following code.But it is not working. <?php $dir_path ="file://192.168.0.138/img/$sub_code/$sub_code".N."$churunano/*.*"; $count = count(glob($dir_path)); $files = glob($dir_path); ?> The above code returns the count as 0.

Member Avatar for divyakrishnan
0
144
Member Avatar for Zzzy1005

Hi, I am doing xml serialization using TextWriter and I am able to get the string of data, however I need to convert the string of data from TextWriter object to XMLDocument format. Does anyone have any idea on doing this? My Code as shown below: XmlSerializer xml = new …

Member Avatar for ChrisHunter
0
279
Member Avatar for jaskij

Hope I don't start a holy war ;) This question rose to my mind after starting a project with a couple of friends (my very first team project to be honest). We all agreed on CamelCase, but one friend suggested somethin unnatural to me, that is, starting names of all …

Member Avatar for two[ ][ ]
0
176
Member Avatar for Darek6

Hi everybody, I've got a code which returns to a given text an inverse index. From a list of tokens, the function produces a list sorted by the frequency. Example: inverted_index(['the', 'house', ',', 'the', 'beer']) [('the', [0, 3]), ('beer', [4]), ('house', [1]), (',', [2])] Code: def outp(txt): ind = {} …

Member Avatar for Gribouillis
0
235
Member Avatar for kothaisaravan

Hi all, I got the error in design window "Object reference not set to an instance of an object." Instances of this error occurs at two cs files one.cs value = UIHelperConfig.GetSelectedPaymentTypeCode("CreditCard"); two.cs public static string GetSelectedPaymentTypeCode(string paymentType) { return ConfigurationManager.AppSettings.GetValues(paymentType)[0]; } How to make my design window viewable?? Any …

Member Avatar for kothaisaravan
0
220
Member Avatar for jsj1411

hey guys , i need some help and guidance regarding my college project. i'm working on a sales system . i have a form which consist of all the following information( item code , item name , item price , quantity of item ) which is display using a data …

Member Avatar for poojavb
0
263
Member Avatar for profyou

i have been confused lately regarding where to concentrate... java or c++ or Algorithms & data structures or ........(there are still more languages) whenever i concentrate on java i tend to forget c++ or various algorithms or assembly( i have learned 8086/8088 programming). java is very large...core java......file io....swing..servlets....enterprise java...and …

Member Avatar for jackbauer24
0
288
Member Avatar for vijayram

hi everybody, i created three table planbook,like and user table. what is the problem in this code. nothing to error msg display.but did not like count store in database class planbook public function get_like_count($planbookId) { $planbook_id= $planbook_id; $planbook_obj=Doctrine_Query::create() ->select('p.planbook_like')->from('planbook p') ->where('p.planbook_id =?', $planbookId); $result=$planbook_obj->fetchArray(); } public function add_like_count($planbookId) { $stmt=mysqli_prepare($this->connection,"update …

Member Avatar for baig772
0
117
Member Avatar for major_lost

I am trying to determine the backcolor of a textbox and have an event happen. I've been using: "If txtbox.backcolor = System.Drawing.Color.Red Then End if" But this dont work. Can somone help me? ml

Member Avatar for poojavb
0
77
Member Avatar for brainfo

Hello all, Since a day i was working on a site www.needmine.com . i had made a lot of changes in site. Even it was working till then. Suddenly the site stops displaying. When i clear the cache of the broswer and again ctrl refresh the site shows but in …

Member Avatar for baig772
0
116
Member Avatar for london-G

Hi, I have a complete ms access system build(tables, forms, reports, query). I am in the process of using vb to re-create the system. I managed to show every fields on my vb forms without any coding. However I have some wrong information in my combo boxes. For example I …

Member Avatar for poojavb
0
127
Member Avatar for Taximus

Hi everyone! Can you help me please? I need to write sniffer for internet explorer 9.0 using hooks in c# Is it possible? I searched google.com found some information: SharpCap (packet capture framework for .NET), using .NET Socket class to listen user's activities on the web browser but I didn't …

Member Avatar for Taximus
0
791
Member Avatar for Crynix

First things first, I'm relatively new to C++. I'm just finishing up my first semester of computer science and I'm getting the error "Segmentation Fault (core dumped)" while opening a file in my final. I believe the error has to do with pointers and occurs somewhere in the while(!file.eof()) { …

Member Avatar for histrungalot
0
351
Member Avatar for mcjiwe

my_funcs.c: int x = 0; FILE *stockIngredientes = fopen( "C:/Dropbox/Work/ISEC/P/ingredientes.txt", "r+" ); while( fgets( tmp, 100, stockIngredientes ) != NULL ){ ingredientes[x].nome = strtok( tmp, ":" ); ingredientes[x].identificadorNum = strtok( NULL, ":" ); ingredientes[x].quantStock = strtok( NULL, ":" ); ingredientes[x].limMin = strtok( NULL, ":" ); ingredientes[x].consumoMed = strtok( NULL, ":" …

Member Avatar for mcjiwe
0
141
Member Avatar for Jdan2388

hi i'm having trouble with this rock paper scissors program looping correctly. Ok so first of all that game is a simple rock paper scissors of the user against the cpu. The program begins by asking the user what choice he/she would like from a dropdown menu rock. paper or …

Member Avatar for NormR1
0
193
Member Avatar for rhoit

This is the program to print all possible combination of the string. It was orginally written in C++. Now i'm trying to write it in C but stuck with this problem of strings and pointers + some warnings. INPUT is taken from argument, which is "const **char" . I tried …

Member Avatar for rhoit
0
370
Member Avatar for dwlamb

A script I am writing on works on the DVD present in the drive at time of script execution. I want to extract merely the label of whatever appears after '/media/'; ./script.sh /media/DVDRW-43/ An obvious solution would be to get the substring by `path='echo ${file:7:9}' #renders DVDRW-43` but I would …

Member Avatar for cheochi
0
182
Member Avatar for JavaPadawan

In this program I'm attempting to visually represent a selection sort using an array of rectangle objects. If the program worked as intended, the rectangles would sort themselves from least to greatest, with two rectangles switching spots and the array being repainted each time through the selection sort loop. As …

Member Avatar for wen_cai
0
229
Member Avatar for hallianonline

Hello Every One, I am new to VB6 and I am getting the problem from few days. I want to print a label sheet of the specific barcode which contains(description, barcode image and unit price), as much times I want the label should repeat on the same sheet to that …

0
117
Member Avatar for rtellez700

Hello I am running into an error after creating the jar file. I get a message stating that the main class to my program could not be found when in fact there is a main class. If someone could give me a hand and lead me in the right direction …

Member Avatar for NormR1
0
1K
Member Avatar for McLaren

$all_confirmed = (count($changed_coefs_ids) == 0) AND (!$payout_too_big); $all_confirmed = (count($changed_coefs_ids) == 0) && (!$payout_too_big); How do you think, should those code lines get the same result? I got different result (comment out one line, then uncooment and comment out another) Wasted time till I noticed that, since that doens't make …

Member Avatar for cereal
0
325
Member Avatar for trishtren

hello, i am attemping to write a basic swf header reader using the format specification from : http://www.the-labs.com/MacromediaFlash/SWF-Spec/SWFfileformat.html So far i am able to read the first 3 bytes : FWS, no problem The problem i am having is reading the version number after, it is displayed as a question …

Member Avatar for WaltP
0
168
Member Avatar for thanatos1

Hey guys, i've been making a little super mario clone in Java but I need help, you see, if you download it and play it, you will notice it is quite stutter-y, and that really shouldn't be the case since it's such a small program. game link : [Click Here](http://www.filefactory.com/file/4mx7jddejnrr/n/super_mario_clone.zip) …

Member Avatar for JamesCherrill
0
724
Member Avatar for beforetheyknew

Hi guys, I have some fundamental holes in my understanding of programming, so help would be appreciated, I’ve always had a problem getting my head around it. I don't have a very strong mental model of how the code flows. My main problem is i think i understand the syntax, …

Member Avatar for kRod
0
222
Member Avatar for Zvjezdan23

Why is my score corrupted??? #include <iostream> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 10; scores >= 0; scores--) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int ten = 10; …

Member Avatar for DeanMSands3
0
136
Member Avatar for afrogfx

how can i create automatically tumbling .. I need when i upload original image automatically create thumb and add thumb ( size 200 x 200 ) in folder and insert path of thumb in database $thumb .. i need help .. any one can help me ? <?php error_reporting(0); if …

Member Avatar for Squidge
0
186
Member Avatar for Maha Sh.

Hi all, I am using DataList and when i run my project the table of the datalist doesn't appear?!!! aspx.vb file Imports System.Data.SqlClient Public Class SLP_1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ' TextBox1.Text = Session(logAccount) End Sub Protected Sub DataList1_SelectedIndexChanged(ByVal sender …

Member Avatar for Maha Sh.
0
209
Member Avatar for dany12

Hello I was wondering how to create an array with all fields in a email form and then send the email <?php if(isset($_POST['submit']))//array{ $content=array( $name=strip_tags($_POST['name']); $email=strip_tags($_POST['email']); $phone=strip_tags($_POST['phone']); $address=strip_tags($_POST['address']); $city=strip_tags($_POST['city']); $title=strip_tags($_POST['subject']); $message=strip_tags($_POST['message']); ); } $to = "email@domain.com"; $subject =$title; $from = $name; $headers = "From:" . $from; mail($to,$subject,$content/*change array to string …

Member Avatar for priebd1
0
193
Member Avatar for Zvjezdan23

I am programming a number of students and quiz questions and correct answers program for my school's programming II class. I have an ok knowledge of C++, but I cannot understand the reason why my code does not work. I have created an integer of num of students, I asked …

Member Avatar for DeanMSands3
0
133
Member Avatar for anisha.silva

Hi I have a program for DUP client and server in java. when i run the UDPServer and type netstat in the cmd it dosen't show any open port for UDP. why is this? is it because it is a connectionless protocol? appreciate any commnts

Member Avatar for Majestics
0
120
Member Avatar for George_91

I'm doing a program which consists on a Test, with the following structure: 1. Question 1 rdioBtn 1 rdioBtn2 rdioBtn 3 2. Question 2 rdioBtn 4 rdio Btn 5 rdioBtn6 And so on... Each question is inside of a groupbox. What I wanna do, is to disable my "Next" button, …

Member Avatar for skatamatic
0
841
Member Avatar for foo

What is the difference between string and String? If I want string name = "Joe"; String name = "Joe"; which is the correct usage? Is there a difference? Thanks in advance.

Member Avatar for skatamatic
0
284
Member Avatar for danrt

I'm trying to create a Desktop Recording Application. When I record the full screen, the program works as it is supposed to, but in some cases when I select a specific region from the desktop to record I get an error at: `int result = AVIStreamSetFormat(psCompress, 0, ref bi, (Int32)bi.biSize);` …

Member Avatar for danrt
0
394
Member Avatar for speakon

Hello, I am working on a project and am in need of search function. How my system works: User enters details Stored into a text file writes a blank line at the end of the record when reading in the file, a new blank line = new record So for …

Member Avatar for speakon
0
389

The End.