- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I might be a geeky person, but I love to play actual sports, i.e. Soccer and Swimming and Hockey more than computer games. My favorite thing to do, for pleasure, is go on long 6-10 hour drives! Computers were a hobby till i figured it would be easier…
- Interests
- My biggest passion is driving. I simple LOVE to do it. After that, it is of course Computers and software…
- PC Specs
- I prefer windows for the vast majority of development oppurtunities and IDEs that are available. However,…
85 Posted Topics
I am working on an assignment that does the following three things when a valid expression is provided: 1. Convert to postfix 2. convert to prefix 3. Evaluate expression. I'm using stacks and Binary trees to do this and have been able to do the first two without a hick. … | |
I was trying to set a UniqueIdentifier based on Long. The objective was to give a certain custom Object a unique identifier in order to allow me to store them in a hashmap. I saw someone trying to use the most significant bits. So I realized that the addition of … | |
I am trying to find the point of intersection of a circle and a line through its center. I want to put an arrow on the point actually, to make a directed graph. After some calculations, I found that the math that would go in is,  The figure … | |
I am working on a project where i need to dynamically count how many buttons need to be added to a certain panel. Each button press has to change a variable in the parent class and then to excute generation of a child panel which also dynamically generates buttons. my … | |
I have the following code in a .js file: [CODE=Javascript] function clearVillage() { /*Do Something...*/ } [/CODE] Now in my HTML page generate through PHP, If I call this function through a link like this: [CODE=HTML] <a class="fg-button ui-state-default ui-corner-all" onclick="clearVillage();" >Clear Village</a> [/CODE] It works. However, if I replace … | |
I have a javascript code that modifies the data for a hidden field on the page. The page is then submitted to php. The problem is although I can see the altered data in firefox when I select the section and do show source for selection, the modified data in … | |
This is what I have in a page: [CODE=HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Sandbox</title> <style type="text/css"> table.twocPC { width : 612px; border-width: 1px; border-spacing: 1px; border-style: solid; border-color: black; border-collapse: separate; background-color: white; vertical-align: middle; } table.twocPC td{ border-width: 1px; padding: 0px; border-style: solid; … | |
I am starting out with PHP and in my project I'm trying to fetch XML data from a url and parsing it for data. Now the url that I use is being fetched from a webpage and hence I know that it is correct and it exists. Still, when I … | |
I have the following code I am using to writing and reading cookies: [code=Javascript] //Get Villages from cookie function getVillageFromCookie(villageCount) { var currentVillage = -1; var villagesCookie = getCookie("tw_ratio_villageCount"); if (villagesCookie!=null && villagesCookie!="") { currentVillage = villagesCookie; } else { storeCookie("tw_ratio_villageCount", villageCount, 1); currentVillage = 1; } return currentVillage; } … ![]() | |
I have the following HTML in a webpage that I want to mine for data: [code=HTML] <td id="topdisplay" class="menu-item"> <div class="bg"> <a href="/game.php?village=55303&screen=ranking">Ranking</a> <div class="rank"> (4<span class="grey">.</span>120.|2<span class="grey">.</span>124 P) </div> <table class="menu_column" cellspacing="0"> </div> </td> [/code] I want to get the data inside the rank class and get the numbers, … | |
I am currently working on a site that requires periodic download of data from other sites. For this I have been trying to find some way to make the server automatically download the data every few hours. Any suggestions on how I might get started? Right now we have to … | |
Hi All, This is the first time I'm using Java to connect to my online MySQL database that is hosted by a separate web host. Following is the code in use: (I've removed the server url, username and pass for obvious reasons. They all work when I use them in … | |
Re: what you are doing here is copying a character from b into c and then playing with that c. What you should do instead is use substrings: [CODE=Java] String b = "_____"; b = b.substring(0,3) + 'a' + b.substring(5); System.out.println(b); [/CODE] This should do it. You can modify the substring … ![]() | |
Re: If this is Access, try: [CODE=SQL] Select * From TBL Where startDate <= [date] and endDate >= [date] [/CODE] This would take date as a parameter and ask you for it every time its run. | |
I have a report based on a query that uses parameters (Date datatype). In the report header I have some other data that is also generated using the parameters (Same parameters). This data is generated programatically and I use a dialog box with date in it. Now, I want to … | |
Re: In Design Menu, Click on Indexes. Enter Your data there as follow Index_Name;Field_Name;Sort_Order;Primary;Unique;IgnoreNulls Date_Index;Date;Ascending;No;Yes;No Time_Index;Time;Ascending;No;Yes;No Duration_Index;Duration;Ascending;No;Yes;No Room_Index;Room;Ascending;No;Yes;No Try this and let me know if it works. | |
I have two tables, Episodes and Seizures, with their respective Forms. On Episodes, I have a button the user clicks to open the seizure Form and its internal working is below. The problem is when the form is opened and filtered by parent form, the seizure form instead of filtering … | |
I have a table for Account Transaction. For each transaction a user must select a transaction category. These are stored in a second table which has a categoryID, description and a text box with only two values {'Income', 'Expense'}. Now in the report, I am grouping by Income/Expense. However, I … | |
I needed to fetch the points for a Building at a certain level. For this, I created a Stored procedure in MySQL Workbench 5.2 CE as following: [CODE=MYSQL] CREATE DEFINER=`tribalwars`@`%` PROCEDURE `GetPoints`(IN BuildingID INT, IN BuildingLevel INT, OUT Pts INT) BEGIN Select Points INTO Pts From Points Where BID = … | |
Re: try to read the input file into a char * temp or some other string and then in the output file try to write this temp. Also, this is a fstream operation. This will be useful to you: [URL="http://www.cplusplus.com/doc/tutorial/files/"]C++ Tutorial - 'Input/Output with files'[/URL] Hope this helps, please mark the … | |
I recently had an assignment for an advanced coding class where I was to create a Binary tree from inorder and preorder traversals. I first started out by creating my ADT for binary trees and working with that to create a new tree. The way I worked it was that … | |
Re: if these are nested loops, you summation should be: sum(j=4..n){sum(i=0..j){sum(k=0..n)ijk}} => sum(j=4..n){sum(i=0..j)ij[n(n+1)/2]} (because sum(k=0..n)k = [n(n+1)/2] = n^2} and then you can solve further using the sum operations. | |
Re: that is because you are only returning an int. It seems like you wish to return the whole array. try changing the return type to either an int *** or int [30][10][] | |
Re: Hey Jae5086, you must understand that no one is born with a detailed knowledge of C++ and hence everyone was a beginner and we might share a laugh but will not make fun of you :) Secondly, the problem you are facing is due to the fact that your if … | |
I am writing a utility in which time is being displayed. The problem is, the time being displayed is for the timezone +1. I want to add functinallity so that the user can not only display this time, but also choose which timezone they would like it to be displayed … | |
Hey Everyone! I am writing a program for students and to keep it platform independent I have chosen to convert it to Java. Now, earlier I was using C# and with MS Visual Studio, I was able to write a plugin which would save all open ms office documents. I … | |
Re: OK, I think I might have the answer, in line 52-55: [CODE=JAVA] while (q != null && q.getRight() != null){ p = q; q = q.getRight(); } [/CODE] when you do q!=null: if q is null then you cannot acccess q.getRight(), this is a memory violation. instead just trim it … | |
Can someone please tell me why I might be getting a access violation when doing the following for a double linked list: [CODE=C++] ~DLList() { while(!isEmpty()) //isEmpty is working.. removeHead(); } bool isEmpty() { if(head == NULL && tail == NULL) return true; else return false; } char * removeHead() … | |
Re: Also, you have no code to exit the loop?!? Secondly, after the switch try to set choice to -1 or something to make sure the input is changed (sometimes the input gets stuck when at EOF) | |
OK, so I am redirecting the input from a file. The input is read into a string. The problem is, when the input file ends, the program still reads empty lines and goes into an endless loop. I have added an if statement for it to detect 5 empty entries … | |
I am using char * for getting data from the user. Now, if i just do [CODE=C++] char * data = new char[100]; cin >> data; [/CODE] The data is corrupted, i.e. only data before whitespace is stored; and the following is an example result: [CODE] enter: "Microsoft Co." data: … | |
I have been working on a template class for linked list and sometimes I come across this member function: [CODE=C++] template <class T> bool DLList<T>::deleteData(T data) { ListNode<T> *temp = head; while(temp != NULL && temp->data != data) temp = temp->next; if(temp == NULL) return false; else{ temp->previous->next = temp->next; … | |
I have the following classes, SLList, an integer datatype-based linked list and DLList, a template-based linked list. My problem is that SLList is working perfectly, but as soon as i modify it to be used as a template, i get errors, more specifically LNK 2019, i.e. linking errors. I avoided … | |
I am trying to compile a code that utilises an array of 5 'hotel' objects as below: [CODE=C++] #include "Hotel.h" using namespace std; int main() { Hotel *hotels = new Hotel[5]; hotels[0] = new Hotel("Hershey"); hotels[1] = new Hotel("Milton"); hotels[2] = new Hotel("Sheraton"); hotels[3] = new Hotel("BestWestern"); hotels[4] = new … | |
As part of a homework, I created the following Puzzle Class and it works. The thing is, it only work if i put the class in q2.cxx, the main code file. If I place them in three seperate files, I get hell load of problem. Can anyone please look at … | |
I am lookin forward to implementing windows live calendar to a utility i'm working on. Is there any way to find out where and how the calendar stores the data?? | |
Re: yo could also have done the copying asynchronously and then used update panels to update the textbox :D | |
Re: in case you are using try and catch block, the simplest thing i can think of is take the parameters and add it to a csv string. then add this string to the stack trace message you are sending to the mail. | |
Re: I once did something similiar to this in C++. Here's what I'd suggest you to do, considering that the files are going to be in the similar format/template as those provided. Try to read the files, one line at a time. Since you do not need to read the first … | |
I am working on a automated utility for students which works with their calendar. I have implemented the option by which they can set a time at which the PC will shut down. I was wondering if there is any library or dll or anything out there that might also … | |
Re: Hye, In the first link you posted, they are trying to do something similar to what you want. My suggestion, try to create a new SP and copy either method 2 or 3. just remember to send the data you are sending as a single string (varchar) and join the … | |
This code demonstrates how age might be calculated and filtered using the DateDiff method in SQL. Also, note that both the parameters are set to NULL by default, hence making them 'optional' to a certain limit. | |
I have a users table that has a table titled 'DOB', of format DateTime in MSSQL. Now, I would like to filter rows for all users who are over 30. till now i used this code: [CODE=SQL] SELECT * FROM [User] WHERE [User].DOB > = DATEADD(YEAR, @ageFrom, GetDate()) [/CODE] this … | |
Hey Guys, So I'm working on an ASP page and I am making use some select statement. Now, I need to specify a where clause and make the only condition in there optional, i.e.: [CODE=SQL] SELECT * from table where Upper(name) LIKE "SID" [/CODE] I want to make [CODE=SQL] where … | |
Re: I'm not a VB person my self, but I have seen this problem in my college days. What I would suggest you tried is that replace 'localhost' in your soap methods with a proper URL. I had a similar problem trying to call the a service through sivlerlight and it … | |
I am currently working with a web service that will be working with database. I've been provided with a seperate class to work with the database from my team. The question is that I want to open the connection when the service is called and then close it when the … | |
Hello everyone! I am currently working on a project, part of which involves allowing users to upload media files. Now the problem lies here. A user's media directory is created when they add their first file. What I want to do is dynamically add a web.config file to the folder … | |
Hey, In my college, the internet is accessible after you connect to the college's (open/public) wireless network and login using a web page that opens up when you try to open sites without logging in. I am trying to set that feature for my home network, but have not been … | |
| |
Re: In that case you might want to use this: [code=c#] line.Replace("\\r\\r\\n", ""); [/code] That should fix it :-) |
The End.