199,114 Archived Topics
Remove Filter ![]() | |
Hi, since I've spectacularly failed to build a simple MVC application (for now at least ) https://www.daniweb.com/web-development/aspnet/threads/496278/building-first-mvc-application, I've decided to do even a simpler one, modelled on this one http://www.codeproject.com/Articles/683942/An-Absolute-Beginners-Tutorial-for-understanding-E , which is supposed to create a few books and their associated reviews I don't think it gets simpler than … | |
Hi All, i'm having difficulties downloading about 4000 images from my php script from individual http locations. It works as follows, every object is an xml file, and each xml file has an unknown number of attachments (images) i loop through the xml files and then through the attachments where … | |
Hello All, I want to sort my list order by sno. This is my code, List<Employee>list=new ArrayList<Employee>(); Employee class has fields, one of field is sno (its String type); this field values are like this format 1.2.1 1.2.3 1.5.5 1.5.3 I want to sort this serial no. I used comparator … | |
I have a requirement to generate an auto ticket/email when it's time for a scheduled task to be done and it should repeat again when it's time for performing the task. Could you please help me with the script/how this can be done I'm gathering the information to a table … | |
hi i am working on school assignment which is due real soon. but i seem to have an error that ssays sytax error near '=' at line 39. here's my code. i hope someone would point out whats not right with it. using System; using System.Collections.Generic; using System.Linq; using System.Web; … | |
So I've always toyed around with C# code with the idea of gaming. Lately I've been dabbling in communication. Initially I tried sockets and TcpClient and that was hit and miss. So I decided to give pipes a go. Frankly I dont have much of a preference of one of … | |
I have a class that implement all my workflow method. At some pointing time, when the request is approved by the workflow, I need to update status in database. For this I need to call the respective service class to save the status. The following method is saving the status … | |
I'm working on a project for a tic tac toe game. I'm working on this with a partner (assigned) but he has kind of fallen by the wayside. Here is the assignment: Filenames: ttt.h, ttt.cpp, tttmain.cpp Your second project will be completed with a partner. For this project, you will … | |
Hello i have formatted my pc with Windows 7 and installed wamp server. My local project doesnt work. I am familiar with the difference between mysql and mysqli? Do i need to install a most recent version of Mysql than the one provided by Wamp Server? ![]() | |
I was writing a X-server display code to show movement of balls from one pixel location to next location, which can be visible at the new window opened up after execution of this code. While running the below code, I can get 5 red color filled circles (considered as balls). … | |
Hello. I have a few Qs about Hash tables. how does `std::hash` return a `std::size_t`? for example how does it convert a `std::string("Hello")` to `std::size_t`? How do these functions work? i have no idea what's `hash_combine` and `seed` do in `hashval.hpp` This is from STL 2nd edition. hashval.hpp #include <functional> … | |
I am currently troubleshooting a utility that I have been working on. The main file of the utility is below. Please not that `flatten_dict` and `makerows` are seperate files and functions, respectively. My objectives are to: * Recursively traverse a directory - done * Find XML and text files only … | |
Hello, again, people. You helped me to install Python on my Desktop, and now I cannot get it running on my Laptop… same as the Desktop… Win 7, 32-bit, SP1. I think I did the same procedures, but it wouldn’t work. So, I UN-installed Python. Then re-installed it. Same problems… … | |
Write a function named repeatCount(). The function repeatCount() takes two string parameters: --> the name of an input file and the name of an output file. The function repeatCount() should read each line of the input file, identify the number of words on the line that occur more than once, … | |
Hello I am tring to write a code to generate random numbers into an array, I don't understand why this isn't working. please help #include <iostream> #include <ctime> #include <cstdlib> const int NRows = 5; const int Ncols = 5; using namespace std; int main() { //declare variables int num[NRows][Ncols]; … | |
I am implementing the last feature of my Python Checkers Game, which is to require the user to make multiple jumps. For captures, I do the following: 1 Check if the move is valid: 2 self.validatedMove = True (The move that has been made is valid.) 3 self.capture() (Captures the … | |
Imports System.Windows.Threading Imports System.Threading Imports System.Net Imports System.Drawing Imports System.IO Imports Microsoft.Win32 Class Window1 #Region "Fields" Private geoDoc As XDocument Private location As String Private zoom As Integer Private saveDialog As New SaveFileDialog Private mapType As String Private lat As Double Private lng As Double #End Region Private Sub GetGeocodeData() … | |
I have vb.net application and have a richtextbox.. I want set the lines limit to 12 and after 12 lines the user will not allow to enter text. How can i do this? | |
I am using -PHP 5.3.3 (cgi-fcgi) -Apache Web Server 2.1.6 -5.1.73-community -MediaWiki (1.22.0) I need to implement auto login for the mediawiki users by using ldap authetication. However, php_ldap.dll is not found in the /ext file so I went to download and enter the extension=php_ldap.dll in the php.ini file. I … | |
How to fix the following SQL error? 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`Sent`, `handler` varchar(20) NOT NULL, PRIMARY KEY (`id`) )' at line 5 Code: $create_q = 'CREATE TABLE IF … | |
Hello, I have created an ecommerce website can anyone help me out and let me know that how do i ake a product flter or refine search what ever we say using checkboxees or anyone could sugest any tutorial please. Thank You in advance ![]() | |
ok, so if you know me well, this gets a little complex... what I'm trying to do is execute a function from a script that requires 2 arguments where the names varry depending on the script. but I'd like that function to be executed in a namespace where I can … | |
![]() | find /home/scott/xyz -name "*.log*" -not -name 'access.log' -not -name 'server1.log'-exec cp -i {} /home/scott/zxc/. \; I want to run this command but It doesn't seem to work for two files.How can I achieve this? ![]() |
Hi, I have three classes `public class Player` , `public class Computer : Player`, and `public class Game`. In `Game` I have a List: `public List<Player> PlayerList` and a variable `Player CurrentPlayer`. Heres what happens: when I create a `new Computer()` I add it to the `PlayerList`, the `CurrentPlayer` acts … | |
Hi Guys. I have the following scenario: 1. I have build abig management database at our HQ and it is to be fed from several databases spread across regions. 2.I only want to have records of specific tables from those distributed databases be sent to my central database.Changes in Those … ![]() | |
I want to remove the specific nodes from xml file under song tag whose id =2 from the following file in Android (Java): <music> <song> <id>1</id> <albums_id>1</albums_id> <title>Someone Like You</title> <artist>Adele</artist> <duration>4:47</duration> </song> <song> <id>2</id> <albums_id>1</albums_id> <title>Space Bound</title> <artist>Eminem</artist> <duration>4:38</duration> </song> <song> <id>3</id> <albums_id>1</albums_id> <title>Stranger In Moscow</title> <artist>Michael Jackson</artist> <duration>5:44</duration> … | |
when i am clicking on button, page is refreshing and share popup displayed and immediately hiding any body help me <?php /* Command Center Settings: Fill these out before you use the tool. */ $googleApiClientId = "xxx"; // Your API client ID from https://code.google.com/apis/console/ $inputSize = "70"; //How wide do … | |
Converting mysql to mysqli. i need help av been scratching my head how to make necessary changes but its like am making more errors. please help or give direction what to change.. <?php session_start(); include("php/class.user.php"); $msg = ""; $msg2 = ""; //$submit = $_POST['btnaddnew']; if(isset($_POST['btnaddnew'])){ if(empty($_POST['txtUserId']) || empty($_POST['txtFname']) || empty($_POST['txtMname']) … ![]() | |
how can i select a particular child node for example when i click on a node it is selected so that if selected node= TreeView1.Nodes(0).Nodes(1).Nodes(4) then messagebox.show("node selected") end if | |
Group, I need to insert an "If/Then" statement that will require the command to check the string for multiple variables. In other words it needs to say something like this: If Microsoft.VisualBasic.Mid(txtLine, 18, 1) = "C" or "T" or "G" or "W" Then Go do something End If After doing … | |
Hi all, I have a question about file path in lunix. Since i pretty new to linux (im running ubuntu) i dont know how to give a correct file path to fopen command. I want to write some data to a usb drive. Let me show you how i would … | |
i have these buttons what i wanna do is when i press any of them change the button name to "Ouch!" import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class sudokou extends Applet { Button num[] = new Button[9]; int x, y, i, j, n … | |
Group, In VB.net, I use the following to return the actual name of a folder where data is kept. Is there an equivalent in VBA? I sure hope so. It would solve some problems for me. foldernameGD = CStr(getFolderNameGD("O:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels", propertyNo2 & "*")) In advance, thanks … | |
Hi group, I'm getting an "single-row subquery returns more than one row" error when running my routine. Looking through the table I'm querying, it is listing a date twice for some reason. Since I'm not able to remove this one row, is there a way to return the first instance … | |
Binary file for cars of a certain city Each car of the record containing the following information: Car number - Year - color - figures the identities of the owners of the agenda this car. (Through the matrix at most 5 because of possible car owned by more than one … | |
Does compound literals techinque reserve a memory ? if i say int x; x=(int){1}+(int){2}; or total_sum=sum_arr((int[]){1,2,3}); and what's the best situation to use this techinque ? | |
Hi, I've ran into a problem when publishing/updating the clickonce project. I publish project to network share and what hapenes is that app doesn't update on startup as it should. Just old version openes, no update hapenes, seems like it doesn't see the update waiting. I've done this update a … | |
Hi all, I am not able to get correct count, if col1 (percentage with respect to product) and col2 have uniq value. Below I post my sample table data and expect output and which i query I tried. Please help me to get in to right direction. CREATE TABLE mysample … | |
How to use two models in a view using Tuple and view model and what is there diffences? | |
Hello Guys, My problem here is I want to check every row of the data if it's in the range of 2 days before today. and will send the email of it's name who fit the condition of 2days before. <?php //******************************************************** //2008/07/16 Yoshifumi Tagawa //******************************************************** $date_today = date("Y/m/d H:i:s"); … | |
Hello, I have created a dropdown lists using javascript dynamically. But i am not able to get the selected option values of that dropdown lists. could anyone please help. ![]() | |
Hi Anyone can pls help me with a unique random number generator of length 3, prefixed with values from DDMMYYYY (e.g. for today's date 25062015001)? | |
I am retrieving from table based on standard and date. For first standard It, has two sections A & B. A has one subject and B has two subject. While displaying I want to display in a table like this: section | Description A | English B | French,English My … | |
Hello! I am new in java and I have this code that will throw an exception if the numerator input is not an integer and will stop the loop process when the user input 'e' as its numerator. Thank you for your help in advance. package org.alibata.training.codes.exceptions; import java.util.InputMismatchException; import … | |
Dear community, today I am facing a new problem, maybe due to a black out. I am trying to select from a table based on the results from a select statement, however, the result only contains the first few characters of the field. The main table has the field "category" … | |
Hi, I am trying to create form having field textbox. I typed a variable say $a = 10 in the textbox.What I want is to print the value of the variable. Let me know the steps. Thanks ![]() | |
Hi, I'm taking an online Python class. This is the first time I have used Python. I need Help with an assignment. For the assignment I have to **Write a program that counts the number of words and the number of characters of each word in a sentence entered by … | |
<script> function showUser(str) { if (str == "") { document.getElementById("txtHint").innerHTML = ""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState … | |
Hi, I have an access database and connected to vb.net through oledb. Am trying to filter the datagridview based on the combobox selection in the form. The combobox(emp id) is being loaded from the table called Employee. When the user selects an employee id from the combox i want the … | |
haii....i had lot of different school datas and when i want to login into the data i want to get only the specified data according to the username and password..username and password is different for different schools can you please help me thanks in advance and iam waiting for your … |
The End.