394 Discussion / Question Topics

Remove Filter
Member Avatar for Stefano Mtangoo

Hi All, I have JSP and Servlet that need to "talk" to each other. Actually I need to get record from database, fill it in JSP file. I have created Servlet that does the query and gets the result. I need those results to be shown on JSP file. In …

Member Avatar for Stefano Mtangoo
0
141
Member Avatar for Stefano Mtangoo

I wonder why this does not insert data :-O [CODE=JSP] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import = "java.sql.*" %> <%--@page import = "dbfiles.*" --%> <% //VDbManager mgr = new VDbManager(); String sqlApp = "INSERT INTO application VALUES (NULL, 810, 2010-08-26, 2010-10-27, 30, \"Dummy Leave\", \"Dummy Reason \", \"Applied \")"; Class.forName("com.mysql.jdbc.Driver"); Connection …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for Stefano Mtangoo

I have recently being interested in Web security and I have some reading. I then found [URL="http://www.developertutorials.com/tutorials/php/secure-website-login-060817/page1.html"]this post[/URL], and it is great. I would like to hear what do you think is missing or what isn't necessary a.k.a overkill. It is not criticizing as such but discussing security ;)

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for Stefano Mtangoo

Hi, How do these relate and differ? I see them Used with queries but cannot understand. I'm just starting JDBC. Sorry if it is noobish ;)

Member Avatar for masijade
0
327
Member Avatar for Stefano Mtangoo

Hi all, I know many here have been working on big project and can help me on this. We will be having a project to do and we are more than 3 people. We will be working at different times and places(We are not employed developers per se Just hobbyists). …

Member Avatar for Stefano Mtangoo
1
163
Member Avatar for Stefano Mtangoo
Member Avatar for mschroeder
0
92
Member Avatar for Stefano Mtangoo

I have done a lot of PHP but never JSP. I have checked tutorial but not gone too far. I see there are Java beans and some servlets which I'm zero brain at. So I have two questions: 1. Where to read a concise tutorial (Not too detailed I mean) …

Member Avatar for Stefano Mtangoo
0
188
Member Avatar for Stefano Mtangoo

I was looking for Jump start tutorial for JSP/MySQL. I found Peter budo's sticky. Since I wanted to learn it even offline I decded to put it in word Doc. I will nice format it if I get time and make PDF out of it. However I know some might …

Member Avatar for Stefano Mtangoo
1
147
Member Avatar for Stefano Mtangoo

Hi all, I have been running errors too much that I realized that I have learned 'bad' behaviour in writting PHP query. So I decided to change. Please tell me what is good behaviour of writting queries that involve PHP variables as well as functions like one below. [CODE=php]$query = …

Member Avatar for Stefano Mtangoo
0
183
Member Avatar for Stefano Mtangoo

How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated

Member Avatar for Stefano Mtangoo
0
199
Member Avatar for Stefano Mtangoo

Hi, I need to secure my password and here are my questions. 1. What is the best method of making a salt? I have seen enough arguments for not using user info but rather random values. 2. How do I know user salt if I used random one? Should I …

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for Stefano Mtangoo

I have this question and might look stupid indeed, but bear with me. I have files in this hierrachy ProjectFolder/Panel/panel.h ProjectFolder/Panel/panel.cpp [B]AND[/B] projectFolder/Search/search.h projectFolder/Search/search.cpp I want to include search.h in panel.h I have tried many thing including [CODE=C++]#include "./search/search.h" #include "../search/search.h"[/CODE] but I have failed. Any suggestion on how to …

Member Avatar for Stefano Mtangoo
0
68
Member Avatar for Stefano Mtangoo

Hi guys, I need help with and Idea on how to do this. Basically I want to have sockets session. User logs in and the program authenticates him against DB. Having done some PHP this is not big problem. The problem is how do I maintain session. In PHP there …

Member Avatar for Stefano Mtangoo
0
71
Member Avatar for Stefano Mtangoo

What books or tutorial (online/downloadable) shall i learn to be able to make secure page? I need to know different technique and algorithms

Member Avatar for phyrtech
0
121
Member Avatar for Stefano Mtangoo

Hi, I know this is compiler thing but I just wanted to know if anyone here have ever been succesful in compiling libvorbis/libogg with MINGW. It's weeks now I cant do it! I have tried with MSYS but nope i cant get far. I wonder why these developer consider only …

Member Avatar for Stefano Mtangoo
0
469
Member Avatar for Stefano Mtangoo

I want to write C++ Class that is exported by a DLL/SO. I need my app to be x-platform so I will avoid non portables. I read somewhere I have to wrap methods in extern "C" to prevent name mangling. Is there a tutorial to make me accomplish this? I …

0
57
Member Avatar for Stefano Mtangoo

I'm reading casting functions(I wonder if this is proper name). I get difficult grasping dynamic_cast, static_cast, constant_cast and reinterpret_cast. Can anyone help me in "layman" terms differences and where we may use them? [URL="http://www.cppreference.com/wiki/start"]reference[/URL] and [URL="http://google.com"]google[/URL]

Member Avatar for Stefano Mtangoo
0
66
Member Avatar for Stefano Mtangoo

Hi all, how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++ Thanks

Member Avatar for Stefano Mtangoo
0
94
Member Avatar for Stefano Mtangoo

Hi, I need to make application that will act as server and have clients. computers with client will get permission to go to internet or not via server. Only permission to go but they will connect directly on net (not a firewall). Its some sort of internet cafe management depending …

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for Stefano Mtangoo

Hi, I'm finding generic container like vector but that can hold any variable just like a Python list. Thanks

Member Avatar for Stefano Mtangoo
0
87
Member Avatar for Stefano Mtangoo

Hi guys, I have two bushes to clear up. I have doe SQL fro some time now but I have never done blob. I think the next project will require it. So here are my Question: 1. How blob differ from any other type like text? 2. How to create …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Stefano Mtangoo

What are rules to observer when writting More than one class in single Java file. Let say three classes on the same file Thansk

Member Avatar for kvprajapati
0
139
Member Avatar for Stefano Mtangoo

Hi All, I want to parse simple XML file and I was looking if there is C++ standard library classes for doing that. IF no what are good yet simple XML C++ third party libraries? Thanks

Member Avatar for Stefano Mtangoo
0
402
Member Avatar for Stefano Mtangoo

It might be a basic question, but bear with me as google didnt help. I want to create awrapper for cmd.exe that is more comfortable in terms of user interface (I enjoy a lot Konsole in *nix). Right now I have no Idea how to hook to cmd.exe and get …

Member Avatar for Stefano Mtangoo
0
775
Member Avatar for Stefano Mtangoo

Hello people, I have two classes everyone with private data. I want only one function from each class to access private data from another class. I have checked "friend" function but It needs the class object as an argument. That is making things complicated on my side and I have …

Member Avatar for sheff_cc
0
1K
Member Avatar for Stefano Mtangoo

Sorry guys, I know it is not C++ specific, but Wikipedia confused me. I have devoted a little time to look at programing tools and little on their innner workings. This term have boggled my mind. So any explanation on what this animal is? Thanks

Member Avatar for Stefano Mtangoo
0
85
Member Avatar for Stefano Mtangoo

One day, my Java friend asked me if there are threads with PHP. I didn't knew and I have to poke around net and manual only to find none. enough of useless words. Here my question goes. Is it possible to create abstract class with virtual and pure virtual functions …

Member Avatar for whiteyoh
0
103
Member Avatar for Stefano Mtangoo

I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How …

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for Stefano Mtangoo

What are your thought on this? There are many framework there and my thought was CakePHP is rather popular. I'm I wrong? What do you think?

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for Stefano Mtangoo

Hi, I would Like to access the Linux desktop from windows PC. I don't want to use SSH console for I need immediately (Have no time for learning for now). TRied VNC, but I cannot access it from Windows. I'm stucked! I can Access my windows machine from Linux with …

Member Avatar for Stefano Mtangoo
0
121
Member Avatar for Stefano Mtangoo

Hi, I have used a lot of makefiles to compile programs. The issue is, I don't know how to produce make file. Is it another "language" I have to learn or some automatic issue? Also what is short yet clea tutorial on that? Thanks

Member Avatar for jonsca
0
98
Member Avatar for Stefano Mtangoo

Is this possible? Any tutorial if possible? I want to make a program to do mass conversion of my Icons without loosing resolution

Member Avatar for Stefano Mtangoo
0
850
Member Avatar for Stefano Mtangoo

Hi all, I have been looking for single function to split strings and seems to me either is not available or I miss it. So I please, help me to know if it is available and if yes where can I get it. Thanks

Member Avatar for jBat
0
96
Member Avatar for Stefano Mtangoo

Hi All, what is method to get all availabled disk drives and their status. By status I mean whether they are hard disk or CD/DVD or USB? Also how to get list of Drives in *nix? Thanks a lot

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for Stefano Mtangoo

Hi all, I have been poking wx document and also google but i havent prevailed. All I need is to get all drives C, D, E etc just like my computer is. What is the trick? Thanks

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for Stefano Mtangoo

Hi I want to make form dynamically by just passing array of stuffs. I have tried but cannot may be due to my limitation in PHP. Here is what I have so far. Please help me! [CODE=php] class MyForm{ private $formArray; //pass array to build a form in form of …

Member Avatar for Stefano Mtangoo
0
116
Member Avatar for Stefano Mtangoo

Hello guys I want to make little application to convert png files to xpm I wonder what is the easiest approach! Load the image in DC and save as xpm? or what? Thanks!

Member Avatar for Stefano Mtangoo
0
79
Member Avatar for Stefano Mtangoo

Hi all, Just curious. If I want to write a library to play almost all common audio formats, what do I need to know? an it should be cross platform. I want to implement in C++ library like bass. But that will be possible only if I will be ready …

0
71
Member Avatar for Stefano Mtangoo

Hi All, Till now I haven't done any serious debugging (Jump to line, blah blah). What I have done so far is read error and try to decode. Now I want to use variables form stack etc. In WingIDE/Python I will click on stack and see variables and what they …

Member Avatar for Stefano Mtangoo
0
228
Member Avatar for Stefano Mtangoo

I plan to make Java image viewer I just started today and I had hard time with GridBagSizer After long time of pain it turned to be fruitful. Here is what I have so far. I want the following, of which I have failed: 1. Make the components fill the …

Member Avatar for Stefano Mtangoo
0
89
Member Avatar for Stefano Mtangoo

I already Know Ancient Dragon is fan of MSVS due to its debugging features and I use C::B because it is the only I have come to love after failing to love both VS Express and Codelite. So what do you love to use when it come to C/C++? Just …

Member Avatar for VilePlecenta
0
232
Member Avatar for Stefano Mtangoo

I was sitting Idle and I decided to write simple image viewer to try myself on DC/Canvas but I didn't find any tutorial to guide me as I have never done that before. Here there are some restriction and I cannot view showme do. So anyone to help me with …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for Stefano Mtangoo

As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want …

Member Avatar for vjimatjijoro
0
583
Member Avatar for Stefano Mtangoo

This is not seek for IDE thread but rather want just to know your beloved IDE. For Me, up to recently I used Eclipse but now I'm trying IntelliJ Idea community. Not very used to it but looks promising. What about you friend?

Member Avatar for jwenting
0
151
Member Avatar for Stefano Mtangoo

till now I have never done anything dealing with exceptions. Now I have to deal with exception. Basically I have function below which I want to wrap in try/exception. I want to connect to database and if database connection failed then it should catch exception that will do some stuffs …

Member Avatar for Stefano Mtangoo
0
96
Member Avatar for Stefano Mtangoo

Hi All, I use at work Rflection X to access Server Running on Solaris 10. There are applications running there so what we do is just connect to that using IP address. Then comes login windows and starts GUI I can login to commandline via putty but cannot start the …

Member Avatar for Stefano Mtangoo
0
788
Member Avatar for Stefano Mtangoo
Member Avatar for Stefano Mtangoo

What is free solution available. I need to do two things: 1. Connect at machine in same office. I cannot use RDP as it is KDE Mandriva machine. 2. Connect fro home to that machine without VPN i.e over internet Thanks

Member Avatar for necrolin
0
123
Member Avatar for Stefano Mtangoo

I have to do reinstallation due to virii destruction in this laptop. I need to slipstream Drivers to this installation. Where to get SATA drivers so that the HDD will be recognized? Currently XP CD SP3 Doen't recognize the drive. Is there another trick?

Member Avatar for Stefano Mtangoo
0
143
Member Avatar for Stefano Mtangoo

/home/stefa/Projects/C++/evstevemd/Additions.h|7|error: expected class-name before ‘{’ token| /home/stefa/Projects/C++/evstevemd/Additions.h|9|error: expected ‘)’ before ‘parent’| ||=== Build finished: 2 errors, 0 warnings ===| Here is the file. Cpp file is empty. There is something wrong with My class and inheritance knowledge. What is wrong? thanks [CODE=C++]#ifndef ADDITIONS_H #define ADDITIONS_H #include <wx/panel.h> #include <wx/notebook.h> class …

Member Avatar for Stefano Mtangoo
0
783

The End.