132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sherinpoulose

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
Member Avatar for sherinpoulose
0
1K
Member Avatar for Weliaz

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; …

Software Development c image
0
100
Member Avatar for gozo12

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
Member Avatar for debasisdas
0
136
Member Avatar for domifa621

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
Member Avatar for Ezzaral
0
502
Member Avatar for vincenzorm117

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
Member Avatar for vincenzorm117
0
1K
Member Avatar for BARATUM

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
Member Avatar for adam_k
0
173
Member Avatar for ClimaxBeetle

[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 …

Member Avatar for adam_k
0
205
Member Avatar for mike2098

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 …

Software Development dataset vb.net
Member Avatar for Mitja Bonca
0
394
Member Avatar for SG01

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.

Software Development gui vb.net
Member Avatar for adam_k
0
172
Member Avatar for Killer_Typo

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
Member Avatar for Killer_Typo
0
269
Member Avatar for gunjannigam

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
Member Avatar for NormR1
0
252
Member Avatar for theharshest

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
Member Avatar for griswolf
0
310
Member Avatar for Jennifer84

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
Member Avatar for gusano79
0
506
Member Avatar for pseudorandom21

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
Member Avatar for gusano79
0
125
Member Avatar for ruchi18

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 …

Software Development asp.net c#
Member Avatar for emond
0
232
Member Avatar for Johann1

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
0
121
Member Avatar for smoothe19

How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced.

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Pprog

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
Member Avatar for Gribouillis
0
2K
Member Avatar for bhagawatshinde

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
Member Avatar for Mitja Bonca
0
155
Member Avatar for richardh87

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
0
145
Member Avatar for M.S.

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
Member Avatar for M.S.
0
109
Member Avatar for Xokzin

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
Member Avatar for d5e5
0
257
Member Avatar for jerome2467

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
Member Avatar for jerome2467
0
120
Member Avatar for xleon

[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" …

Software Development python tkinter
Member Avatar for xleon
0
350
Member Avatar for salah_saleh

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++
Member Avatar for salah_saleh
0
107
Member Avatar for Pytho

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
Member Avatar for NormR1
0
97
Member Avatar for Techyon

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
Member Avatar for Techyon
0
2K
Member Avatar for cool_intentions

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
Member Avatar for cool_intentions
0
123
Member Avatar for BlueNoteMan

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
Member Avatar for BlueNoteMan
0
290
Member Avatar for crazyIT

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
Member Avatar for NormR1
0
94
Member Avatar for nsyncpilu

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
Member Avatar for nsyncpilu
0
464
Member Avatar for Ahmed2

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
Member Avatar for Ahmed2
0
172
Member Avatar for piyushdhamecha

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
Member Avatar for debasisdas
0
389
Member Avatar for shweta2008

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++
Member Avatar for shweta2008
0
147
Member Avatar for apanimesh061

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
Member Avatar for WildBamaBoy
0
213
Member Avatar for vaishnu

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
Member Avatar for ddanbe
0
149
Member Avatar for dilequeno

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++
Member Avatar for m4ster_r0shi
0
143
Member Avatar for dilequeno

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++
Member Avatar for Salem
0
430
Member Avatar for iampord

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
Member Avatar for iampord
0
215
Member Avatar for dotancohen

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
Member Avatar for Ancient Dragon
0
132
Member Avatar for DeathEater

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
Member Avatar for DeathEater
0
175
Member Avatar for pretu

HI All How can we generate a sine wave without using the sin() function. Thanks pretu

Software Development c
Member Avatar for jayeshkamble143
0
600
Member Avatar for quinnifir

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
Member Avatar for quinnifir
0
129
Member Avatar for itgrowsind

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 …

Software Development c c# c++
Member Avatar for itgrowsind
0
120
Member Avatar for triumphost

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 …

Software Development api c++ gui
Member Avatar for Tellalca
0
147
Member Avatar for dilequeno

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++
Member Avatar for dilequeno
0
158
Member Avatar for tiredoy

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++
Member Avatar for m4ster_r0shi
0
186
Member Avatar for Blacksheepjnr

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++
Member Avatar for Tellalca
0
113
Member Avatar for riotburn

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++
Member Avatar for Tellalca
0
231
Member Avatar for dilequeno

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++
Member Avatar for dilequeno
0
102

The End.