199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Casey890

Okay I have an array but how do I make it descending? I have it able to print out 1, 2, 3 but would rather have it do 1 2 3. code below #include <iostream> //Initalize Iostream using namespace std; void printarray(int arg[], int length) { //Print array function for …

Member Avatar for Casey890
0
156
Member Avatar for gagan22

hi all, I want to use multiple select drop down box. I am using client, project and activity. These all values are coming from database. I want when i select one client from first drop down box .Then second drop down box will display only that project which come under …

Member Avatar for gumbiliki
0
258
Member Avatar for samkri

I have class within class public class List { public int RecordCount { get; set; } public IEnumerable<ServiceElementItem> ServiceElement { get; set; } } public class ServiceElementItem { public int ServiceElementId { get; set; } public string ServiceElementBusinessId { get; set; } public string Description { get; set; } public …

Member Avatar for TekknoDraykko
0
3K
Member Avatar for CaffeineCoder

I'm trying to add additional security/validation to an online form that has AJAX backend. When I try to add a filter to remove spaces (such as trying trim or replace), the functionality breaks; no error, just no action in general. What's the best way to acheive this without breaking the …

Member Avatar for CaffeineCoder
0
288
Member Avatar for someoneelse

I have a (probably stupid) question I hope someone can help me with.. So, I set a variaible beased on a form in put in the code behind, but then, a few lines down when I go to call it , it has a undefinded value. I don't understand.. Below …

Member Avatar for DaveAmour
0
259
Member Avatar for Rohith_1

i need to connect my PC to Micro controller through Bluetooth,to make it simple my PC will continuously send string to Micro controller depending upon string micro controller performs task ,can this post will be useful to my problem else can u please guide me? Thanks in advance

Member Avatar for peter_budo
0
212
Member Avatar for AQ

Hey guys ..!! so today I was solving another problem involving a loop in it and i'm not sure exactly how to apply that condition to repeat it unless the terminating condition becomes true. I tried to do it on my own but its not working. can anyone of you …

Member Avatar for NathanOliver
0
250
Member Avatar for phoenix254

i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go automatic in his folder or directory. im my register page i have added these lines: $addtothedb="INSERT INTO login (firstname,lastname,useremail,password,Gender,Dateofbirth) VALUES …

Member Avatar for phoenix254
0
535
Member Avatar for Leonard_3

Hello my name is Leonard Norwood Jr. I'm doing a little Poker thing right now on my own time for practice, but I have a heck of a problem. I'm making two classes called Poker.java and PlayPokerDriver.java right now, and I'm almost finished by somewhere between initializing the decks I …

Member Avatar for JamesCherrill
0
333
Member Avatar for akane.mikazuki

This is supposed to be a Rock-Paper-Scissors game. Everything's just going fine until I inserted graphics. What I was supposed to do is to display the figures I've poorly made whenever a choice is made. I can't really explain it so please take a look at my code, thanks (I'm …

Member Avatar for Schol-R-LEA
0
342
Member Avatar for Gà_1

**Problems 1: Spiral matrix - Advanced** Source of the problem: [Here (not in English)](http://www.spoj.com/PTIT/problems/BCACM11B/) Spiral matrix is formed by filling number 1 in 1st row 1st column, after that, filling with increasing number by clockwise, example: 1 2 3 4 5 16 17 18 19 6 15 24 25 20 …

Member Avatar for tien.nguyen.3532507
0
378
Member Avatar for Violet_82

Hi guys, I'm looking into MVC and I'm reasing this tutorial http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-fundamentals I've got to the point of adding a model and the class they add is this: public class StoreIndexViewModel { public int NumberOfGenres { get; set; } public List<string> Genres { get; set; } } I'm not really …

Member Avatar for DaveAmour
0
190
Member Avatar for Darth Vader

Hi, I wonder if it is possible to put a "Twitter Follow Button" on a windows form application? Usually I have this code on a ASP.net webform. <a href="https://twitter.com/_TwitterName" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false"></a><script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = …

Member Avatar for Darth Vader
0
376
Member Avatar for Bendez Thyna

can someone give me some hint on how to use a array structure in a fuction?? Thank you

Member Avatar for NathanOliver
0
108
Member Avatar for R0bb0b

Hello. Quick question. I have several thousand emails pulled in from several email boxes throuph php imap and I need to search each subject with an array of search terms which returns a bitmask, one bit for each index of the array. 1 = found, 0 = not found. So, …

Member Avatar for diafol
0
160
Member Avatar for Themby

I have managed to assign privileges to an administrator and customer. My problem now is how to assign another user the privilege of seeing administror's posts?

Member Avatar for diafol
0
103
Member Avatar for anumash

I am having a confusing time with understanding arrays and variables because of this reasoning: Variables are aliases for memory locations and array name is the address of the first element of the array then why are variables not accesssed as *i whereas the first element of array is accessed …

Member Avatar for Schol-R-LEA
0
155
Member Avatar for Suzie999

Here is my RegEx declaration. private Regex rxPattern = new Regex("^(book-[a-z]{1}\z)"); I'm expecting it to match start of string "^" To end of string "\z" But the "z" is causing the error. I'm fairly new to RegEx and cannot find a solution, if anyone can educate me a little that …

Member Avatar for DaveAmour
0
141
Member Avatar for sanketdomal

Hello Everyone Please share any complete example on protocol buffer with Java.I also need instruction to compile java code which use these protocol buffer (protobuf).

Member Avatar for JamesCherrill
0
192
Member Avatar for kubi081

I'm using a Customizable-Embedded-HTTPServer for a project. Simply I'm calling response.SendFile(@"E:\folder\xx.mp4", "video/mp4") to play video files located at local folder. But it gives me "An existing connection was forcibly closed by the remote host" error. I've searched a lot but couldn't find a solution! using (FileStream fs = File.OpenRead(path)) { …

Member Avatar for kubi081
0
384
Member Avatar for Russ_1

Hi, So, I'm trying to do what's presented in this Quora thread: http://www.quora.com/How-can-I-export-YouTube-comments-into-a-spreadsheet I want to know how to frame the parameters for a YouTube video's comment feed, the comment author, and the comment text itself, using =ImportXML for Google Docs. My Xpath is weak -- can't figure out the …

Member Avatar for DaveAmour
0
209
Member Avatar for gordon_1

This is the program I need to re-write and I dont understand. Sub Main() Dim array(24) As Double, i As Long array(0) = 1 For i = 1 To 24 array(i) = 2 * array(i - 1) Next i Call DisplayArray(array) End Sub Sub DisplayArray(ByVal array() As Double) Dim i …

Member Avatar for Reverend Jim
0
136
Member Avatar for uchejava

I have a html select list where one can chose an option. <select name='price' id='price'> <option value='' >Select....</option> <option value='0-50,000'>0-50,000</option> <option value='50,000-100,000'>50,000-100,000</option> <option value='100,000-150,000'>100,000-150,000</option> <option value='150,000-200,000'>150,000-200,000</option> <option value='200,000 and above'>200,000 and above</option> <option value='see all'>See All</option> </select> When this list is submitted via a html submit button, this list shows …

Member Avatar for Szabi Zsoldos
0
275
Member Avatar for Shetty_1

Actually I have a raw data which will have the information about scan rejected files. Each rejected item will log info. in 3 elements in raw data i.e i)ScanRejected ii) ScanInitiated iii) CardSupplier. I'm trying to process this raw data and put it in XML in a formatted way. While …

Member Avatar for xml_looser
0
394
Member Avatar for pww71

Title: The core of the core of the big data solutions -- Map Author: pengwenwei Email: pww71@sina.com Language: c++ Platform: Windows, linux Technology: Perfect hash algorithm Level: Advanced Title: The core of the core of the big data solutions -- Map Author: pengwenwei Email: pww71@sina.com Language: c++ Platform: Windows, linux …

Member Avatar for mike_2000_17
0
260
Member Avatar for mridul.ahuja

I came across this code of [firefly algorithm](http://en.wikipedia.org/wiki/Firefly_algorithm) and need to use it in my major. If any of you could explain the working of the functions, it would be of great help to me. Thanks in advance. #include<iostream> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<time.h> #include<string.h> #include<memory.h> #defineDUMP 1 #defineMAX_FFA 1000 #defineMAX_D …

Member Avatar for Schol-R-LEA
0
289
Member Avatar for cjohnweb

Hello! I'm working on a program at work for a device we are building, it's a device that (basically) in real-time reads in sensors, makes decisions about said data, and performs output. I have a loop that runs, and then calculates how long to sleep, so we can get as …

Member Avatar for vegaseat
0
370
Member Avatar for Kubilay DoÄŸukan

This is the table that gives error -- ----------------------------------------------------- -- Table `mydb`.`Supervise1` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`Supervise1` ( `S1_Date` VARCHAR(45) NOT NULL, `S1_Contracter` VARCHAR(45) NOT NULL, `S1_Contractee` VARCHAR(45) NOT NULL, `S1_ID` VARCHAR(45) NOT NULL, PRIMARY KEY (`S1_Contracter`, `S1_Contractee`, `S1_Date`, `S1_ID`), INDEX `Contracter_idx` (`S1_Contracter` ASC), INDEX `Contractee_idx` (`S1_Contractee` …

Member Avatar for Kubilay DoÄŸukan
0
289
Member Avatar for tgreiner

OK, I've seen this error explained at least 100 times on the net. But in every case, it seems to be an error of #including <string.h> instead of <string> or metioning string instead of std::string. But, I've done all those things. And it still does not work. By way of …

Member Avatar for Schol-R-LEA
0
10K
Member Avatar for ddanbe

For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? …

Member Avatar for mike_2000_17
0
363
Member Avatar for tentrabyte

#include<iostream> #include<cstdlib> using namespace std; int main() { srand(21); cout << "Unique numbers:"; for (int x = 1; x < 10; x++){ cout << 1 + ( rand () % 20) <<endl; } system("pause>0"); return 0; } Guys this is my program. Can i ask if how can i vertical …

Member Avatar for mridul.ahuja
0
198
Member Avatar for JohnMcPherson

Hello, I am trying to compare a double to be within various ranges, but the comparison is not working correctly. Rounding precision is not a concern, because if the value will match the boundaries so rarely, and it is rounding up to the higher range is acceptable. Below is the …

Member Avatar for JohnMcPherson
0
221
Member Avatar for ddanbe

For a small class it doesn’t matter that much, but for a bigger class I find it handy to have an oversight of all the methods at hand. That’s what I did here. One requirement is that the class file has already been compiled error free. Don’t know if my …

Member Avatar for JOSheaIV
0
425
Member Avatar for Suzie999

I have a function that counts the commas in each item of an array of string. public int CommaCount(string[] sarray) { int count = 0; int commas = 0; for (int i = 0; i < sarray.Length; i++) { commas = sarray[i].Count(c => c == ','); if (commas > count) …

Member Avatar for DaveAmour
0
777
Member Avatar for Nimerion

Hey guys, I am trying to use the **Google Calendar API** within a **php webpage** to display personal calendar events for each user. I made it displaying the events, but I'm stuck on displaying the Event Colors for every event. I was looking around the internet for two days now, …

Member Avatar for Nimerion
0
2K
Member Avatar for akane.mikazuki

I need help to display on the screen rock when user picks rock, paper when user picks paper, and scissors when user picks scissors. Thanks

Member Avatar for Schol-R-LEA
0
486
Member Avatar for sabata mmoledi

how do I print all elements in an ArrayList?? this my code below. import java.util.ArrayList; /** * Write a description of class PetDatabase here. * * @author (your name) * @version (a version number or a date) */ public class PetDatabase { private String name; private String species; private int …

Member Avatar for stultuske
0
216
Member Avatar for ogsirus

Hi guys, I am trying to write a program which picks the closest number possible out of a dictionary. The dictionary contains 50 doubles values, and I use a random double to pick the number i want to get the closest to if that makes sense. Currently I am using …

Member Avatar for ogsirus
0
861
Member Avatar for sam230

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = …

Member Avatar for Terrymol
0
927
Member Avatar for Jan Adi
Member Avatar for dynamix1022

please help me. can you suggest the easiest system. loaning,inventory, etc i have to do the system asap. for my finals. if do you have a system using JFrame pls can you send it to me <EMAIL SNIPPED> Thank you very much .!

Member Avatar for stultuske
0
119
Member Avatar for lyca

Please help me in solving this error of my project. This error appear when i enter this character [ it shows me that i enter an invalid string. where particularly is the error? does it concern with the keyascci? thanks for ur help.

Member Avatar for Minimalist
0
371
Member Avatar for ramsiva

my firstvariable is and second variable is $one=07:54:PM; $two=07:55:AM; I am suffering from getting difference in munutes any body help me result in minutes.

Member Avatar for DaveAmour
0
160
Member Avatar for ramsiva

Any body help me But i am not getting values when clicking button "getValue" my code is <html> <head> <title>jQuery add / remove textbox example</title> <script src="jquery.min.js"></script> <style type="text/css"> div{ padding:8px; } </style> </head> <body> <h1>jQuery add / remove textbox example</h1> <script type="text/javascript"> $(document).ready(function() { var max_fields = 10; //maximum …

Member Avatar for Makara
0
320
Member Avatar for uchejava

I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the 2 photos in the folder I store my photos. ( A picture of how the database looks like is attached.) …

Member Avatar for amith_ami
0
206
Member Avatar for andrew mendonca

C++ Programming Exercise: Implement a command-line calculator that allows the user to enter an expression containing numbers, variables, brackets, and operators. The calculator will also allow assignments to a variable. After the user enters the expression the program will evaluate it and display the value. If the expression is part …

0
145
Member Avatar for akash_6

i need desperate help with this one nested loop program: 123454321 1234-4321 123---321 12-----21 (the '-'s are actually supposed to be spaces)

Member Avatar for TekknoDraykko
0
206
Member Avatar for amith_ami

I want to view the details of a product in single.php. The product is inserted in a newly added table "products" in the wordpress database and it has no post_type or post_id.

Member Avatar for lps
0
298
Member Avatar for raj-uk

Hi All We found many Calendar, which are fine what we need is only show date in season like **25-12-2012 to 15-01-2013** and date we allow to use to select, like if we say available **26-dec and 10-jan** all the can do is select the date fr calender Please help …

Member Avatar for diafol
0
255
Member Avatar for 0xff

I need to make an app in Java that must add in a database all the files (with folder structure) from a hard drive. I need to add the metadata of this files as well. What it will be the best aproach ? Using SQLite with multiple tables or Neo4j …

Member Avatar for diafol
0
206

The End.