I am interested in getting some opinions on the use of include files to sub-divide a large module into functionally related groups. What I'm interested in is opening a discussion on best practices and minimal requirements. Here's the scenario: I am working with a library with 200+ functions. They naturally divide into 2 sets: and advanced set of calls and a "simplified set" which fills in some of the more arcane, rarely used arguments with typical defaults and then calls the advanced functions. So, instead of having one file with 2000+ lines of code, you have a master file with …

Member Avatar
Member Avatar
+0 forum 14

how to reduce memory usage of java application...it takes 18 mb memory when started,when i starts new thread it takes 47 mb of memory .After i closed the started thread ,the memory is not reduced to 18 mb. It still stays at 47mb of memory usage.

Member Avatar
Member Avatar
+0 forum 1

A survey of more than 700 tablet owners in US, UK and Australia has revealed some interesting insights into how people use their devices. The $195 Gartner 'Consumers Buy Media Tablets Based on Lower Prices and Better Quality, not Brand' report (gotta love that snappy title, huh?) unsurprisingly shows that tablets are being bought for different reasons than they were two years ago. Unsurprising, to me at least, as I would imagine it's pretty obvious that the market has grown so big during this period and the 'late adopters' for want of a better description are likely to have different …

Member Avatar
Member Avatar
+2 forum 3

PHP is a nice language with features a wide range of automated features for memory but when it comes to mass processing for things like calculating pi or processing a database that's a couple dozen Gigabytes then you may run into a few troubles if things aren't done correctly. This of course only happens depending on what operating system you have and what updates you have done along with settings you have set but those pieces of information are a bit puzzling as some web servers have this problem while others don’t. So this feature I'm going to talk about …

Member Avatar
Member Avatar
+4 forum 2

Hello, everyone I am going to get right to the point. I am trying to create this index.php with a discounted display of the calculation. Here is my display.php page code. I have your classic $product_description, $list_price, and $discount_present. I think it might be working well the only problem that I am having is **if the user is does not meet the validation requirements I am wanting the error message to display under the header.** <?php //get the data from the form $product_description = $_POST['product_description']; $list_price = $_POST['list_price']; $discount_percent = $_POST['discount_percent']; $sales_tax_rate = $_POST['.08']; //Validate product description if(empty($product_description)){ $error_message = …

Member Avatar
Member Avatar
+0 forum 4

In context like **He began to play fatback/swing-based R&B**

Member Avatar
Member Avatar
+0 forum 7

It's the title of an instrumental album -> no any words in it.

Member Avatar
Member Avatar
+0 forum 4

I had a doubt in one of the usages of typedef. I want to know the meaning of this line: typedef char Text[80]; What is the meaning of this line and what does it do? Does it create an array of typedefs relating to char, or does it mean "Text means a string of size 80". Thank you in advance! :D

Member Avatar
Member Avatar
+0 forum 2

Hello guys Anybody could help me please to make the Windows estimated usage in visual basic 2010 "To show how many MB/GB of internet i have used" I'm running windows 8 and this application will will be used on windows 8 Only Thanks in advance guys and i hope to hear from you soon

Member Avatar
Member Avatar
+0 forum 2

#include<iostream> #include<string> #include<vector> #include<set> #include<map> using namespace std; struct PoiDetails { int x; std::string s; }; int main() { struct PoiDetails oBj; std::map<std::string, PoiDetails> vName; oBj.x = 1; oBj.s = "str1"; vName["Jhon"] = oBj; oBj.x = 2; oBj.s = "str2"; vName["Ben F"] = oBj; oBj.x = 3; oBj.s = "str3"; vName["Shown"] = oBj; oBj.x = 4; oBj.s = "str4"; vName["peter"] = oBj; oBj.x = 5; oBj.s = "str5"; vName["juk"] = oBj; oBj.x = 6; oBj.s = "str6"; vName["peter"] = oBj; //std::set<std::string>::iterator it; std::map<std::string, PoiDetails>::iterator it; int i; for(i=0, it=vName.begin(); (it!= vName.end()) && (i<6); i++, it++) { cout<<"Detail " << i …

Member Avatar
Member Avatar
+0 forum 2

I have read several replies here and I am in the process of testing them now but since this is a problem I need an urgent fix for, I thought it would not hurt to ask again. We have an Apache website that is extremely simple in design. It's main security is simply a username password setup. We recently got a complaint from one of the people who posts items on the site that he left his laptop and browser open and running on the site when he went home. While this could easily be fixed by telling people to …

Member Avatar
Member Avatar
+0 forum 3

Hey friends i have one question that is revoloving in my mind from some time is that if i am working on site that have different keywords for different pages for home page it has different keywords and for inner pages it has different keywords then do we have work on the keywords according to the assigned urls or can we do the work og building backlink of any keyword with any page of the site ? if it is right then if suppsoe my keyword is abc of the home page of the site abc.com and i am working …

Member Avatar
Member Avatar
+0 forum 4

Hi friends. i have an image and i want to use it on another class. so i create a uri like that final Uri selectedImage = data.getData(); String path = selectedImage.getPath(); Intent sintent = new Intent(FromFile.this, OurView.class); sintent.putExtra("image", path); startActivity(sintent); i called uri like that in the class of OurView String ur = getIntent().getStringExtra("image"); try { URI uri = new URI(ur); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } i want to use this picture as a background in this class. How can i do?

Member Avatar
+0 forum 0

in which i wnt sme small widow and data usage and speed increase n decrease can b done n v cn use a credit or atm card also

Member Avatar
Member Avatar
+0 forum 2

Hi, thanks in advance to whoever can help me out here. I guess the issues with my computer are currently. 1. ping.exe using up a large chunk of the CPU, very erratic but sometimes going near 100% 2. When I open Firefox or Internet Explorer, another tab or window automatically opens for internetpayday.co, and when I try to close that i just get more pop-ups. Also if I do a Google search and then click on a result I get redirected to some other search site or more pop-ups (9newstoday.net is another one). 3. When I try to connect to …

Member Avatar
Member Avatar
+0 forum 5

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 by Ted. 11/03/11 Program creates a rectangle or square in a text matrix according to user input.*/ #include <iostream> #include <string> #include <iomanip> using namespace std; //variables must be greater than 2 int w1(0); int w2(0); int wf(0); int h(0); int hf(0); int inside(0); int inside_c(0); int p(0); int a(0); …

Member Avatar
Member Avatar
+0 forum 1

Hello all, a few weeks ago I noticed my computer was running slow, I used anti malaware bytes to scan and found 50 infected items, which I deleted. My computer seemed to be doing fine until one day it was incredibly slow. I checked windows task manager, and my computer was at 100% cpu usage, never dropping, just staying constant. I checked the processes and one was "Apple mobile devices services" or something similar. I do not have an Ipod, Iphone, nor do I itunes installed, so I was very suspicious. I tried ending it as a process but it …

Member Avatar
Member Avatar
+0 forum 37

Hi guys another newbie here want to know and learn about NGINX :) how can i use that in my next project ? Any help would be greatly appreciated Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Hello! I'm working on VBA within MS Access XP, and can't seem to get the proper usage of the split function down. I've been trying to make this work, but I keep getting the "Run-time error '9': Subscript out of range" error. Since the code of my project is kind of long, I'll try to stick to the most relevant part- can someone please explain to me where I'm going wrong? [CODE] 'Declare your Dims: Dim InputString As String Dim NewArray As Variant Dim NewArrayKey0 As String 'Give the InputString variable a value: InputString = "input string" 'Split the InputString …

Member Avatar
Member Avatar
+0 forum 3

Hi DW, I'm extremely new to DaniWeb. I have been coding in C++ for about one month. I'm thinking about coding in Python too. But, I'd like to ask some newbie question's about it first. [B]I'd like to know what it's used for.[/B] [I]I think it's mostly used for web application's.[/I] [B]I'd also like to know if it has a runtime environment[/B] [I]For example, Java's runtime environment is the JVM(Java Virtual Machine), at least I think so.[/I] [B]Also, is Python a language that's actually used?[/B] [I]Like do many companies use Python?[/I]

Member Avatar
Member Avatar
+0 forum 5

Hello, I was wondering if there is some sort of Java code that can get information from a webite ONLY when it needs to. To better explain (by using an example) let's say I have a slow webpage (minimal traffic) where a user clicks a button and Java opens my DVD drive (Cause why not :P ). The easy way would be to read a file from the website every x seconds, but I don't want that because that would drive bandwidth and all that up (in this example remember, it's a slow webpage). I want to know if I …

Member Avatar
Member Avatar
+0 forum 2

Hi, I normally only use Linux (Ubuntu) for software development, but I want to test an app on Windows with IE before I make it live. I have Windows 7 Ultimate installed, as well as Python 2.7 and Django 1.2.3 I appended C:\Python27\Scripts to my PATH, and .py to PATHEXT. I also installed Django via the "python setup.py install" command, and verified that it can my imported. But when I enter "django-admin" followed by any of its commands, only a message is returned that informs me about django-admin.py's usage. Is there something I missed that needs to be done on …

Member Avatar
Member Avatar
+0 forum 1

The End.