199,114 Archived Topics
Remove Filter ![]() | |
I have the simplest code possible to upload a file using php and it only doesnt work using mozilla firefox. The server responds: 'Bad Request Your browser sent a request that this server could not understand.' This is the code(2 files): upload_file0.php <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> … | |
Hello Guys, I was performing text file reading and writting operations and the job looked very simple as usual, yet it has not been solved successfully. We have got a simple text file **final.txt** which contains data like this:- **05/18/2012 02:12:66 8HRY hjhruehr737243 YES NO u34gewryge 698** i.e each value … | |
Are there any libraries out there that allow me to play .avi files within my OpenGL application? | |
Suppose I need to have a regex expression (using Perl regex) that, say, matches a*b\q as simple text and does not interpret a* as any number of a's. I know it is simple here, but I need it to work for ANY string of characters. | |
#include <iostream> #include <vector> #include <iterator> using namespace std; class members { private: int Age; int Money; public: void setAge(int age) {Age=age;} void setMoney(int money) {Money=money;} int getAge()const {return Age;} int getMoney()const {return Money;} members(int age=0,int money=0): Age(age),Money(money) {} }; int main() { vector<members>v_members; for(size_t i=0,z=0;i<10;++i,++z) { if(z!=5) { v_members.push_back(members(50,70)); … | |
I can't tell why this piece of code wont work, but another one which I wrote does because they look exactly the same to me. Please tell me if you can see what the difference is because I cannot. I tried using the code snippet thing, but it doesn't let … | |
package newsatranc; import java.awt.BorderLayout; import java.awt.Color; import java.awt.ComponentOrientation; import java.awt.Cursor; import java.awt.GridLayout; import java.awt.event.InputEvent; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.TreeMap; import javax.imageio.ImageIO; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JToolBar; import java.awt.Dimension; public class NewSatranc extends JFrame { private static … | |
hi there guys i have no experience doing jave code so i am wondering if you can help with something i have been told to do a register code (the class register) for a game with windows pop in and out during the fill in blanks like name, surname, id … | |
We have requirement to write simple xml in string format from listed dictionaries iterating through list and iterating through each dictionarie and write xml format (i.e. dict key is xml key and dict value is dict value ex:- <First_name>James</First_name> ), if the value contains dictionary again we need to loop … | |
Hey! I'm trying to get mail(imap) from google by oauth authorization . I have got the authorization to work, but I can not retrieve the emails. As I understand it should be posible. But Google does not have any api to retrieve mail(?). I found the following: https://developers.google.com/google-apps/gmail/oauth_overview That says: … | |
When i compile my code with visual studio 2010 express i get the following errors: 'Client.exe': Unloaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL' And with the other program i get these: 'Server.exe': Loaded 'C:\Users\User\Desktop\Server\Debug\Server.exe', Symbols loaded. 'Server.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'Server.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB … | |
![]() | I need some ideas for the python text based game i am making, it looks like this so far: from time import sleep import sys #Functions set at start of code def helpme1(): for a in 'Recognised commands are: explore, help, suicide, flee, look, get,open door, run and attack. With … |
Hello, im a bit new to c++ and learning in my own, but im stuck to a problem. Im trying to do a practice converting string/c-string to int : Sum of Digits in a String Write a program that asks the user to enter a series of single digit numbers … | |
Hi, I've written the below code as part of a University assignment, it compiled ok in Eclipse but returns the `<identifier> expected` error when compiling via the command line. The error appears on lines 7, 8, 12, 13 and 20. Could anyone shed any light on why i'm getting it … | |
Could someone tell me how to extract the right most single digit from a number without knowing the length of the number? 123 I need the 3 386485 I need the 5 etc... Seems it should be simple, but been searching for over an hour and can't find the resolution... … | |
Suppose i have a class that implements an interface, the interface is not implementing anything currently. This class and interface are bundled together in the same java program. So i have another program, and through a dependency i want to get that information from that class i spoke of in … | |
Why do i have to include stdafx.h everytime in visual C++ 2010 express. Evertime i make a project i have to include that damn header, whats so special about it and how can i avoid including it and still compile my program. I have tried to leave it out but … | |
Hi, I have to seperate C# projects! Project 1 and project 2 Project 1 contains form1 and project 2 contains form2. What I did is, I have merged these two projects solution. And I have created a button in form1, which when clicked opens form2 from project2. When I compile … | |
how can i save multiple record in single click using user define data type in SQL i am having problem in selecting the value in gridview using checkbox here my code View // View LAyer protected void imgbtnSave_Click(object sender, EventArgs e) { DataTable dtTable = new DataTable(); DataRow dtRow = … | |
Small part of my code: `GetWindowThreadProcessId(hWnd, &dwID);` `hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwID);` `string value =" [_this] exec \"\\newfolder\\scripts\\start.sqf\"";` `WriteProcessMemory(hProcess, (LPVOID) 0x09BA3F95, (LPVOID) &value, sizeof(&value), NULL);` I am 100 % sure it has to do with my `value` being a `string` but I haven't found anything helpful elsewhere, even though I've … | |
I am attempting to create a script which checks to see if the user has a warning level of less than 3. Basicaly, I want to automatically deny any account which has a Warning Level (stored in the Database) of 3 or more from logging in but whenever I attempt … | |
Hi all, how to hide process in the taskmanager of windows 7 in vb.net? How to hide any process in windows 7 using vb.net. If you have any solution then please give me the links or urls related to such task. Thanks, Jayawant | |
Hi there, I have made a spell checker in PHP which does spell checking by splitting the words by space, checks wheather the word is spelled correctly from a database dictionary, if not, It shows some suggestions when a user clicks on it and also highllights the wrong spelled word... … | |
hello, I use a script I found on this site [Click Here](http://www.html-form-guide.com). I don't think the htmlentities check work and I don't know what's wrong. the .php file for the registration starts with <?PHP require_once("./include/membersite_config.php"); if(isset($_POST['submitted'])) { if($fgmembersite->RegisterUser()) { $fgmembersite->RedirectToURL("thank-you.php"); } } ?> and the user registration form starts with … | |
I have problems with adding images to JFrame java application. Now I am using Eclipse IDE. Below is the code that no images is shown. import java.awt.BorderLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JFrame; public class LabelDemo { public static void main(String[] args) { JLabel northLabel = new JLabel("North"); ImageIcon labelIcon … | |
Hi guys, I have an issue with the code I've written in C# where the listview will connect to the database without a problem but it will only populate the 1st row of the table BUT.... it will duplicate it for the exact amount of records I am expecting to … | |
Hi there, I am trying to combline results form a query into one variable/string without drastically changing the sites current code. Bacically I have been trying to add **rs2("name")** for each record into one string. For example, say the customer has "item1", "item2", and "item3" in their basket, well I … | |
hi i am new to developing apps i have created a simple hello world app now i am just trying to create another simple app as follows: i would like a background preferably a picture, also i want a hyperlink so when clicked it takes the user to that website … | |
` import java.io.*; class Mobile { public static void main(String args[])throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); double a;b=0; System.out.println("Enter ICCID or Sim No."); a=double.parsedouble(in.readLine()); if(a=89912507111140687941) b=7277526804; else if(a=89915241100005705108) b=8084698160; else if(a=89912507111140687958) b=7277526805; else if(a=89912502113154600856) b=9852994726; else if(a=89912502113154600989) b=9852999686; else b=121 system.out.println("Your Mobile Number "+b); } } ` | |
i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it … | |
Hi, I have a requirement to convert a unsigned int 32 value to a IP address dotted format. Can this be done using a C function? Requirement: Eg: Input value = 3232235691 i.e 11000000 10101000 00000000 10101011 Converted to LAN Ip - 192.168.0.171 Please help.(Newbie to C programming) | |
Hi guys, I'm new the this forum where I'm hoping to get some friendly advice for a bit-of-a-newbie C# programmer. I've been through 2 differnt beginners courses on the code so now i'm ready to get my hands in the code! I'm currently having a problem with loading all data … | |
Hi! In my program MFC Doc/view one view constantly displaying what the camera is "seeing". After some event I want to show in the other window - dialog the image that has been in the view in the moment of event. I have code in Dialog window that succesfully draws … | |
I am using Notepad++ and I have just been investigating using the Workspace. If I want to create a new file in the workspace I either have to manually locate the actual working folder and create the new file -- or I can use the Notepad++ Explorer to create the … | |
I have this error in atlimage.h line 1568 while trying to save picture. In release mode everything is "fine" but no new file appears. Here is the code: CClientDC dc(this); CDC dcMem; CBitmap m_bmpBack; GetClientRect(&rc); hBmp = LoadImage(NULL,name,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); GetObject ( hBmp, sizeof(bm), &bm ); m_bmpBack.Attach(hBmp); dcMem.CreateCompatibleDC(&dc); hbmpOld = (HBITMAP)dcMem.SelectObject(m_bmpBack); //hToSave … | |
**Hi guys** I’m new to this site and i really need a professional help out here. I am trying to make a search form in my page and basically i can search my database already but i need to revised the code because the process of my **search form depends … | |
Hi, I'm writing a database for a computer shop and need some examples to look at. (It's not for a real shop, just a little project of mine) Where Can I find some templates for Access Database templates for a business like this? | |
I need to modify the following program to store person objects instead of integers. Include a function to input person data from the keyboard in the person class (similar to the readRecord() function). Also add a non class function to display the list contents. Include a separate search function (search … | |
Hi everybody, What is the problem in this code,loop does not working . layout page display loop. i need 12 columns. in page layout. plz help me. <div class="planbooks"> <b><?php echo date(" 'F 'y") ?></b> <?php $i=0; foreach ($planbooks as $planbook): ?> for($i = 0; $i <=15; $i++) { if(!($i … | |
CONFIG_FILE="${HOME}/sample/seq.cfg" count=`awk 'END {print NR}' $CONFIG_FILE` echo $count t=1 while [ "$t" -le "$count" ] do output_var=`awk -v v1=$t '$1 ~ /v1/ { print $1 }' $CONFIG_FILE` input_var=`awk -v v1=$t '$1 ~ /v1/ { print $3 }' $CONFIG_FILE` echo "O=" $output_var echo "I=" $input_var done the above code is giving … | |
Hy all, I wan't to ask, how to update jdk in netbeans..?? i have netbeans 7.0.1 and jdk 1.6 in the netbeans but i want to update it to jdk 1.7 help me... | |
Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if … | |
i have a form in html. when user hit sumbit. i want to run top php code. when i run it it give me 2 errors Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134 Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134 … | |
Hey everyone, I haven't been on here in a while and I have probably a stupid error somewhere but anyway, I have three files: one is a php(header) file and the other is a css file linked into the index page. I think I've coded the php and I'm pretty … | |
I have a listbox that has a context menu that goes with it. The context menu has 3 options on it following the basic "Create new...", "Edit selected..." and "Remove selected..." style. The rule is that at least one item must be in the listbox at all times, the user … | |
Hey guys I have a new problem. I am using mysql as my database. I want to get the sum of an amount between 2 dates heres my code for mysql: select sum(amount) from orderline group by orderlinedate between 'Datehere' and 'Datehere'; But my problem is how do i get … | |
Hi im creating a linked list with these data types etc string firstname string surname int age would anyone give a simple instruction to put these in a new node as i have tried everything but still doesnt work so far i have done this nodeType *first,*newNode, *last; cout<<"Name: "; … | |
The title might sound confusing, so here is what I want to do: I am currently working on a school project, and I have to make a rock, paper, scissors game. I am almost done and only need one more thing. I have two methods (bigWinner and finalResult) In method … | |
I think this is the first actual discussion thread of code on a coder's website I've actually ever seen, and I'm the one posting it. (HA!) So basically; I got bored and found a website called Project Euler. It has a bunch of "mathematical" problems to solve. Eight pages and … | |
I am working on condensing my code for a project. Is there a way to print multiple primative types of arrays with the same method? I know you can with using "Object" but these are primative. Should I change them to Integer, Double, Boolean, etc and do it that way? … |
The End.