64,152 Solved Topics
Remove Filter ![]() | |
I'm getting this -> [Tue Sep 10 10:42:46 2013] [error] [client 127.0.0.1] PHP Warning: SQLite3::exec(): unable to open database file in /var/www/ET/insert.php on line 21, referer: http://localhost/ET/ I changed the owner of the DB file (et.sqlite3) to www-data and now this is what I'm getting. Before I changed the owner … | |
Hi, there. I have a 2D array with 208. I must concatenate the strings by twos up to index 199. So that I have 108 strings. Then I must shuffling these 108 strings. The problem is that it isn't working right. After I concatenate the strings, then shuffle, several strings … | |
As I've learned more about basic console Python script writing, I've had a look at both Tkinter and GTK+...and, at first glance, I like GTK+ better. Which do you guys prefer, and why? | |
I am trying to refactor some code that selects a category from a database and then displays the listing on a website. Basicly it looks like this: if($_GET['category'] == 'All') { $results = mysql_query("SELECT * FROM members ORDER BY company ASC"); } elseif($_GET['category'] == 'Alterations') { $results = mysql_query('SELECT * … | |
![]() | Hi, I have a quick, and what seems like very stupid question. I have a list of files in a directory with various extensions. I want to open only the ones with the extension '.txt'. I have got as far as finding them (and can print their filenames to a … |
protected Boolean loginMember() { SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdLogin; conLogin.Open(); cmdLogin = new SqlCommand("SELECT Username, Password FROM Member WHERE (UserName=@ID AND Password=@Pass)", conLogin); cmdLogin.Parameters.AddWithValue("@ID", txtID.Text); cmdLogin.Parameters.AddWithValue("@Pass", txtPassword.Text); SqlDataReader myReader = cmdLogin.ExecuteReader(); if (myReader.Read()) return true; else return false; } When i execute the login button will fire this … | |
![]() | hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); … |
PFA...!! **Please look at the table data carefully.** I need to delete the rows. I need urgent help..!! Table: CREATE TABLE IF NOT EXISTS `version` ( `nidt` varchar(11) NOT NULL, `noeud` tinyint(3) NOT NULL, `VERSION` float NOT NULL, `ETAT_FONCT` varchar(20) default NULL, `idnap` varchar(25) NOT NULL, `nidtint` bigint(20) NOT NULL … | |
I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance? | |
Hi friends, i am using older version of hibernate jar files. I have little bit confusion between the older version and new version of jar files can you provide me the list of latest version of hibernate jar files thanks for your time | |
Hi, Any Help, I need guide/way on how to get Image from JLabel and set it to JTextArea in netbeans when a button is clicked. I have 3 Object: (1) Jlabel(with an imported picture in it) (2) JTextArea(to store the picture when Button is clicked) (3)A button I tried using … | |
protected void RegistrationMember(object sender, WizardNavigationEventArgs e) { TextBox txtID = (TextBox)cuwRegistration.FindControl("UserName"); TextBox txtPass = (TextBox)cuwRegistration.FindControl("Password"); TextBox txtEmail = (TextBox)cuwRegistration.FindControl("Email"); TextBox txtQuestion = (TextBox)cuwRegistration.FindControl("Question"); TextBox txtAnswer = (TextBox)cuwRegistration.FindControl("Answer"); SqlConnection conRegister = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdRegister; conRegister.Open(); cmdRegister = new SqlCommand("INSERT INTO [Member](UserName, Password, Email, Question, Answer) VALUES (@ID, @Pass, @Email, @Ques, … | |
If I am right, your web browser sends a request to the server, the server in turn loads the page and send it to you. But the server can also request other information of your computer without you knowing it, like the type of browser you are running, your time, … | |
I would like to take an image file on disk and display it to fit the size of a jlabel (preserve aspect ratio) the image can vary in size from 100x100 to 1600x1200 and the size of the jlabel is 256x192 (can change it only slightly if need be.) I … | |
# Server Error in '/' Application. # # The resource cannot be found. # # Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that … | |
protected void SetDestinationURL(object sender, EventArgs e) { if (loginMember()) Response.Redirect("~/Member/Home.aspx"); else if (loginManager()) Response.Redirect("~/Manager/Home.aspx"); else Response.Write("<script language=javascript>alert('Unauthorized User Access')</script>"); } protected Boolean loginMember() { TextBox txtID = lgLogin.FindControl("UserName") as TextBox; TextBox txtPass = lgLogin.FindControl("Password") as TextBox; SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdLogin; cmdLogin = new SqlCommand("SELECT UserName, Password FROM … | |
hi guys !!! i want to make an web browser in python , as my college project . what i'm looking for is guidance , on how to make it and which module's shall i use . currently i'm planning to use webkit and gtk+ to obtain my goal. secondly … | |
I have an input file with integers, I am obviously doing something wrong here, When I try to print the elements from the array, the integers are printing as 0's, and not even for the same amount. In the file there are 20 integers. mport java.io.*; import java.util.Scanner; import java.util.Arrays; … | |
Hey guys, I've been working on this program and basically I've debugged everything and it all works fine on my computer BUT! I tried to take it to another computer to run it and it says "Program has stopped working". I don't get it. I've got all the fiels in … | |
hey anybody know how to filter contents in ReportViewer during 'run-time'? somebody told me to read this [U][url]http://msdn.microsoft.com/en-us/library/ms252125%28v=vs.80%29.aspx[/url][/U] but this doesn't help at all because it filters contents in design time. What I need is to filter contents in 'run-time'. thanks in advance :?: | |
Hello, I write the following javascript codes. <script> $(document).ready(function(){ $("input").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("input").blur(function(){ $(this).css("background-color","#f5f5f5"); }); $("textarea").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("textarea").blur(function(){ $(this).css("background-color","#f5f5f5"); }); }); </script> Only to put the effect on <div id="carticle3">, not on other input form, such as the navigation search input box. How to write the javascript code so … | |
Hi, this is my first post, and I'm in need of some help making an application that saves the data from a textbox to an access database. This is my code, it gives no errors, but when I use it, ie, I input the text in the textbox and click … | |
Hi everyone, I am trying to write and application that will display a smiley face with a gray background and yellow face. This is what I have so far but it won't run. Can you please help me and show me how to get the application running? Thank you in … | |
I require some help. I want to resize my form from the Corner (Right corner) in the boderless form. I know the coding as for resize it with the four different direction but unknown with the Corners. Codes I used to resize the Form from four different direction (up,down,right,left): Private … | |
Hi Am working on a project and this time i want the use to choose whether or not to show the splash screen. If the user choose NOT to show a NO is registered in a hidden XML file which tell the program not to show the splash screen when … | |
I am attempting to recompile a C program i programmed on linux. These are the errors i recieve: c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2275: 'FILE' : illegal use of this type as an expression c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(66) : see declaration of 'FILE' c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2065: 'sy' : undeclared identifier c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(29): error … | |
Hi, I have a little problem with reading data from text file which has more than 5000 words. To make long story short, I need to make english to serbian translator.It has to have 2 text boxes,one for english word and one translation; one button for translating. I tried almost … | |
I have a problem to get result from mysql. I want this average result when i have for example two reviews: food: 5.0 prices: 5.0 lodging: 6.2 but i got this results separatly instead: food: 8.0 prices: 6.0 lodging: 3.0 food: 2.0 prices: 4.0 lodging: 10.0 and i cant figure … | |
Hello, I have this calculator program that compiles and runs just fine, but my loop will not break as intendend too, when I hit 5 it it still runs the options to enter a number, here is my code: import java.util.Scanner; public class calculator { public static void main(String[] args) … | |
Hello friends, i am having a trouble, and the server is throwing me this: *Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object hasn't 'Sdt_coleccionretornoitemsagrupacion' property in /var/www/sitios/webservices/Diego.php:129 Stack trace: #0 /var/www/sitios/webservices/Diego.php(129): SoapClient->__soapCall('Execute', Array) #1 {main} thrown in /var/www/sitios/webservices/Diego.php on line 129 * I have this code: echo 'SEGUNDO XML------------------------------' … | |
Hi, Getting some strange behaviour when using Interop to create a Word document from a template. I'm using word to generate a nicely formatted and printable Receipt from Sage 200 based on a Word Template. The code should open Word then create a new document based on the template I … | |
Hello Folks, I have an ASP.Net 2.0 web application which was successfully debugged, published, uploaded and tested on IIS server. But the problem is, I can access this application on my localhost only but when I am trying to access this from some other machine which is also in the … | |
Hey guys, I don't really understand the usage of the get/Set/return keywords. get-Read Only set-Write Only(eh) return-Returns value to calling method Those are the definitions I have but can I have a small explanation on when to use these and how to use the get/set thank you very much. | |
Group, I've got 1000 questions regarding this "Rocket" (Unidata) database, but I digress. To give you some background, I do have some experience with SQL, but nothing with Unidata. But given what I've read, I can't believe it is that much different from SQL, aside from the command syntax (I … | |
I want to get Exam Guide for MS 70-480 (online exam).Please reply me.Which books must I study? | |
Hi, i am looking to go into game programming and would love for it to go into a career, i have already started learning Java through YouTube and i am enjoying learning the language. However, im starting to see the light and thinking maybe i should start learning C++ before … | |
Hi, How can I add ul and li tag and add `<span class="subDropdown plus"></span>` before sub category `<ul>` called? ? my database: ID,CatName,ParentID This is the output I expected: <ul> <li><a href="#">Car Accessories</a></li> <li><a href="#">Clothing & Shoes</a> <span class="subDropdown plus"></span> <ul> <li><a href="#">Shoes</a></li> <li><a href="#">Sndals</a></li> <li><a href="#">Dresses</a></li> <li><a href="#">Jeans</a></li> </ul> … | |
Hi everyone I am learning python, I came across a sample program which checks whether the given number is prime number or is not a prime number using **for loop** and **range()** function. I can't understand that program, can someone please help me understand it? Here is the program and … | |
Good day folks, Can anyone tell me why my code only accept the first word of the input. E.g., I input Ana mae.. The output will only consider Ana as my input hence it will produce like Hello, Ana! #include <iostream> #include <string> using namespace std; int main() { string … | |
How do I use htmlspecialchars to escape all html but then allow two tags? I've escaped my text but want to allow the following two tags: img iframe Is there an easy way to do this? I never had a class on php so everything I know is self taught. … ![]() | |
This is my program for a notepad! I am getting error at the part where I'm trying to extract the text from another .txt file!! I used the method realLine() but it only reads one line!! I want to know what other methods can I use here to extract the … | |
Hello, I'm attempting a calculator program, but I keep getting cannot find symbol errors, I believe I called everything I needed and initialized the variables, I do not know what's wrong. Here is the code: import java.util.Scanner; import java.io.*; public class Calculator { public static void main(String[] args) { do … | |
I run this program but it does not assign the value of or 3 to s, instead before running it gave the sintax error unassigned local variable 's' private void button1_Click(object sender, EventArgs e) { int i, y, s; i = 8; y = 6; if (i == 6) { … | |
Since the underlying data-structure used here is an array , which is itself iterable via `for-each()` , i'm wondering how much benefit implementing `Iterable` will provide here. I would appreciate if someone could review my code and suggest any further improvements. **Code:** import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class ResizingCircularArray<E> … | |
I am completely new to Triggers but I hear they can help me with a specific problem. I have a table: picid picture recordListingID 1 danny.jpg 0 2 jane.jpg 0 3 ralph.jpg 0 In the recordListingID column (int) i would like to generate numbers sequentially upon an INSERT. Is it … | |
In the following small c++ program I'm trying to add '0' (zero characters) until the number of characters in the users input can be evenly divided by 3. I'v got it working except that it doesn't work when only on character is feed to the program. input -> 123 -> … | |
I am trying to make a save feature in a game so that a player could save, then quit the game, then open the window again to select proflie and play from when they left off. Thanks!! | |
Hi, How can I use modulus to add TR tag for my output below? <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> In the example above got 2 set of … | |
Dear All! I have an ASP.net page , and my page is supportted in two language , english and arabic . when user click on arabic , i want to make my all text right align. Regards |
The End.