132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for puneetkay

Hello, I just discovered that we can use unicode anywhere in the program. EG :[CODE=java] public class CheckUnicode { public static void m\u0061in(String\u005B\u005D args) { System.out.println("Hello World!"); } } [/CODE] \u0061 = 'a' .. \u005B = '[' .. \u005D = ']' This program will execute fine without any errors. But …

Software Development java
Member Avatar for puneetkay
0
168
Member Avatar for brandongood

Ok, I have to write a code snippet that prints out the value of 2 to the powers of 1 – 31 in a 10 character width, right-justified column. You may not use any literals or Math methods. Seeing as Im not allowed to use Math.pow, the only other option …

Software Development java
Member Avatar for brandongood
0
87
Member Avatar for suncica2222

I need timer that is going to make pause in running of main thread. Like Thread.sleep() does,just I don't want to create Exceptions like this does. So I want to use Timer class. "java.util.Timer;" this one. I want to make class and to use her constructor where I need pause,like …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for sunderthomas

[code] Dim a As Integer, i As Integer, b(20) As Integer, c As Integer, d As Integer i = 0 a = TextBox1.Text While a > 1 b(i) = a Mod 2 a = a / 2 i = i + 1 End While b(i) = a While i >= …

Software Development visual-basic
Member Avatar for sunderthomas
0
131
Member Avatar for krishnampkkm

hii How to open a directory using createfile() ? Any idea..? Thanking you.

Software Development c++
Member Avatar for krishnampkkm
0
4K
Member Avatar for TheFueley

How do you guys recommend searching an ArrayList for a specific string? My arraylist is defined as: [code=vb] Public Shared VisioSwitchArray As New ArrayList() Public Structure switch Public HOSTNAME As String Public IP As String Public MODEL As String Public VLANS As String Public NEIs() As neighbor End Structure Public …

Software Development vb.net
Member Avatar for TheFueley
0
1K
Member Avatar for poeticinsanity

I'm attempting to search a string for a certain sequence. I have not done anything with re, and it is... a bit confusing. I'm looking for this string: <div class="indexcenter"> (there's a portion of text here using newlines and characters) <!-- end indexcenter --> I am thinking something alone these …

Software Development python
Member Avatar for poeticinsanity
0
96
Member Avatar for sonia sardana

hi frnds, I want to add cross button image on the right hand side of tabPage...I m creating tabpages at Runtime.... Mine code is added image to the left...I want to add it to the right....I m also adding text to the tabPage... & second Probs is dat..On button click …

Software Development image vb.net
Member Avatar for GeekByChoiCe
0
650
Member Avatar for versatile36

Whats the use of get and set in c# when we can add a property value like this [CODE]object.property="value"[/CODE]

Software Development c#
Member Avatar for versatile36
0
176
Member Avatar for Hockeyfreak889

ok so have been assigned to make a 2 player tic tac toe game for my final project this year in school. However since this is a fisrt year java course we are using like "fake java" just to get the hang of it. Except now i have to work …

Software Development java
Member Avatar for BestJewSinceJC
0
217
Member Avatar for PinoyDev

Good day.! [code=vb] dim varname as string varname="Nothing's" [/code] I need to double the Apostrophe next on the g letter of the varname. It should give a result like: "Nothing''s".Remember that varname is not constant. Every word that passes this variable with Apostrophe, then it will double the Apostrophe within …

Software Development visual-basic
Member Avatar for PinoyDev
0
77
Member Avatar for PinoyDev

Good day.! I just need a code that will trigger the listview to put some color like(red) in a row/cell being selected. Pls help.. Thank you for spending time.

Software Development listview visual-basic
Member Avatar for PinoyDev
0
71
Member Avatar for sean_wc

I need some help with a program I'm working on, I have to calculate the cost of a long distance phone call based on the day, time and length of the call. This is what I have so far. I need to figure out how to test what day they …

Software Development c++
Member Avatar for sean_wc
0
84
Member Avatar for weblover

hi all , how are u? i have a question , i have a java project and i want to check if a fucntion is called or executed while the execution of the program ..how can i do this ?....thnx in advance...

Software Development java
Member Avatar for weblover
0
99
Member Avatar for robbiepoo

Ok so im doing a project for school and i made an array to add up the scores. (the project is a learning module, (game)). So heres my code, i have declared everything in my main program (starting one) called science.java and my two other parts of the game (true …

Software Development gui java java-swing
Member Avatar for masijade
0
87
Member Avatar for Thew

Hello, can you help me with this problem: I'm extending the TListView to enable notifying me about the column resize. I've found the code written in Delphi, but I needed to use it in C++, so I decided to rewrite this code to C++. But first problem occurs when I …

Software Development c++ delphi
Member Avatar for Thew
0
116
Member Avatar for StarZ

Hi all. I'm making a program about 'reading and writing text files' The assignment I have to do is suppose to look like this: [url]http://i39.tinypic.com/5554wi.jpg[/url] But I can't figure it how to make it so when it keeps looping until the user types in 'break' and it will list the …

Software Development python
Member Avatar for vegaseat
0
178
Member Avatar for ritu verma

I have a treeview with two nodes..I m showing the contextmenu when the user clicks on any portion of treeview .... [code] Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try Dim N As New TreeNode() Me.TreeViewCategories.Nodes.Clear() With Me.TreeViewCategories.Nodes N = .Add("", "Main", …

Software Development vb.net
Member Avatar for ritu verma
0
143
Member Avatar for planetPlosion

I'm trying to print diff.txt that contains the differences between the 2 log files I have. I want it to print the diff.txt in the current directory, but I get nothing. [code] def difference(dirList1, dirList2): difFile = list(set(dirList1).difference(set(dirList2))) writeDif = open( 'diff.txt', 'w' ) writeDif.write( 'Yadda yadda, intro intro' ) …

Software Development python
Member Avatar for vegaseat
0
89
Member Avatar for DynV

I made a long research to use the Modulo operator in Assembly language and the closest I found was the DIV operator however it's not available on the simple educational Assembler PEP8 [URL="http://www.filewatcher.com/b/ftp/ftp.pepperdine.edu/pub/compsci/pep8/downloads.0.0.html"]http://www.filewatcher.com/b/ftp/ftp.pepperdine.edu/pub/compsci/pep8/downloads.0.0.html[/URL] with the following operators [URL="http://pastebin.com/f595fb11b"]http://pastebin.com/f595fb11b[/URL] (translation from French ''Annexe C'' in [URL="http://www.er.uqam.ca/nobel/k20250/Notes_cours.html"]http://www.er.uqam.ca/nobel/k20250/Notes_cours.html[/URL] detailled in "Chapitre 7"). Is …

Software Development assembly
Member Avatar for sysop_fb
0
689
Member Avatar for dev.mena

if chat room members is 4 and each have mic the server receive the 4 packets and resend it in the same order here more delay in the client to run packet 1 and 2 ..... i want to merge the sound and send it to be in the real …

Software Development audio client-server java
Member Avatar for JamesCherrill
0
111
Member Avatar for mintsmike

Hello people: I am trying to create a ComponentListener method that will resize some components when the window is resized. I have tried the following code, only to find out that it didnt work: [code] import java.awt.event.*; import java.awt.*; public class PowerEvent { PowerMath gui; PowerEvent(PowerMath in) { gui = …

Software Development gui java
Member Avatar for mintsmike
0
318
Member Avatar for suncica2222

how can I trigger anything outside the method ??? like carry the boolean a outside [CODE]public void windowClosing(WindowEvent arg0) { System.out.println("Window Closing"); a=true; // cant refer to non final variable a inside an inner class defined in a different method[/CODE] I want to use "a" in while loop for instance …

Software Development java java-swing
Member Avatar for suncica2222
0
279
Member Avatar for functionalCode

Hello Everyone, I have a database that has some items and I would like to fill a combo box with the items and have the combobox selected value set the corresponding item ID. I have seen so many ways to do this I am not sure which way to go. …

Software Development dataset
Member Avatar for Ramy Mahrous
0
79
Member Avatar for sivak

In Visual Studio 2008, I received the below error message while trying to add a web reference to my Web Application. "There was an error downloading '.....asmx'. " I had no issues when I tried the same in Visual Studio 2003. What would be the problem? Please help me, It's …

Software Development visual-studio
Member Avatar for Ramy Mahrous
0
109
Member Avatar for everettnewell

[code] Public Sub add_emp(ByVal emp As EmployeeObj) Dim con As New SqlConnection Dim sqlcmd As SqlCommand 'Dim sqlrdr As SqlDataReader Try If is_emp(emp.Id) = False Then con.ConnectionString = My.Resources.ConnString con.Open() sqlcmd = New SqlCommand("INSERT INTO [Employees] (" _ & "[Id], [SocialSecurity], [FirstName], " _ & "[MiddleName], [LastName], [Suffix], " _ …

Software Development sql vb.net
Member Avatar for everettnewell
0
157
Member Avatar for Lewis_UnderGrad

Hi guys, I've been developing basic websites for the past 2 years. Recently, a relative of mine had started a vehicle leasing company and has asked me to create the website for him. Now the majority of the site will be no problem to create however, as it is vehicle …

Software Development microsoft-access vb.net
Member Avatar for Teme64
0
234
Member Avatar for OffbeatPatriot

Are there any C\C++ libraries what will allow me to plot in real time? If any explanation is needed the perfect example I saw of this was for a API, Swarm, that is used for simulating large numbers of agents. In my program with it a bunch of workers basically …

Software Development api c++
Member Avatar for OffbeatPatriot
0
780
Member Avatar for beaute

Hello, I'm trying to read dictionary words from a file and store the output in a struct element of type unsigned char *. I keep getting a bunch of memory related errors and segmentation faults which Im sure are totally related to me trying to access something that's not really …

Software Development c file-system
Member Avatar for csurfer
0
144
Member Avatar for rebirth007

Hello , I have a source code that could potentially upload files onto an FTP server using winsock. But there seems to be a small glitch and the files are not getting uploaded. Could someone please guide me as to why this is happening. I would be forever indebted. thanks …

Software Development c++ client-server windows-server
Member Avatar for Ancient Dragon
0
421
Member Avatar for pymatio

How would you count how many opening HTML tags there were & then closing tags in a line? eg [CODE] for line in something: for match in re.match("[I]opening_regex_here[/I]",line): # will match <H1> or <html> or whatever opentags += 1 for match in re.match("[I]closing_regex_here[/I]",line): # will match <H1> or </html> or …

Software Development html-css python
Member Avatar for vegaseat
0
3K
Member Avatar for MrNoob

i dunno im sure this output the good result i dont understand why it got not the output that i want [code] #include <stdio.h> void Squeeze2(char *str,char *save) { int i,x; int buffer=0;//used to save stuff for( i=0 , x=0 ; str[i]!=0 && save[x]!=0 ; i++, x++ ) { if( …

Software Development c
Member Avatar for csurfer
0
99
Member Avatar for stewie griffin

Hi, I have java code, in the code there is about 5 lines that I wont to open in new Thread, I don't wont to crate all new class for 5 lines , can I can I implement the Thread inside the method without new class?

Software Development java
Member Avatar for stewie griffin
0
103
Member Avatar for JackDurden

I want to find the first null child in a tree and return that node of the tree. Im thinking something like this but it doesnt seem to work the way I want. [code=cplusplus] node *Find_Empty_Node(node* root) { int index = 0; if(root) { if(root->data == 0)//<--I want this child …

Software Development c++
Member Avatar for rcollins
0
111
Member Avatar for Agni

hey guys, I have a fixed length .txt file. Values in the file correspond to columns in a db table. ex file row is something like: [B]India 3455 78787 89898[/B] table has columns something like: [B]column_name length startPosn EndPosn[/B] country 6 1 6 ID 6 7 13 so you see …

Software Development c++
Member Avatar for tux4life
0
458
Member Avatar for slowburner

I'm seeking for help with storing and retrieving/calling numerous sound and picture files. I've about 200 both .bmp and .wav files and it might get bigger. So I'm not sure if it's wise to embed that many files in the Resources, or should I add them to a special directory …

Software Development vb.net
Member Avatar for ptaylor965
0
205
Member Avatar for Clockowl

Hey guys, So I have compiled my first home-written static library (named PixGUI) that happens to call OpenGL functions. However, I noticed that when compiling (using MinGWs GCC with Code::Blocks project set to "static library") it doesn't matter whether I supply the linker with libopengl32.a or not, it simply compiles …

Software Development c++ opengl
Member Avatar for Clockowl
0
207
Member Avatar for sravan953

I have a string, say for example: [CODE]str="aasd<script>"[/CODE] How do I make Python to note down one character at a time until it encounters the '<'? I know it has to be a loop, but which function? Thanks

Software Development python
Member Avatar for siddhant3s
0
106
Member Avatar for Sky_Blue

Hey, I am curious about making an application that will show current printers that are installed on the computer, will be windows XP, and at first returning them back for the user to see in command prompt. Although I am unable to find out how I can check to see …

Software Development api c++ windows-api
Member Avatar for Sky_Blue
0
137
Member Avatar for NickMalone85

I've been browsing the web for a while looking for an answer to this but I can't seem to find it. I created a .resx file in one of my DLL files that has a bunch of images stored on it. In this DLL I'm using an extended ImageManager (CustomImageManager) …

Software Development file-system
Member Avatar for sknake
0
76
Member Avatar for sravan953

Hey guys.... I use Python 2.6.2. I recently created a program which accepts commands from my website, here's the code I used: [CODE]import urllib import subprocess import time open_site=urllib.urlopen("http://www.sravan953.webs.com/command_python.htm") read_site=open_site.read() def run_program(): current=time.asctime() print 'Runnning program'+' ['+current+']' subprocess.call(read_site) def check_argument(): current=time.asctime() if read_site=='': print 'No command given'+' ['+current+']' timer() else: …

Software Development python
Member Avatar for vegaseat
0
164
Member Avatar for NickMalone85

I think I've run into a thread synchronization problem. I have a C# program where I have a extended Panel class (MapEditorPanel) and I also have a form that contains that MapEditorPanel. I have a MouseClick Event on both the Form and the Panel. The MapEditorPanels event updates the variables …

Software Development
Member Avatar for Diamonddrake
0
100
Member Avatar for yun

I have to develop a Academic Automation System as College project in OOP C++. need your help in this regard so i can complete it. I already have defined the following classes, 1-CourseAdministrator 2-Student 3-Tutor 4-Course 5-CreateLogin 6-Security (For Validitaion, check for login and password) is there any meterial which …

Software Development c++ oop
Member Avatar for s_sridhar
0
106
Member Avatar for sudiptamondal

[code=c++] #include<iostream> #include<string> using namespace std; struct one { char name_book[80]; char name_author[80]; int no_of_books; }one1[500]; int insert() { int i,j; cout<<"Enter the No. of Books you want to enter : "; cin>>i; cout<<endl; for(j=0;j<i;j++) { cout<<"Enter the name of book "<<j+1<<" : "; cin>>one1[j].name_book; cout<<"Enter the name of the …

Software Development c++
Member Avatar for sudiptamondal
0
101
Member Avatar for wonder_laptop

Hello, can you PLEASE put a SIMPLE traceroute code in java. i googled traceroute but i got a bunch of compicated codes. im new in networking programming, i want to implement the traceroute command . i already managed to create a network and wrote a program for the laptops to …

Software Development java
Member Avatar for huj_v_palto
0
188
Member Avatar for stark025

[CODE="Visual Studio 2008"] #include "storage_sql.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #define strcasecmp _stricmp #include <cstring> #include <cstdlib> #include <string> #include <sstream> #include <algorithm> #include "compat/snprintf.h" #include "common/eventlog.h" #include "common/util.h" static const char * sql_backslash_to_underscore(const char * key) { if (!key) { ERROR0("got NULL key"); return NULL; } std::string rep …

Software Development algorithm c++ visual-studio
Member Avatar for Ancient Dragon
0
194
Member Avatar for sivak

how to write " how are you " in a text file and read the file and display the contents..can anyone tell me the code for this?

Software Development
Member Avatar for sivak
0
85
Member Avatar for tomtetlaw

I am using pygame I want my program to read an image file that only has black on it and whenever the character moves over a part that has black on it, he stops moving, any ideas on how to get started? The black image is not to be shown.

Software Development image python
Member Avatar for tomtetlaw
0
289
Member Avatar for KuriYokan

Hi guys. I've worked on OOP before, and since in general 'get' functions are used to return private attributes in classes, I was thinking how I could make this test code work. [CODE=c++]#ifndef _testing_h #define _testing_h class Testing { private: char * name; public: Testing(); Testing(char*); ~Testing(); char* getName(); void …

Software Development c++ oop
Member Avatar for Sky Diploma
0
156
Member Avatar for pymatio

I have the following script: [CODE] import sys import os import re pages = [] if len(sys.argv) > 1: for root, dirs, files in os.walk(sys.argv[1]): for f in files: filename = os.path.join(root, f) if (filename.endswith('.html')) or (filename.endswith('.htm')): pages.append(filename) for page in pages: f = open(page, "r") count = 1 for …

Software Development html-css python
Member Avatar for pymatio
0
122

The End.