199,114 Archived Topics
Remove Filter ![]() | |
Lookup table is usually the fastest method to find function value, if number of values is small. Here we demonstrate the principle by using task of showing the value of byte as binary string or transforming binary string to byte binary value. | |
I have two code snippets that involve recursive manipulation of std::strings. [B]code snippet 1[/B] [CODE]#include <iostream> #include <string> void print_stuff(int min_n, int max_n) { struct local { static void build_stuff( int min_n, int max_n, int cur_n, int cur_c, int max_c, bool inc, std::string & ret) { if (cur_c == max_c) … | |
Hi, I want do pagination per page show only 25 records. Here is fetching data is too large and there I can't use rownum for that. in fetching data there is no any unique column. so tell me how can do it? Thnaks in advance. ![]() | |
Compiler: gcc and/or g++ Linux: Mac OS X 10.6.7 curlpp version: 0.7.3 -Hi I am having trouble compiling my cpp program, I am just trying to do an example from the curlpp website [URL="http://tinyurl.com/3auvcjo"]http://tinyurl.com/3auvcjo[/URL] . I am using that code exactly. Also I've tried to search online to see what … | |
i have a problem with my python class. it contains a method that goes through all the keys of a multi_dimensional dictionary. The dictionary keys may be in the following order (1->(2,3),2->(5,6)). the problem is when the method attempts to get the keys, sometimes it gets them in the right … | |
Here is my script for defining the position in C# (with XNA) [CODE] public void PositionDefinierer(int v) { positionCheck = true; if (v == 1) { v *= 0; positionCheck = false; } else { if (v < 11) { v *= 50; } else { if (v < 21) … | |
Hi, i have 2 buttons btn1 and btn2 when i click btn1 it creates an array of buttons Now i want to call those buttons when i click btn2 its bit complicated project (for me) i cant explain it i just want to add "if" check in btn2 to check … | |
I don't program in PHP so looking at similar code and hacking it has not worked well. Perhaps someone here can help me get started. I'm a genealogist and would like a simple script to determine when someone was born based on their age on a particular date. For example, … ![]() | |
Hi, I am allocating memory using [B]malloc()[/B] and then I am filling the aloocated memory with "0" using [B]memset()[/B]. The combination of [B]malloc()[/B] and [B]memset()[/B] are being called many times in my project. After adding memset() function affecting my project's performance. So I am searching for the alternative for the … | |
hi is there any difference between servlet and HTTP server. I want to develop client server model (two tier) please help. how to do it? | |
Hi everyone. I've decided to learn C++ and have come to the inescapable step of having to choose my development environment. I have a short list of IDE's I'm considering but, since I'm new to C++ and programming in general, I'm confused as to which I should pick. I've taken … | |
Hello everyone, this is my very first post in this webpage so here we go. I've got this problem with my hw assignment, it's almost finished except for one part. The hw is as follows: - Create an address book, creating 4 text files in the computer memory. Each text … | |
These are the last few errors in my code that I am having issues with. Please provide some direction or thought as to what to do to fix it. generator.cpp(11) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int generator.cpp(11) : error C4430: missing … | |
hi all..i am new to this sql thing..i am tryin to install it on win xp .but after i enter current and new password and then press execute button , the installer stops responding before starting the service .the two operation 1.)prepare configuration and 2.)write configuration file are done..after that … ![]() | |
Hi everyone. So I'm trying to make a thumbnails for the products from my shopping cart. A script wa suggested to me which is this: [url]http://shiftingpixel.com/2008/03/03/smart-image-resizer/[/url] Which looks simple and nice. The problem is this: When I merge the script and my code together I get this (the file is … | |
Hi! I'm not sure if there's something i'm missing... I want to implement the Wordpress Gallery Plugin into my site. I want it to be present just after the navigation (which would be stuck to the top if the browser window almost as if it were in header). I'm sure … | |
Is there any good way to share a given directory over the network? Or at least, if the directory is already being shared, is there any way for me to get its network path? (Something like [code]\\190.10.10.1\my_shared_dir\[/code]) | |
I'm still new to Microsoft Access so I don't have a great understanding of its workings but have spent the past couple of months working on a project to manage the company's telphone bills. I'm essentially compiling the usage from every company phone each month into a final table by … | |
I am new to C++ and have a question about include files. I have some classes that I want to share between the main and other classes also. So I include the reference in my main and also in my class. However, this causes a compiler error. If I comment … | |
hey there.. i m a begineer in this java.. i m developing a simple database program to keep records of patients for a small organization in netbeans 7.0 beta. i havn't developed the whole software.. when i test, it doesn't gives errors at first.. when i press the add record … | |
Hi all, I have just created a social site and i was wondering if there is a way to make notification pop up on the side of screen and fade just like facebook? but in php? Please add links to other website to help me get on the right path. … ![]() | |
Hello, I am a total beginner at c++ I am writing a console program and I am wondering how I should do to exit the program, like if the user is asked Do you want to continue ( yes/no) and the user enters no then I want the console to … | |
How to initializing a const set with list of values? I want to initialize in the preambulum, so I dont want to define and initialize an array before initializing the set. I want to do this in one row, if it is possible. | |
Hello dear friends.. I have some confusion in following code. <?php session_start(); $_SESSION["name"]= "abc"; session_destroy(); echo $_SESSION["name"]; ?> as I am assigning value to session variable, after assigning I am destroying whole session but after destroying as I echo $_SESSION["name"] it show value. It is printing value even session has … | |
Well, it bothers me to build menus for every shell application that needs one. So, I've written a module to handle that, like in the good old turbo pascal times. :) Here it is, the module comments are pretty explainatory, I think, and the sample usage if run as script … | |
Hello everyone. I am working on my final project at university for C++, and I got stuck a little. I have an array inside an array. And I want to access that inner array's member and print it with cout. Here is the code: [code=c] void standings(userClub uc){ cout << … | |
Hello everybody, I'm new here and in C# and I'm trying to create a nonogram solver, but have some problems with graphics(I can't even find out it with debugger)... When I turn on my nonograms, loading works perfectly, but i see only red cross in main window: [URL="http://www.mypicx.com/06212011/nono/"]http://www.mypicx.com/06212011/nono/[/URL] so i … | |
![]() | Does anyone have a good tutorial on how to capture video and images from a webcam in WPF. All the ones I've come across give code but little explanation as to what they are doing. Something that is step by step would be nice. The funny thing is that in … |
Hi all, I'm just finishing the code part of an assignment I think I have everything working as intended with the exception that After either the prime number or stamp duty methods complete (A & B options) they don't "flush" the char choice (under the getChoice method ) The vowel … | |
How can i write my data from EditBox to SQL Table whit using ADODataSet,ADOTable and DataSource? Please help me? and write Example Code... | |
Hi guys! please tell me - where is error here - [ICODE]select `OWNER.OWNER_ID`, `Previous_owner.GDATE` from `Previous_owner` left join `OWNER` on `Previous_owner.OWNER_ID`=`OWNER.OWNER_ID` left join `AVTO` on `Previous_owner.OWNER_ID`=`AVTO.OWNER_ID` where `AVTO.AVTO_ID` = 3[/ICODE] phpmyadmin shows error - [QUOTE]#1054 - Unknown column 'OWNER.OWNER_ID' in 'field list' [/QUOTE] the db structire is = [CODE]create table … | |
I was looking around the time module. The time.sleep(no_of_seconds) sleeps the program for no_of_seconds seconds. I don't think this is busy wait. It must be scheduling the process at a later time. Just curious of how this is working.! :) | |
guys please help me ./.... what is the meaning of scanner and what is the uses of import java.util.scanner? need some help...... | |
I would like to know how would I write a piece of code to search a database based on a keyword entered? I haven't started yet but I don't even know the syntax for writing such a program/subprogram plz help | |
I need to make a recycle bin code using bash my problem is that i dont know how to get the previous path of the files that ive deleted so when i restore it it will go to the directory that it was deleted from ive tried putting the paths … | |
SQL is my "weak" part, however I can handle it. I was wondering if there are alternative ways of writing my queries below. Any alternative is welcome, it's a way to learn more. I have the expected/correct results on all of them. **Shows which shops have the product code 1234 … | |
Hello I've got a problem whereby I need to block access to my survey, I do not want a situation where a user can access the survey by just entering the URL of the survey, the survey has been integrated with mediawiki. Thanks in advance kgizo | |
hi every one my problem is is to convert id column values as comma separated ex: id 1 2 3 4 5 6 i want result set as string "1,2,3,4,5,6,7....." | |
Hi!I'm new in java so I really need your help. The problem is how do I return a value if I made another choices again and again.. here's the expected output: Enter size of class: Choose Action: [1]Enter a Student [2]Enter list of student [3]Exit Enter choice[1-3] I created some … | |
I have a problem with my links getting added a extra subdirectory found to it when that link doesnt even exist I have tried everything possible, such as ../ to specifying to exact folder location within the links Here what are the correct links are: [url]http://localhost/xampp/website/newsletter.php[/url] [url]http://localhost/xampp/website/admin/login.php[/url] When I click … | |
[ICODE] mysqldump -u root -p pass**** coke_pos > testbc.sql [/ICODE] i tried this command to generate back-up of my database but i got an error about, eroor in my syntax i have mysql 5.5.11 community server and i am using mysql workbench 5.2, i am using windows 7 please help … | |
hello, i am trying to add a feature in my contact form that create a link with visitors submitted 'TITLE' and 'URL'. Have a look at this code! ***In this code [B]$attn = Visitors submitted URL[/B] and [B]$visitor = Visitors submitted title[/B]. [CODE]$todayis = date("l, F j, Y, g:i a") … | |
Hi, all Any thoughts on why this code runs slow on device but fast on simulator in iphone, I am making a game in cocos2d, and I am moving an object from one place to another , throught CCTouchBegan , CCTouchMoved, CCTouchEneded (ccp function) and after that I take the … | |
I want to write rewrite rule for page url that have no .php extension.. for example [B][url]http://www.3gphone.in/brands.php[/url][/B] into [B][url]http://www.3gphone.in/brands[/url][/B] Here is my code, but it is not working.. [CODE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^/]+)/$ $1.php [/CODE] | |
Hi, i'm having the following problem. i have a list of products and each product has different items attached to them for example(it's all about wines) [CODE]id prodid text bedrag 35 1 1 fles kist Prosecco Tallero 14,95 36 1 2 fles kist Prosecco Tallero 26,95 1 10 1x Fles … | |
Every time i am about to post a thread i get an answer while typing the message, maybe i explain it to myself better when i write it , OK so if you have seen this post it means i have not find an answer :) I have a Silverlight … | |
I want to know what types of useful softwares can be made by using ASP.net/C# ? I have Software Engineering and Web Development as my subjects ...... What type of softwares can I design for a project ? Currently I was working of a ChatRoom application !!!! Please help ! | |
command line/terminal arguments are driving me bananas according to most of my google searchs this should work by the way i am using g++/gcc version 4.6.0 [CODE] #include <iostream> #include <string> using namespace std; int main(int argc, char **argv){ if(argc==0){ cout<<"Use -l or -ls!\n"; } if(string(argv[1])== "-l"){ //code for lua … | |
Hi, Is there a way to "clear a previous loop and form a fresh new loop"? I'm paging my datagrid. Upon form_load, it shows all records in batches of for example 10, which I can set in a textbox. If for example I have 60 records, then my loop code … | |
Hi, I am having problem with applying ajax on IE.I am applying innerHtml on select tag but it is not working my ajax code is [CODE]function AjaxF(ftype,cid) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { httpxml=new ActiveXObject("Msxml2.XMLHTTP"); … |
The End.