199,114 Archived Topics
Remove Filter ![]() | |
I have been making a C++ application and currently checking if there exists any memory leak before release. My application will be running as an object over HTTP server and it should be idle until an HTTP request comes in. Which means it should release most of memories when it's … | |
The PySide/PyQT QValidator restricts the type of input a widget like QLineEdit can accept. Here is a simple test. | |
Another exercise in applied geometry. This time we use the Tkinter GUI canvas and its create_line() function to draw a triangle, or a series of connected triangles to create something that looks like fancy art work. You might be able to impress grandmama with that one! | |
with python interpreter `E:\Dropbox\Research_Study\myprojects\Batch>python Render.py ` Traceback (most recent call last): File "Render.py", line 801, in <module> else: run() File "Render.py", line 789, in run win = Window() File "Render.py", line 66, in __init__ self.createUI() File "Render.py", line 314, in createUI self.sfEdt.setValidator(QtGui.QIntValidator()) TypeError: arguments did not match any overloaded call: … | |
**what is the use of place holder in asp.net visual studio 2010?** | |
I have been programming in Windows with C++ and I am tiptoeing linux (mainly because of its most up-to-date C++ and also because of it's open source). I want to do multi-platform programming. The programming part is easy: I don't need help there. The part I need help is in … | |
Hi need to make a progrma that requires a login system using text files, i dont want code to just know and allow acceess to one login but several logins. i also want the code to allow me to then enable an edit function when logged in as an administrator … | |
I know how to create a function with variable argument list, but how do you create one when the argument type is unknown, something like MyPrintf(...) ? From what I've read CLR/C++ only supports known argument types, such as int, `MyPrintf("...array<Int32>^ arr)` and the calling function int main() { MyPrintf("One", … | |
Hi folks. I am trying to learn J2EE and I am looking for a complete J2EE tutorials online. Plz suggest me some links where i can learn the J2EE completely(if not 100%, atleast 90%) . It will be pleasure if the tutorials are FREE as i cant afford to pay … | |
Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done. I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. … | |
I'm having this kind of error: *Could not find a part of the path.* For Each subfolder As String In Directory.GetDirectories(sourceDir) Dim destDir As String = Path.Combine(destinationDir, Path.GetFileName(subfolder)) If destDir = destinationDir & "\peanutButter" Then 'do nothing Else Directory.Move(subfolder, destDir) End If Next I suppose i get this error because … | |
is `char** val` the same as `char* val[ ]` when is the formal ( `char** val`) used | |
My company recently hosted a programming competition for schools across the country. One team made it to the finals using the Python client, one of the four default clients provided (I wrote it). Most of the other teams were using Java or C#. Guess which team won? http://www.windward.net/codewar/2013_01/finals.html * *This … | |
I have this code so far #Add two digits def add(a,b): return a+b #Subtract two digits def sub(a,b): return a-b #Multiply two digits def mul(a,b): return a*b #Divide two digits def div(a,b): return a/b #returns an integer that the user enters def getCommand(): cmd = input("Choose: ") return cmd #Execute … | |
On the surface, the top n per group query is a fairly common one and I have used a few variations on other projects. However, I really cannot get my head around this one and I think it is due to the number of joins. My query (at the bottom … | |
Hi everyone, Let me first explain the idea: I have a JSON document which has the following structure: { "timeline": { "headline":"Example Content", "type":"default", "text":"Example Content", "startDate":"2013,1,1", "endDate":"2013,1,28", "date": [ { "startDate":"2013,1,10", "headline":"Example Content", "text":"Example Content", "asset": { "media":"Example Content", "credit":"", "caption":"" } }, { "startDate":"2013,1,14", "headline":"Example Content", "text":"Example Content", … | |
Here is a fully working PHP page viewer, set the variables $pages[] = "ANY URL HERE"; to suit your needs, and change the variable $max = 10; to however many views you want for each $page. -Echo | |
#include <iostream> using namespace std; int main() { int rows = 3, columns = 3; int ****p; p = new int***(); *p = new int**(); **p = new int*[rows]; for(int i = 0; i < rows; i++) { ***(p+i) = new int [columns]; //Crashed at ***(p+1) why? } } I'm … | |
Hello all, I'm trying to have a multi-colored border for a generated table on my website. The table is a 2 column, 18 row table, and I want the top 6 rows to be bordered in green (or cell shading in green), while the rest of the table uses the … | |
This special edition of the Guinness World Records book will appeal to geeks and nerds the world over. Not just because it is packed full of the kind of trivia that we all thrive on in social situations, but also because that trivia is firmly based in the realm of … | |
Hi I am new to programing and I want to learn some basic tings. I also want to learn to create basic games. Could anyone reccomend a good book or websiteto get me started? Thanks, Robbie | |
![]() | Hi All, Just to say that I've searched DW and Google extensively before posting here. Also looked at the jQuery site, but failed to find exactly what I'm looking for. Anyway here's the thing: I have a button on a form, that when it's pressed inserts some new inputs (textboxes) … ![]() |
I am going to start learning about Spring framework. Please tell me from where i can get good tutorial for learning same with example. please send me(Suggest me) links or material regading Spring, so i can learn it in better way. Thanks a lot. | |
Hi guys, I haven't been on daniweb for a while, I've started learning scripting in UDK. But still I wish to make smaller games using native languages. So here goes my question: what is the best IDE for programming small games with nice UI? So far, for programming win apps … | |
I have a php file that reads a csv file and pulls the data and displays it on the site. But unfortunately I don't know why it creates an extra line which sets the counter to go wrong... How do i fix that? This is my code: <style> table{width:100%; border-collapse:collapse; … | |
Hi there everyone, I have a bit of a problem I am hoping you can help with. This is for an assignment, and I know I can finish the final calculations for my tax program if I could just pass my 2 variables from previous methods into the final method … | |
I'm supposed to write an application that calculates the Body Mass Index (BMI) for the user, using centimeters for height, and kilograms for weight.. Basically, I'm stuck here.. I have no clue what I'm supposed to do next.. Or if it's even correct so far.. Any help? /*** This application … | |
hi i want to have a sample on how to link a form to another. need help plzzzz friends. have to submit a project and i want to implement in in that. i want to link a login page to a form. if login = True then direct to form … | |
A colorful look at the PySide GUI toolkit and its QPainter class and methods. Well commented and demonstrated with the drawing of a number of rectangles and the different ways to apply colors. | |
Hi, I'm new here!!! I just want to ask if is it possible to add a property within a property at VB.Net. Sample Public Class Form1 Private xproperties As PreferenceProperties Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xproperties = New PreferenceProperties PropertyGrid1.SelectedObject = xproperties End … | |
following the article title, I'm dealing with octave, it goes right on command line. but I need to build GUI for my program to easier interface with people. then I chose Java to build GUI. my problem is to connect my GUI java to Octave. Anybody has ideas to do … | |
Hello DaniWeb, I personally work with SQL databases for web development work however I need to learn about Access databases for some upcoming AS Level exams. I asked my teacher, whether Access was vulnerable to Injection attacks and she looked at me with a quizical expression on her face so … | |
I was struggling long for proper image resize function for maintaining image ratio. Finally i end end up with merging and changing all codes and it works ! function resizeImage($sourceFile,$destFile,$width,$height) sourceFile => Full path along with filename destinationFile => Full path along with filename I hope this will help coders.. ![]() | |
In the book called gnu c manual I read that the following code has an undefined behavior `i=++i +1`; Because since the variable i is modified more than once between the sequence point,it is not sure that what value will 'i' have..But it is evident that the final value in … | |
I need my php application to be able to work with biometric device, such as fingerprint scanner. I need ideas/resources, pls. ![]() | |
Hi Guys, Please be gentle with me as im a complete n00b. My favorite language is actually Java which im learning at Uni at the moment. However to throw a spanner in the works they have switched us over to Python, as well as learning Java. My mind has been … | |
I have 2 tables: tblUser: +------+-----------+ | id | Name | +------+-----------+ tblItems(this table accepts multiple checkbox value depending on how many user selected): +------+-----------+---------------+ | id | items | name_id | +------+-----------+---------------+ `name_id` will get the value of `id` in `tblUser` I use this code to get the value … | |
*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. … | |
The UK-based [Surrey Police Force](http://www.surrey.police.uk/) has long since embraced Internet culture as being a way to help fight crime. It has an online crime reporting tool, active accounts on Facebook and Twitter, as well as a video channel on YouTube. But now it has moved into smartphone territory in order … | |
I'm having a strange issue that I'm sure has a reasonable answer, but it's making me nuts. I am using the code below, but no matter what I do, on the host's server it displays the created_date as '0000-00-00 00:00:00'. I get the correct response locally. If I go to … | |
This is my code... i'm getting error that "Primary expression missing" in all places where i have ritn desc[i].code or desc[i].cost. May be i'm using wrong syntax for strcutures; #include<iostream> #include<conio.h> using namespace std; struct desc { int code; int cost; }; void del(int x, int count) { int i; … | |
I was trying to set a UniqueIdentifier based on Long. The objective was to give a certain custom Object a unique identifier in order to allow me to store them in a hashmap. I saw someone trying to use the most significant bits. So I realized that the addition of … | |
Hi, I have yet another VB question (I am a noob!). Here is my code: Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Try Dim Equip As DataRowView = ListBox1.SelectedValue Dim Equip_Delete As String = Equip.DataView.ToString MessageBox.Show(Equip_Delete) cmd = New SqlCeCommand("DELETE FROM Sensor_Table WHERE Equipment_ID = … | |
I have been struggling with the principles of creating a client-server design where the server maintains a data structure that multiple clients can view and manipulate with various restrictions on which client can access which parts of the structure. I don't know what to properly call a system like that, … | |
i need your help urgently finishing my program below. The program is for showing how the semantic network works. the program reads from the text file then when user inputs a question it outputs answer related to the network. i have attached the txt file( semantic.txt) if the user enters … | |
First, what do I need to add to my Win 7 SP1 in order to execute Python scripts? Second, what's a good Win x64 IDE that's super simple, free of too many bells and whistles, and good at testing and debugging basic textmode Python scripts? I need to be able … | |
Hi all, I'm working on a (Python) program which, in short, is a threaded TCP socket server which creates a new "tab" in a wx.Notebook widget for every incoming connection it sees. I've run into a strange problem where when I call notebook.AddPage(...), one of three things happens: 1. A … | |
How to find which operating system is running the PC in C++? | |
Can someone help me to make program which find duplicate files in C++? Thanks a lot! | |
Is it possible to make a cleaner like CCLeaner in VB.NET? If so, could anyone give me some hints or anything to start from? Thanks! |
The End.