with my hint above modulo operation is unnecessary!
:)
ZlapX commented: sucks balls +0
MosaicFuneral commented: Beg bumping. -1
kvprajapati commented: Don't offend. +0
with my hint above modulo operation is unnecessary!
:)
I get the same error
Traceback (most recent call last):
File "test.py", line 13, in <module>
import wx
File "/usr/local/lib/python3.3/dist-packages/wx/__init__.py", line 17, in <module>
from wx.core import *
File "/usr/local/lib/python3.3/dist-packages/wx/core.py", line 6, in <module>
from ._core import *
ImportError: No module named 'wx._core'
Have you tried it in Linux?
I know its in alpha but at least it should be usable ;)
html pages can't display php unless you stipulate this in .htaccess. Change .html to .php and it should work (if your code is OK).
I just tested code blow and it didn't work!
<html>
<head> </head>
<body>
<?php echo "It works!"; ?>
</body>
<html>
adding this line in htaccess file worked:
AddType application/x-httpd-php .html .htm
I have to do most of my project in jsp since the teacher that coordinates my project teaches jsp at my university but he said that i can also use php to make some smaller projects and atach them to the main one. And php is faster to work with for this purpose. I am looking for guidance and/or answers from someone who has done server configs before and is familiar with apache worker procese.
No Don't do that. You will make it more complex. Just do all things in either JSP and Servlets or PHP. Don't mix the two beasts
My problem is getting php to work on tomcat not sql. Sql works just fine.
Why would you want to do that?
Tomcat works with MySQL without Apache. Apache and Tomcats are servers doing similar joby utilizing different technology.
So Install Tomcat and then install MySQL server and use JDBC to connect to MySQL
So? What have you done for your homework?
Remember it is YOUR homework.
I found VB Somehow confusing to me as beginner (Check my first posts), and I moved on with Python and PHP and then C++. I think the only confusing points is when you come to pointers. They are somehow confusing but the other stuffs are somehow simpler.
Many says VB is easy, are referring to GUI drag and drop. But that is even available in C++ using libraries (wxWidgets with Dialog blocks or wxSmith or wxFormbuilder: QT with QTCreator: GTKmm with libglade et al)
So I hope it is not that harder ;)
Windows has won psychological war against Linux.
I use wxWidgets and I encourage you to visit their home page and get the flavour. There is also very responsive forum and wonderful community!
In other words, it will loop over all values of y for all values of x, so the inner loop y runs x times.
+1 for clarification
I hope I'm right ;)
int* myPointer;
mypointer = new myPointer[10];
how do you install other stuffs like VLC media ?
But If I write hello world program and run it, all goes well. Also eclipse complains there is ''Syntax error on token ";" , { expected after this token"
So what is that? As far as I can see, all is fine.
Hi,
I have done this code to learn ArrayList. I keep getting errors. Basically I want to accumulate names in list and when user types 'n' at prompt, it prints out names. What is wrong?
package mtangoo;
import java.util.ArrayList;
import java.util.Scanner;
public class MainClass {
public static void main(String args[]){
Listed jobject = new Listed();
}
Listed lst = new Listed();
}
class Listed{
Scanner getValues = new Scanner(System.in);
ArrayList<String> peopleList = new ArrayList<String>();
//looping
while (true){
System.out.println("Please Enter the Name:");
String name = getValues.nextLine();
peopleList.add(name);
System.out.println("Continue? y/n");
if(getValues.nextLine()=="n"){
break;
}//endif
else{
continue;
}
}
//loop finished
for(int i = 0; i<peopleList.size();i++){
System.out.println(peopleList.get(i));
}
}
changed to ckeditor which allowed me to use two different textareas
Now I will be able to get both inputs.
Also it have nice image uploader as ibrowser have some issues of deprecated eregi() function
Thanks alot for the help!
Hi All,
I'm starting learning Java and I need online tutorial.
I have benefited a lot from site www.zetcode.com and I would like to have summarized and "well-for-beginner" tutorial. Many of Java tutorials I find are a bit confusing to newbie like me.
I'm not new to programming (a lot of Python, little of C++)
Thanks for your help :)
Hi all,
When you add integer ID primary key auto increment, it automatically makes ID for you. But I was pondering on what happens after deleting a record. Does the server automatically adjust all IDs for you or it remains un assigned?
For example, I have inserted as follows
+------------+-------------+
| 1 | Orange |
|-------------+-------------+
| 2 | Banana |
|-------------+-------------+
| 3 | Mango |
|-------------+-------------+
If I delete Banana, what happens to ID no 2
Please help me as I'm just diving in DLL issues
Cheers :)
I have this DLL code, but I cannot access function.
Where am I wrong?
main.h
#ifndef __MAIN_H__
#define __MAIN_H__
#include <windows.h>
/* To use this exported function of dll, include this header
* in your project.
*/
#ifdef BUILD_DLL
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C"
{
#endif
//simple functions are being exported
EXPORT_DLL double Addition(double a, double b);
EXPORT_DLL double Multiplication(double a, double b);
#ifdef __cplusplus
}
#endif
#endif // __MAIN_H__
main.cpp
#include "main.h"
//add them and return the answer
double DLL_EXPORT Addition(double a, double b)
{
double c = a+b;
return c;
}
//multiply them and return the answer
double DLL_EXPORT Multiplication(double a, double b)
{
double c = a*b;
return c;
}
And here is the console App that calls the DLL
#include <iostream>
#include <windows.h>
typedef double(*FuncPtr)(double a, double b);
//declare DLL handle
HINSTANCE hDLL;
//declare pointers to the functions
FuncPtr AddFunc, MultiFunc;
using namespace std;
int main()
{
//create handle to our DLL
hDLL = LoadLibrary("mathdll");
//Get proc address if handle is valid
if (hDLL!=NULL)
{
cout<<"Loaded DLL! \n"<<"Getting Proc Address"<<endl;
AddFunc = (FuncPtr)GetProcAddress(hDLL, "Addition");
if(AddFunc)
{
cout<<"Sum of 8 and 2 is: "<<AddFunc(8.0, 2.0);
FreeLibrary(hDLL);
}
else
{
cout<<"Failed to get a function! Unloading the DLL"<<endl;
FreeLibrary(hDLL);
}
}
return 0;
}
Delete that file and re-copy and paste.
That is VeRy StRaNgE huh! :)
May be taking it to "computer mental hospital" can help recognize what is wrong ...........hehehe :)