132,726 Archived Topics
Remove Filter ![]() | |
I have to divide dataset into training dataset(80%) and test dataset (20%) using random sampling.I have to implement it in c#.If anyone knows,please help me..... Software Development dataset | |
Hi there! I am creating a game! [code] #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <SDL.h> #include <string> #include "font.h" #include "SDL_rotozoom.h" SDL_Surface *back; SDL_Surface *image; SDL_Surface *screen; SDLFont * font1; int y = 750; char * string = "Made by Weliaz @ http://weliaz.me"; int xpos=512,ypos=384; double opos = 180; … | |
hello , etc , i have form1 and form2 , form2 have a WindowsMediaPlayer1 and in form1 it have a button and its code is like : [CODE]Form2.Show WindowsMediaPlayer1.URL = "c:\Users\lapi\Desktop\DOWNLOADED\365.wmv"[/CODE] but its gave me error that thhis object its not in form1 is there a way to controll it … Software Development visual-basic | |
I just want to print the phone number in the form of (123)456-55778 for my result to be valid. I have tried a couple of thing but I am not arriving to the answer. Please help. [CODE]import java.util.*; public class TokenizingTelephoneNumbers { /** * @param args the command line arguments … Software Development java | |
Hey very simple problem. I've been searching the site to see if I did anything wrong and I had to fail because I still get the wrong results (semantic error). Problem #1: Every time I use fopen with the "w" (or write) mode the file with whatever name given is … Software Development c file-system | |
Hi, i am writing a mobile application to save some task. In this application i want save the data of task to the text file(*.txt). however, i faced some of the issues that i unable to save data to txt file due to the runtime error on file not exist … Software Development vb.net | |
[B]ERROR RECEIVED:[/B] [B][COLOR="Red"]NullReferenceException was unhandled [/COLOR][/B] Object reference not set to an instance of an object. And it points on the particular line: [B][I]dsNewRow = ds.Tables("Employees").NewRow()[/I][/B] [CODE]Imports System.Data.OleDb Public Class Register Public cn As New OleDbConnection Public rd As OleDbDataReader Public da As New OleDbDataAdapter Public ds As New DataSet … Software Development business-entrepreneurship dataset vb.net | |
Hi I want to populate a text box from a stored table I have this for the data With DropDownList1 .DataSource = ds.Tables("property") .DisplayMember = "propRef" .ValueMember = "propRef" .SelectedIndex = 0 End With "property" holds all the info from the db when the user changes the dropdown list I … | |
How can I sort label names on buttons within a form. Automatically sort the names and put into the correct place within the form. A-Z order sort can be left to right. Want some sensibility to the form not all mixed up. | |
Trying to build a simple python script on my mac, but the mac is 64 bit and apparently does not want to play nice. Does anyone know of any workarounds or if I am missing something? command i am running is python setup.py py2app -A output is: error: argv-emulation is … Software Development python | |
I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a … Software Development api file-system java | |
Hi Friends, I want to learn web application development. I have good experience in C programming language and no other language. Can you please suggest me where to start with? I have already dived into Python a bit, so I searched the net for some good framework and got Django. … Software Development python python-django | |
I have a problem when I compile my windows form application in Visual C# Express Edition 2010. When I press F5 do debug, I receive this message: [B]"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))[/B] And points to this line: [B]Application.Run(new Form1());[/B] I dont know what the problem could be? … Software Development | |
In the past I used a "Finite State Machine" to follow a sequence of keystrokes to completion, but I don't think it's effective and I was wondering how you guys would implement this: (I have the keyboard & mouse hook lib worked out) When a sequence of events (keystrokes & … Software Development | |
HEllo I want to make a sms application C# and .net but i don't have any knowlegdge about sms messaging by computer application i search for this on google so much and the only idea i got it is that i have to buy a sam gateway but what the … | |
Hi, Please could you help me resolve the error message below by pointing me in the appropriate direction. The frustrating thing is that whilst the error code points to a Stack-Overflow I can not pin the offending code down because the software works faultlessly on some computers after deployment but … Software Development vb.net visual-studio | |
How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced. Software Development java | |
Hi, I have a thousands of IP addresses, repeating randomly in my database and I wish to print each IP address along with the number of times they are repeated. For example, 162.10.2.1 162.10.2.1 162.10.2.1 192.34.1.10 172.11.2.9 192.34.1.10 192.34.1.10 Output: 162.10.2.1 - 3 192.34.1.10 - 3 172.11.2.9 - 1 I … Software Development python | |
Hi, Can anybody help me to how we can use base class constructor/methods in deriverd class without creating an instance of base class. public class abc { public abc() { } public void aa() { MessageBox.Show("base"); } public static string aabb() { MessageBox.Show("base1"); } } public class bcd : abc … Software Development | |
Hi, I am having problems when generating a chart dynamically. The problem is that sometimes the chart is rendered with a black background and sometimes without. I have stepped through the code and verifies each number and there are no anomalies or numbers that might cause a problem. The y … Software Development vb.net | |
Hi All Please some one Help me find out why this code doesn't work: [code=python]codes=['zlib', 'zip', 'base64', 'hex', 'utf-8'] def encoder(str, i): return str.encode(codes[i]) def decoder(str, i): return str.decode(codes[i]) en = encoder('Some string here', 2) print en[/code] Software Development python | |
Hi, I'm reading a file and trying to write it out with the current date in the file name. But I'm getting an error when trying to run this code[CODE]use D_Db; my $dbh = D_Db::connect('EDW'); my $Curr_dt=D_Dates::get_curr_ccyy_mm_dd({dbh=>$dbh}); my $sth4BobExt=$dbh->prepare("Select * from TableX"); $sth4BobExt->execute(); while ( my @BobExtrow = $sth4BobExt -> … Software Development perl | |
hie i just want to know if someone can give me an exemple of how toreplace a data from a single data in a textfile . i read that i need to use a temporary textfile but i still dont get it thanks by advance Software Development | |
[CODE]title = 'Pmw.NoteBook demonstration' # Import Pmw from this directory tree. import sys sys.path[:0] = ['../../..'] import Tkinter import Pmw class Demo: def __init__(self, parent): # Create and pack the NoteBook. notebook = Pmw.NoteBook(parent) notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10) # Add the "Appearance" … | |
hey! I have some questions regarding exceptions. concerning this code: [CODE]try 15 { 16 cout << " Function throwException throws an exception\n"; 17 throw exception(); // generate exception 18 } // end try 19 catch ( exception & ) // handle exception 20 { 21 cout << " Exception handled … Software Development c++ | |
Hi I'm developing a game that includes a chat room for four people. All the programs must be the same, I don't want one server program and three clients. Here's what it should do [LIST] [*]Someone creates a chat and invites three more there [*]The chat starter will become the … Software Development client-server java | |
Hi guys, I'm finding myself in a little trouble. I've tried to google this problem, but without much success. Hopefully its something simple I'm missing and someone will be able to help me. I'm writing a little program that will synchronize two access database schema's. It works, to a point. … Software Development microsoft-access open-source vb.net | |
![]() | Hi guys, I need to put stop sign as small icon in the tab. This is my XAML code: [CODE=XAML] <Window x:Class="assignment.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Canvas Height="282" Width="430"> <TabControl Height="271" Background="White" Width="405" Canvas.Left="0" Canvas.Top="0"> <TabItem> <TabItem.Header> <DockPanel> <TextBlock Text="Stop" Margin="2,0,0,0" VerticalAlignment="Center"></TextBlock> </DockPanel> </TabItem.Header> <Canvas > <Path Data="M80,81 L79.5,160.5 … Software Development ![]() |
How do I access a public class property value in a code module other than the one where it was created? I have created a simple public class and instantiated it in module 1. [CODE] public class Cashflow { public int x = 100; } // code in module 1 … Software Development | |
hello am experiencing two problems: 1) am getting this error and i do not know what it means: Hello.java:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java’ 2) how do i get the header file javaCompilor.tab.h, i already have a javaCompilor.tab.c file Software Development java | |
Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare … Software Development java java-swing | |
Hi there, I'm currently working on a small broject which is about providing flexible download service. Basically, I read the info from a csv file and put it in the futurelist, then depending on the length of the file I will put it either in currentlist or delayedlist and after … Software Development c++ programming-construct | |
I am using VB6 i am create Crystal Report File at run time using CreateReportOnRuntimeDS "p2smon.dll" API function. this function will connect the .ttx file to the report. now i want to connect another one. i am creating .ttx file is at run time using CreateFieldDefFile "p2smon.dll" API function. now … Software Development api file-system visual-basic | |
How to print ascii values from 0 to 255 in C++ ? i have seen many programs regarding this but didnt understand them ...so plz give expalnation also. Software Development c++ | |
Is C# recommended for Kernel Programming or Device Driver programming ??? I have to make a project on Operating Systems. I have four topics: 1. Real Time OS 2. Device driver programming 3. Kernel Programming 4. File System Programming Should one program them in C# or stick only to C/C++ … Software Development c# operating-system | |
I have 1 byte at the address FFF0 and i have to read the byte bits-wise i.e i have to store the first 4 bits in a variable and the other 4 bits in another variable from that fff0 address byte .eg :fff0 : int v1=first 4 bits ,v2 = … Software Development | |
I am trying to create a 3D vector and then populate it with values. Firstly I want to create a 3D vector of size 100 with all initial values set to zero. I know that to do this in the 1D case the code would read as follows: [CODE]vector<float> vec … Software Development c++ | |
I'm not really sure what the correct way to initialize a 3d array is. [CODE]float array3D[100][100][100] = {0};[/CODE] Is this correct? When I try to compile I get problems. Software Development c++ | |
Good day. I would just like to ask. if there is any way to uninstall program or uninstall program from add/remove using vb.net codes? Thank you very much. Software Development vb.net | |
When printing an int to stdout, the %d type is used. Why "d"? The other types (s for string, c for char, f for float) all make mnemonic sense, but I cannot figure out why "d" for int. It's not short for "double" or "decimal" I think. Software Development c | |
hey ya all.... i have a tab control in a win form app. and the tab control has 3 tabs. in every tab there is a DGV docked in a container's panel, here is the thing. up until now i used the containers click event to load data into the … Software Development | |
HI All How can we generate a sine wave without using the sin() function. Thanks pretu Software Development c | |
Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints … Software Development java | |
Im trying to write a program that will get 10 different houses information about those houses will be price square feet and rooms. I have to use an infile about the information and then have it sort by selection or bubble sort also use a header file, can anyone help … | |
Normal buttons look Rectangular and I was trying to figure out how to round the edges of it and found myself with a headache.. How do those pro designers do it? How do they get the custom GUI's and the buttons rounded or even custom buttons in any shape? Kind … | |
I am having problems using the accumulate to find the sum of all elements in a vector. Here is what I have: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> #include <numeric> using namespace std; int main() { vector<float> energy; for(int i = 0; … Software Development c++ | |
Hey,guys I want to print a word in the center of a CMD's window If I can get the size of it,I could calculate the position where I put the word. Anybody who can help me? Much Thanks Software Development c++ | |
Hi I want to know : 1 how to add a persons name to the end of a dynamic array? 2 how to check if the array is full, and if so to print a constant string? 3 how to search in a dynamic array for a specific name and … Software Development c++ | |
I've made a shape base class along with a bunch of derived classes. I have an object array of derived objects and a loop to do the function but am getting this error: error LNK2001: unresolved external symbol "public: virtual void __thiscall Shape::drawObject(void)" (?drawObject@Shape@@UAEXXZ) Thought it might be a problem … Software Development c++ | |
Here is what I have so far: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> using namespace std; class dm_energy_vec { public: vector<float> m_energy_dep; }; int main() { const int phantom_size = 50; int energy_index; vector<float> xpos; vector<float> energy; vector<float> energy_dep (0, phantom_size); vector<dm_energy_vec> … Software Development c++ |
The End.