199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for selma_ter

I use this part to make transparent the JFrame: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); boolean opacity_supported = gd.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency.TRANSLUCENT); if( !opacity_supported ) { System.out.println("Your platform does not support opacity."); } else { setOpacity((float) 0.85); }[/CODE] It works perfect on Windows. On the same machine I use also …

Member Avatar for woodenduck
0
177
Member Avatar for lps

Based on my understanding, wp_enqueue_script is the function to bind the script to the head section while wp_enqueue_style is to bind CSS to it. My question is: is there any way to bind a php to head without using include?

Member Avatar for lps
0
114
Member Avatar for Zarl

How would i make my program a .exe so people can run it, i made a simple calculator and i want to share it with some people so they can test it out.

Member Avatar for thines01
0
84
Member Avatar for mikepablo

For my intro to c++ class I have to create a complete program from broken algorithms The questions are (a) Print a random number between -1 and -9 to the output screen: (b) Print (to the output screen) the sum of the square roots of the numbers 1, 2, 3 …

Member Avatar for ag_17
0
216
Member Avatar for jacob21

I have a HTML/PHP form in which i am inserting vales in database.its working fine. What i am trying once user fill out the form,there should be a option of [B]save as pdf[/B] & [B]Print[/B] How to convert html form in to pdf. Need suggestions.

Member Avatar for broj1
0
4K
Member Avatar for kelvin924
Member Avatar for Psyho

Hello. My problem is this: I have a table, for which the row and cols number is given by the user. They contai images. Occasionally a cells picture will be changed. The question I have is this: How to do that? I will be able to compute which cell need …

Member Avatar for MartinRinehart
0
151
Member Avatar for tedman102

Ok, so I'm new to programming and I'm making console programs right now. I tried making a program to draw a rectangle in a cli program. I have some logical errors in the program that prevent it from working. I'm new to C++ so go easy on me. :P [CODE]/*Program …

Member Avatar for mlesniak
0
186
Member Avatar for sofia85

Hi, I'm trying to add new information, with several if loops, to a new file with append.() but I'm not sure that this works. The new file will also include some data from the f_file, that is why the if loops are there. [CODE]f=open('filename', 'r') new=open('filename', 'w') for data in …

Member Avatar for sofia85
0
108
Member Avatar for elkowalski

i am trying to load images for an applet using imageicon but i found out that it doesnt work so i was wondering if there is other way to load em. by the way i am trying to load them in another class that is not the main one. this …

Member Avatar for NormR1
0
153
Member Avatar for sjcomp

Hello, I am using a singleton pattern, which works fine. But when I decided to have a singleton of a nested class that is privately declared. [CODE]class A : public CSingletonTmpl<A> { class B : public CSingletonTmpl<B> { }; }; A* CSingletonTmpl<A>::s_Singleton = NULL; A::B* CSingletonTmpl<A::B>::s_Singleton = NULL; [/CODE] The …

Member Avatar for madGambol
0
252
Member Avatar for damorph

I am a complete beginner to PERL. I am using Strawberry PERL. I am coming across text files that I need to format. I basically need to take field data that starts with a certain character and output the field data to a new file which will have all the …

Member Avatar for d5e5
0
241
Member Avatar for torkolort

Hi, I have a school assignment where I need to check if one string is a substring in another string. However, we are not allowed to do any string-based comparison, we are only allowed to compare the ASCII values. So the way I do it now is to call the …

Member Avatar for JamesCherrill
0
169
Member Avatar for sathyapro

HI This is sathya seelan.. I want to develop a simple web application using python... it has to be like a mail interface msgs needed to be stored and login details should be stored in database pls help me with a code snippet

Member Avatar for Tech B
0
178
Member Avatar for collinskawere

hello. am a new student to programming! am doing c in my computer science class at university, as dev cpp as the compiler; - but am disappointed each time I try to run a program. the program just flashes off the screen! am using windows 7 professional s a platform. …

Member Avatar for collinskawere
0
275
Member Avatar for lbgladson

I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; …

Member Avatar for lbgladson
0
139
Member Avatar for bluehangook629

I am looking for a tool that will accept an address from the user and return a 9 digit zipcode as well as validate the address or suggest an address, like on fexed or ups website. Its got to work with vb.net and asp.net Is there a tool like this …

Member Avatar for bluehangook629
0
102
Member Avatar for valestrom

Okay, so almost the exact same code works in one of my c++/cli projects, but not the other. Both have the variables set as public, so they should be free to change. But only the first one does, and the second one does nothing. Here's the button click code for …

Member Avatar for valestrom
0
297
Member Avatar for geekman89

I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public …

Member Avatar for geekman89
0
110
Member Avatar for stereomatching

For what I know, typeid(type) would return a type_info object, typeid(type).name() would print the name of the type, the names are depend on compilers. I would like to build a table by std::map<typeid(type).name(), std::function>. My questions : (1) : For what I know, the names of typeid(type).name() are not always …

Member Avatar for vijayan121
0
872
Member Avatar for typedefcoder

I want to parse command line arguments. Say someone gives me ./progname param2 [-price=50] [-size=10] [-weight=16] [-height=7] Square bracketed items are optional. Either none or exactly two of -price, -size, -weight, and -height can be specified. If none of them are specified, it should be taking default values for price …

Member Avatar for vijayan121
0
275
Member Avatar for kothaisaravan

I have created a .NET windows based application in c#. Find the attached screenshot of my application. Java web service is already created and maintained. Now I want to send the values from windows application grid view to java web service. Is this possible? If so how? Am newbie to …

Member Avatar for thines01
0
216
Member Avatar for 8mir

I have textbox-- (texbox1)= aaa bbb ccc [COLOR="Green"]<e2>[/COLOR][COLOR="Red"]code[/COLOR][COLOR="green"]</e2>[/COLOR] aaa bbb ccc just i want (textbox2)= I want the code between <e2> and </e2> the code Where the code is a variable

Member Avatar for thines01
0
221
Member Avatar for Pravinrasal

When I run my program following is my program: public class JasperReportsDemoApp { String reportSource = "c://report1.jrxml"; String reportDest = "c://HelloReportWorld.html"; public JasperReportsDemoApp() { Map<String, Object> params = new HashMap<String, Object>(); params.put("reportTitle", "Hello Report World"); // params.put("author", "Craig Conover"); // params.put("startDate", (new java.util.Date()).toString()); // params.put("reportTitle", "Hello Report World"); // params.put("author", …

0
117
Member Avatar for c#learner

Ok im struggling to write a very basic program, it is a program that is the user enters 28 it will write back the month is feb, if the user enters 30 it will show the months with 30 and the same for 31 and say no days if a …

Member Avatar for nick.crane
0
100
Member Avatar for mspn

Hi all, very new to PHP (ie. only 2 days old!) so please be gentle! I have a form with text fields and a file upload, and the php script I have is working wonders in regards to uploading the file and emailing the form data along with a link …

Member Avatar for mspn
0
1K
Member Avatar for Dumb Fish

hey...i need to ask ..how to put two field in one column? let say, i have one field call Quantity for weight. Now i need to put the quantity unit which is store in other field call unit. how i concat two field in one column....?

Member Avatar for Dumb Fish
0
95
Member Avatar for Aghtar

Hey guys, theres a problem with the loop inside the yesno function here.. it kinda of hmm.. keeps the first number i enter and gives me the factorial of that number even if i enter another number the second time.. also my no option still gives me the loop even …

Member Avatar for raptr_dflo
0
153
Member Avatar for dennysimon

hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny

0
68
Member Avatar for Ruchi224

Hello !! I have a form and some controls as dropdown and textboxes.. The situation is that when the form loads, i want the value in textbox to be incremented, everytime it loads.. This is something i tried.. I get the value '1' everytime !! It shows no sign of …

Member Avatar for Ruchi224
0
345
Member Avatar for mikecolistro

Hello there! Im making a huffman tree and im having troubles with the pointers. For somereason its not giving the correct output. The problem is where the l2 nodes are pointing. [CODE]#include <iostream> /* A=7 B=2 C=2 D=3 E=11 F=2 G=2 H=6 I=6 J=1 K=1 L=4 M=3 N=7 O=9 P=2 …

Member Avatar for raptr_dflo
0
103
Member Avatar for nikita.

I have finally written this code, but the prob with this is that when it is prompting for password it doesnt send any password to the ftp machine, we have to do it manually, but after typing it manually, it take the password line as command and shows that that …

Member Avatar for nikita.
0
208
Member Avatar for fatzky_04

How does the functions for creating nodes can be used to create a linear linked list with n nodes? The linear linked list that will be created will be assigned values from 1 to n, right? The newly created linear linked list is returned by the function create linear() below. …

Member Avatar for mazzica1
0
110
Member Avatar for Muckytears

So yeah I'm a fairly new coder but I'm trying to learn to do some various things. I can't find any straight forward answers to this anywhere else on the internet but I was wondering if my idea was possible before I spend time on it, and if possible could …

Member Avatar for raptr_dflo
0
155
Member Avatar for lenyjose

I dont know nothing about Java. Which is the best tutorial site to learn java and how it is easily learn.

Member Avatar for adarshcu
0
135
Member Avatar for ndayala

Suppose that you have a structure defined as such. [CODE] typedef struct Deity { char name[80]; char religion[80]; int numAppendages; } Deity;[/CODE] And, suppose you have a pointer to a Diety structure. Deity* deityPtr; Assuming that at some point you allocate memory for a Deity structure, assign its address to …

Member Avatar for MonsieurPointer
0
108
Member Avatar for Ascar

Hi, I need help with this, I'm reading a txt file that has this format: 10,4,12,6,18,24,7,8,15,14,25,2 So far, I read the file using fopen ().Also, I used strtok () to split the string into tokens, but i don't know how store the tokens into an array. any ideas? thanks [CODE] …

Member Avatar for MonsieurPointer
0
642
Member Avatar for existinglady

we have this work that asks for us to solve for the arithmetic progression, and show its output on a textbox. this is how i started my plans.. textbox1 ask for initial value textbox2 ask for sequence value then after pressing compute button sequence will be stored in an array …

Member Avatar for existinglady
0
2K
Member Avatar for anand01

Hi all, I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result [CODE]if(" String ".trim() == "String") System.out.println("Equal"); else System.out.println("Not Equal"); [/CODE] It produces the result of not equal. How it produces the result like …

Member Avatar for anand01
0
142
Member Avatar for arezz09

i have 2 form. form 1 have combobox and second form textbox...how to load data form textbox into combobox..if i type hitachi in text box, automatictly "hitachi" will save in dropdownlist combobox...anyone..please help me...

Member Avatar for ananth3125
0
212
Member Avatar for karthik.datt

#include <iostream> #include <windows.h> #include "g.h" typedef unsigned long (*AsmFunc)(AS_INBUF *, AS_OUTBUF *, T_REG_INF *, T_MPCNT *, ICE_ID *); int main() { AsmFunc _AsmFunc; HINSTANCE hInstLibrary = LoadLibrary((LPCWSTR)L"C:\Documents and Settings\karthikdatt\Desktop"); if (hInstLibrary) { _AsmFunc = (AsmFunc)GetProcAddress(hInstLibrary, "Assembler"); if (_AsmFunc) { std::cout << "ASSEMBLER FUNCTION" << _AsmFunc(ptr1,ptr2,ptr3,ptr4,ptr5) << std::endl; } } …

Member Avatar for karthik.datt
0
195
Member Avatar for truetexan

I am developing a Vis C++ 2010 Express Windows Forms application which handles some time/date scheduling, based on user input. So, to test the application, I ran my PC's date forward a couple of weeks. Edited a glitch in the mean time... Then, set the date back to current. Now, …

Member Avatar for truetexan
0
152
Member Avatar for nikita.

Hi I have written the below code for ftp transfer. can u please help me how to trap whether it is successful or not. [code]ftp -n `awk '$1 ~ /db_server_IP/ { print $3 }' $CONFIG_FILE` <<END quote USER `awk '$1 ~ /db_user/ { print $3 }' $CONFIG_FILE` quote PASS `awk …

0
150
Member Avatar for geneh23

Hey everyone! I am fairly new to the php world but I am a quick learner when shown the right thing. I have a membership area sort of set up on my localhost in Easy PHP, and there is this Fatal Error that reads: "Fatal error: Cannot redeclare makeRandomPassword() (previously …

Member Avatar for nalini@121
0
231
Member Avatar for C++newbie chick

Hi guys, what I'm trying to do is allow the user to add a new student record to the system. If the user inputs a student ID already existing in the system, it doesn't accept the ID, but if it's a new student ID, it asks the user if they …

Member Avatar for raptr_dflo
0
250
Member Avatar for herstein

Hey guys, I'm trying to program which finds the closest value stored in a sorted array using binary search. In other words, it should read the middle array and then move to the middle of the half where this value should be (unless the closest value is in the middle …

Member Avatar for herstein
0
114
Member Avatar for ahp@aol.in

Hi folks, I'm trying following code.. [CODE] #include<stdio.h> int calsum(int a,int b,int c); int main(){ int x,y,z,sum=0; printf("Enter the 3 numbers:\n"); scanf("%d%d%d",&x,&y,&z); sum=calsum(x,y,z); printf("The vlaue of sum is :%d\n",sum); return 0; } int calsum(int a,int b,int c){ int d=0; printf("The value of d is:%d",d); d=a+b+c; } [/CODE] ** (1) ** …

Member Avatar for D33wakar
0
175
Member Avatar for ChaseRLewis

So going over the new DirectXMath and loving how it has better documentation then the old versions, but anyways. It makes a note on many of its targets need to have aligned memory blocks, but that throws me for a loop because I don't know of a way to declare …

Member Avatar for stereomatching
0
164
Member Avatar for PutingPanday

Help in my Visual Basic Program...just got stuck I'm creating a Multiplayer LAN game in VB 2008 here is what I wanted to do I created a textbox named txtbuttons.text. If I inputed a value, for example 23856 in the textbox.The Values will be distributed in different textboxes. example Value …

Member Avatar for PutingPanday
0
210
Member Avatar for jacksantho

Hi, Anyone please help me out. Am having a table with field name 'status' with the values 'yes' or 'no'. Really, i wants to change this 'yes' or 'no' status automatically using mssql server. But i don't have an idea to continue on this work. for example, now the value …

Member Avatar for jacksantho
0
1K

The End.