199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sdinu96

Hi everyone, I don't know how to calculate cpu and memory usage information of a process.I know this information is located in /proc/pid/... but where............because i want to display this information in C++ without using "gliptop" library........... Please help me ........even if possible i need "top" command source code in …

Member Avatar for sdinu96
0
198
Member Avatar for linomatti

Hello, I have a page, all there is in it is: [QUOTE]<script type="text/javascript"> alert('my test'); </script>[/QUOTE] When I open the page by itself, it displays the alert. Using the [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/"]Tabs Content[/URL] script, I call that page via ajax. Page displays, but not alert. So please how do I initialize javascript …

Member Avatar for linomatti
0
106
Member Avatar for stevo356

Hi, I have a problem with setInterval (jquery). It works great, but I wan't the element to stop refreshing when a textarea is selected (so that users can insert text). Here is the refresh code I'm using currently. [CODE] $(document).ready(function() { $("#container").load("php/functions.php?page=wall"); refreshId = setInterval(function() { $("#container").load("php/functions.php?page=wall&r="+Math.random()); }, 1000); }); …

Member Avatar for Airshow
0
368
Member Avatar for lochnessmonster

what does this statement mean? BYTE *gameBase = 0x4C62FC; [B] *gamebase points to the value 0x4C62FC?[/B] or [B]*gamebase points to an address of 0x4C62FC which is the location of data or another address?[/B]

Member Avatar for embooglement
0
68
Member Avatar for dineshcbe

I wish to use DCT algorithm to compress jpeg image.But, i can't able to understand how they got the values in the matrix2 for corresponding values above 200 in matrix1. Thanks in advance.

Member Avatar for Momerath
0
81
Member Avatar for rohand

Hi Team - do you guys have any idea how to use windows application form controls within windows service ? Actually i want to build reminder application which will show popup message in Tray icon of System within a given time interval. I don;t want on daily basis user run …

Member Avatar for vuyiswamb
0
198
Member Avatar for manish250

hello all i have a jsp project when i run this project using netbeans it gives the following exception in browser as follows org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 28 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory …

Member Avatar for manish250
0
490
Member Avatar for conmen80

Hi all expert here, please refer to attached image, I had a table which mainly stored add-to-cart items, user might able to check what's item was in their cart and do remove or update item's quantity as like common cart we use for online shopping. I was able to loop …

Member Avatar for Shanti C
0
128
Member Avatar for rajesh1158

I have a php file, for example abc.php file whose output will be an image(profile pic) and below it a set of links(navigation links). When i click any of those links, it displays the output of destination file(output of file mentioned in "href" attribute of anchor tag). But i want …

Member Avatar for rajesh1158
0
132
Member Avatar for Tellalca

Hey; I want to be able to use VS2010 and still pass command line arguments to it somehow. When I am building an application that needs to use argv[], I need to compile it and run it from the command line. That is becoming boring sometimes especially when I want …

Member Avatar for sundip
0
140
Member Avatar for mrcniceguy

Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code …

Member Avatar for madCoder
0
148
Member Avatar for loginas
Member Avatar for ITjulz

Write a java program that computes of the long distance call. The following cost of the call is determined according to the following rate schedule. a. Any call started between 8:00 am and 6:00pm Monday through Friday is billed of a rate of $ 0.40 per minute. b. Any call …

Member Avatar for pbl
0
287
Member Avatar for jackmaverick1

I thought about a project idea and I came up with this: 20 questions. I have no clue how to start. I think that a simple knowledge base is necessary, along with a way for it to learn. also, how would it ask questions? it would have to know some …

Member Avatar for JSPMA1988
0
161
Member Avatar for AaronLLF

I'm making a video game, but there's 1 (more like 10 others that are offtopic :P) thing I want changed. The sky/space color. See this video (Outdated code, but it's the most recent video): [url]http://www.youtube.com/watch?v=ZlCZUtoB0MA[/url] See the black space? I want to change that to something like sky color. I'm …

Member Avatar for pbl
0
146
Member Avatar for raghavp

trying to work on netbeans on a project.... getting the following error [CODE]Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41) at java.awt.image.Raster.createPackedRaster(Raster.java:458) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015) at sun.awt.image.SunVolatileImage.getBackupImage(SunVolatileImage.java:225) at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:252) at sun.awt.image.VolatileSurfaceManager.initialize(VolatileSurfaceManager.java:108) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:72) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:82) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:93) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:87) at sun.awt.windows.WComponentPeer.createVolatileImage(WComponentPeer.java:604) at java.awt.Component.createVolatileImage(Component.java:3316) at java.awt.Component$BltBufferStrategy.createBackBuffers(Component.java:4038) at java.awt.Component$BltBufferStrategy.<init>(Component.java:3983) at java.awt.Component$BltSubRegionBufferStrategy.<init>(Component.java:4236) …

Member Avatar for pbl
0
260
Member Avatar for jackmaverick1

what is the library used? How do I assign it the value? What are some library functions dealing with them? Thanx- JT

Member Avatar for Saith
0
135
Member Avatar for zit1343

for C++ [CODE=c] #include "stdafx.h"; #include <iostream> using namespace std; int main () { int x; char name; cout << "Please Type in your Full Name: "; cin >> name; cout << "Hello" << name << " , Now please type in your age: "; cin >> x; cout << …

Member Avatar for Saith
0
152
Member Avatar for MasterGberry

Hello, some of you have have seen me around the site lately picking up some C++ knowledge. I have been reading a book (brief history). I am trying to get involved in dev work for a community I help out. So i took up C++. My assignment has been to …

Member Avatar for MasterGberry
0
260
Member Avatar for coding101

I have progm that with a class that has the main method, and that method takes arguments which must be typed in the command line...how do i compile and run the class from the terminal using mac cmds what is the syntax? thnx

Member Avatar for jon.kiparsky
0
57
Member Avatar for t3chpr0digy

Hello, I've been racking my brain all week with this code. I'm displaying a help desk table, and I want the column headers to be clickable, which will ultimately sort the that column both ascending and descending. I'm sure I'm just missing a step or so, but cannot seem to …

Member Avatar for stevo356
0
118
Member Avatar for jackmaverick1

I have been trying to invoke the default destructor for a class of mine (see below). when I try I get this error: "no match for 'operator~' in '~Card(((const Card&)((const Card*)(& hearts[1]))))'" [CODE] class Card { public: bool inPlayer; bool inDeck; bool inOpp;//in opponets hand. int type; //!< Member variable …

Member Avatar for jackmaverick1
0
1K
Member Avatar for Jguillen

I recently wrote a code for a feedback form in Php, and I have the following problem: after submiting the form, what can i do to go back to the form page?

Member Avatar for stevo356
0
77
Member Avatar for rolfhorror

load array from file into variables for login ? I have an external file with some userpreference called userprefs.txt which contains values on several lines (array values). In another page I have this code below(part of it), trying to get the `$realUser` and `$realPass` values to be parsed from `$userPrefs[0]` …

Member Avatar for rolfhorror
0
132
Member Avatar for soneal777

I am using Visual Studio 2010 and C#. I am having problems making my three dice generate different random numbers. All of the dice roll at the same time. I have pictures of dice that I want to pull up for each of 3 dice according to what random number …

Member Avatar for soneal777
0
430
Member Avatar for LogicallyInsane

Um, I'm actually KrazyKitsune, I'll use that account after I manage to recover my password. So I'm having trouble with RS NOR latches. I did this: [code=python]s = int(raw_input("set Set value: ")) r = int(raw_input("set Reset value: ")) qi = not (s or q) q = not (r or qi) …

Member Avatar for LogicallyInsane
0
93
Member Avatar for evertron

I get an error with this code and I dont know why I thought that sum was part of the array calss and it does come up when I put the "." after the array. This is the error I get. Traceback (most recent call last): File "F:/Python_Stuff/CSC143-901/score-array.py", line 22, …

Member Avatar for TrustyTony
0
114
Member Avatar for Manchala

Hi everyone i am new in visual basic. net programming. i am facing problem that when i made a file in vb.net and run it on same computer than it runs fine, but when i copy it to another computer where vb.net or .net framework is not installed then it …

Member Avatar for jlego
0
1K
Member Avatar for Electricfan

So here is my latest question team... The project I am working now the I needs to be modified.. Its a form with checkboxes on who you would like to send this message to... at first I thought it was fine just sending out with everyone on the "to:" list …

Member Avatar for Electricfan
0
607
Member Avatar for BleepyE

If I create a save a text file, how do I get my application to save it into the end users directory? Ive current got this which saves into my user area. [CODE]file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\#####\Fruit\Fruit.txt", False)[/CODE] Thanks

Member Avatar for BleepyE
0
160
Member Avatar for neo2nate

please help I want to reading .wav file and putting ito inot the array to do some manipulations.... here is the bit of the code, I am trying to read the file called yes1.wav and putting it into the array and it returining junk...sometime cannot open the fp1 = fopen( …

Member Avatar for Trentacle
0
627
Member Avatar for xuexue

hi guys..is there a problem with my code? because, i am trying to add a row dynamically depending on the user requirements, what the code does is that, whenever the image is clicked, only the textbox appears, what should happen is that the textbox should be inside the row.. [CODE] …

Member Avatar for itisnot_me
0
117
Member Avatar for james6754

Hi, as I understand it, you can only access a static member from another static member? can anyone tell me how I would go about accessing a static member in a different class?? thanks.. also if anyone has any good links to sites about constructors..would be most grateful :-)

Member Avatar for james6754
0
82
Member Avatar for gutchi

Hi Everyone! I have here a queue: [CODE]my $qTool = Thread::Queue->new();[/CODE] I want to show all the elements that the queue contains. [CODE]my $qItem = $qTool->peek();[/CODE] The code above returns only either the head of the queue or an element at a specified index. Is there a way for me …

Member Avatar for d5e5
0
251
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } public static void main(String aa[]) { R2 nn1=new R2<Integer>(); nn1.set("hello"); (1) //String r=nn1.get(); //Integer t=nn1.get(); } }[/CODE] In line (1), an unchecked warning is given as the compiler …

Member Avatar for daudiam
0
205
Member Avatar for Dragonbaki

Hi all... For more days, I am struggling with one damn concept.. I have created a sample mail sending code which supports to upload our resume and send it to some company person.. I have cleared many bugs and finally it works fine. But the problem is when i host …

Member Avatar for richieking
0
135
Member Avatar for MooGeek

is there any alternatives? My hosting is a Shared hosting so I guess somehow its limited...

Member Avatar for MooGeek
0
165
Member Avatar for Barzanyadis

[B]The 1998 22nd Annual acm International Collegiate Programming Contest World Finals sponsored by IBM [/B] Problem F [B]Polygon Intersections[/B] Input: poly.in Most drawing or illustration programs have simple tools for creating polygon objects. The better ones can find the regions that are the intersections of two polygons. The picture below …

Member Avatar for vijayan121
0
133
Member Avatar for jamesl22

Hi, In vb.net, how would you search a folder and get it to make a list of the files in the directory and what sub-folders the files are in are in? Then, put the results in a multiline textbox. The list would look something like if we were searching in …

Member Avatar for Unhnd_Exception
0
169
Member Avatar for Clinton Portis

As a proud memeber of the 10% unemployed and the 45% under-employed, I often find that I have a lot of time on me' hands. Now my dear ol' mom likes to play this game, and she's often at home alone.. so with nothing else to offer this holliday season, …

Member Avatar for Clinton Portis
0
166
Member Avatar for BrownBeard

I am writing an alarm clock program in C++, and it works great for now, but I was wondering is there any way I can have the user select the sound they want to blare once it goes off. If it helps, here is my code, as bloated as it …

Member Avatar for Dingbats
0
139
Member Avatar for R3ap3R

''' Hi there, I am totally new to this site as well as Python. Luckily Python is a not too hard programming language to start with. I am trying to create a Caesar Cipher with ROT13 program that encodes user text ('a' - 'z' and 'A' - 'Z') to 13 …

Member Avatar for richieking
0
912
Member Avatar for aplh_ucsc

[CODE] BITS 16 start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / 16 bytes per paragraph mov ss, ax mov sp, 4096 mov ax, 07C0h ; Set data segment to where we're loaded mov ds, ax mov si, …

Member Avatar for Tight_Coder_Ex
0
400
Member Avatar for RichMayor

Just register on this discussion community can i get someone to coach me personally?

Member Avatar for ddanbe
0
110
Member Avatar for SuPrAiCeR69

I have an example below from the registrar and when implemented (in a loop) it takes between 500ms to 1s between checks. I need it to run as quickly as possible, whether it be through curl or without. It seems curl takes forever between checks. I only need the script …

Member Avatar for mschroeder
0
2K
Member Avatar for virusisfound

Hi, I want to save datagridview data in Excel sheet as per user spcify the location for that I write some code but It's not working properly. If I spacify the location in the code then It alway overwite the data on previous data. In Savedialog Box when I spcify …

Member Avatar for RossR
0
118
Member Avatar for a1a4a

Hello all I am on a windows application form where people can log in and add status ... and it's all online via sql database. What i am looking for is a sql query that Insert into the table the current time,so i can print on the application the time …

Member Avatar for Unhnd_Exception
0
164
Member Avatar for cmull

I have spent days on end scouring the web trying to find an answer to this question. I am developing a club website. I want a club member to be able to login, navigate to and start a stream from his computer's line in/mic. I know I will need to …

Member Avatar for ArtistScope
0
89
Member Avatar for ALorenzo91

I need Help with a program Details: Design an algorithm that will produce a list of selected student names from a student file. Each input student record contains the students number, the students name, semester hours, and the age. Your program is to read the student files and prepare a …

Member Avatar for jeffreylee
0
113
Member Avatar for DaveTran

I'm after an efficient way of detecting whether a List object has changed from one frame to the next. [CODE] List<int> intList = new List<int>(); [/CODE] I have my list as a member variable and will check to see if it has changed each Update() method call. The only way …

Member Avatar for DaveTran
0
6K

The End.