199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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); }); … | |
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] ![]() | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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) … | |
what is the library used? How do I assign it the value? What are some library functions dealing with them? Thanx- JT | |
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 << … | |
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 … | |
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 | |
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 … | |
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 … | |
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? | |
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]` … | |
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 … | |
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) … | |
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, … | |
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 … | |
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 … | |
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 | |
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( … | |
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] … | |
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 :-) | |
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 … | |
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 … | |
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 … | |
is there any alternatives? My hosting is a Shared hosting so I guess somehow its limited... | |
[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 … | |
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 … ![]() | |
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, … | |
![]() | 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 … |
![]() | ''' 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 … |
[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, … | |
Just register on this discussion community can i get someone to coach me personally? | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … |
The End.