1,730 Posted Topics

Member Avatar for Stefano Mtangoo

Hi guys, I have been away Python for long now. I need to brush with small project that will be downloading images from give url. I give url and it crawls through all pages in give location and its subfolders and download image. Now two challenges: 1. Crawl through all …

Member Avatar for Tech B
0
199
Member Avatar for RisTar

What IDE do you use? Netbeans will do a lot of help for you plus Ctrl+Space will save you alot of typo pains :)

Member Avatar for almostbob
0
216
Member Avatar for Imani

[url]http://www.aut.ac.nz/study-at-aut/study-areas/computing--mathematical-sciences/learning-environment/links/statistics-resources/project-ideas[/url] [url]http://topprojects.blogspot.com/[/url] [url]http://en.wikipedia.org/wiki/Schools_and_universities_project[/url] [url]http://www.msse.umn.edu/capstone/ideas[/url] Anyway did you know just using eyes and your powerful brain can see problem or weakness in existing project and formulate something? Sit and think

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for mindbend

Ask one question at a time my friend. You have asked too many question I cannot follow. Would you just post code that is relevant to question. In JSP project there is web-inf/libs put your custom libraries like JDBC drivers there. I will suggest you start with checking if you …

Member Avatar for Stefano Mtangoo
0
167
Member Avatar for ticktock

Create Media Player with GUI These are hinted classes. Expand/reduce them as you wish [B]GUI Class[/B] Methods: CreateToolBar, CreateMenu, LoadConfig [B]FileClass[/B] Methods: LoadFile, LoadFolder, LoadPlayList...et al [B]PlayerClass[/B] Methods: LoadMedia, Play, Pause, Stop, FForward, et al You can in future even implement that in Java/C++/Python or whatever language

Member Avatar for Stefano Mtangoo
0
6K
Member Avatar for Stefano Mtangoo

Hi buddies, I need to pass data among servlets and I find it very hard. What I have so far is passing it via session variable but that crashes my app now and then and seem to be bad approach. How do you transfer data among servlets without crashing the …

Member Avatar for Stefano Mtangoo
0
79
Member Avatar for CobRalf

I don't know pyGame, but I think it would be better off using GUI oriented Toolkits, something like wxWidgets or QT or GTK. I'm not sure if pyGame is that much capable.

Member Avatar for CobRalf
0
768
Member Avatar for Stefano Mtangoo

I was infected by Mabezat virus/worm. I have managed to remove infection and have succeeded. However it have left my firewall and Automatic update disabled. It have also removed searchbox (See attached Image). Please suggest the way out. I cannot even Install Comodo firewall:(

Member Avatar for Stefano Mtangoo
0
126
Member Avatar for newbeejava

How do you do it? [URL="http://www.javascript-examples.com/javascript-calendars/"]Check this[/URL]

Member Avatar for Stefano Mtangoo
0
129
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 pauloludele
Member Avatar for peter_budo
0
154
Member Avatar for muralibobby2015
Member Avatar for mrnutty
0
86
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 slo

Can you give process how it starts and how it ends? Booting from where to Black screen?

Member Avatar for Stefano Mtangoo
0
99
Member Avatar for jasonpclaire

Hi, Here are simple procedure to make it happen 1. Connect to server [CODE=php] $host = "localhost"; $username = "root"; $password = "mypass"; $mydb = "testdb"; $connx = mysql_connect($host, $username, $password) or die("Cannot connect to server <br />".mysql_error()); [/CODE] 2. select dabase (Like commandline USE) [CODE=php]mysql_select_db("$mydb") or die("Cannot select databaese …

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for snippsat

I heard that it supports wxPython but I haven't seen that! I use wxFB version 3.0 and have only C++ features. I love wxFB and Their inheritance philosohpy is really vanilla on cake ;)

Member Avatar for joetraff
2
923
Member Avatar for Hakoo

Try this [CODE=JSP] RequestDispatcher dispatcher = req.getRequestDispatcher("./Somehwhere/history.jsp"); if(dispatcher!=null){ //redirect to history page dispatcher.forward(req, resp); } else{ //redirect to error page out.print("Sorry, redirection failed"); } [/CODE]

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for jhbalaji

Here is beautifully simplified solution but it is "either or". I mean [B]either [/B]you persevere and resolve your problem [B]or[/B] you are out :) Here it goes: [URL="http://www.w3schools.com/php/default.asp"]learn quickly PHP[/URL] via this link [URL="http://www.tizag.com/mysqlTutorial/"]Learn MySQL[/URL] via this one Come back and use [URL="http://davidwalsh.name/gmail-php-imap"]this information[/URL] to solve your problem If you …

Member Avatar for jhbalaji
0
246
Member Avatar for lola_fcis
Re: GUI

You forgot to add [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/actionlistener.html"]ActionListerner[/URL]? It connects GUI code to actual actions :)

Member Avatar for Stefano Mtangoo
0
77
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 indu_ss4

[CODE=JSP] HttpSession session = request.getSession(); if(session==null){ RequestDispatcher rd = context.getRequestDispatcher("/demo/inner.jsp"); rd.forward(request,response); } [/CODE] Cooked from different google links and untested. Try it and see. I'm not JSP maverick either

Member Avatar for indu_ss4
0
3K
Member Avatar for atullalit91

[QUOTE=mrcniceguy;1215488] I JUST CHECKED THE LINE 29,AND PUT SOMETHING LIKE THIS <?PHP. [/QUOTE] Well you forgot to write PHP start tag. Next time you post question, put the error message as well

Member Avatar for rajarajan2017
0
140
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 leegeorg07

[QUOTE=JRM;1215522]Are you aware that PHP also has a DOM class? check it out here: [url]http://us3.php.net/manual/en/book.dom.php[/url][/QUOTE] Kidding? That is for XML parsing J! :) I thought PHP wanted JS out of business but then how could Server side things be done on Client. @leegeorg07 , I would suggest you learn JQuery. …

Member Avatar for leegeorg07
0
6K
Member Avatar for zyaday

I'm new to JSp but wouldn't tag begin with <% instead of <c:? [CODE=JSP] <% if(sessionScope.qCounter == 0){ <!--............do your stuff.....--> } else{ <!--.................do your stuff .........--> } %> [/CODE]

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for samira.mahamo

Good explanations from [URL="http://www.phpbuilder.com/board/archive/index.php/t-10100599.html"]this post[/URL] [QUOTE="Anon"]PHP cannot easily control the client's browser, except indirectly by generating Javascript which does. The "problem" is that PHP's work is finished once it generates the page to be sent to the browser. PHP is run on the server, Javascript, as it is normally encountered, …

Member Avatar for Stefano Mtangoo
0
100
Member Avatar for ziyakhan10
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 Illidanek
Member Avatar for Stefano Mtangoo
0
353
Member Avatar for Stefano Mtangoo
Member Avatar for mschroeder
0
92
Member Avatar for furqan219

Very possible! when user clicks generate button, you collect the checkboxed things and calculate whatever you calculate and dynamically creating a table as pointed in last image

Member Avatar for diafol
0
80
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 daino

If/Else will evaluate only bools. Switch will evaluate integers in whatever form they come from. Jonsca have given solid examples. BTW have you passed [URL="www.cprogramming.com/tutorial.html"]this [/URL]tutorial and [URL="http://www.cplusplus.com/doc/tutorial/"]this [/URL]one?

Member Avatar for Stefano Mtangoo
0
233
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 nats01282

Go for your own if you are capable and if site is not too complex. It will work EXACTLY as you want. You can also do changes as you wish. The loss is however advantage of ready made, well secured and rich feature CMS. However it is worthy it after …

Member Avatar for samarudge
0
122
Member Avatar for python.noob

[QUOTE=pythopian;1055978]Not all IDE's support code completion well. Of all IDE's I've tried, I found PyDev and Eric4 work best in this respect.[/QUOTE] Have you checked Wing IDE yet? Eric is most of the time associated with PyQT. It is made by It!

Member Avatar for MikaelHalen
0
1K
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 gunnarflax
Member Avatar for yznk

[QUOTE=yznk;1193726]Alright thanks. i put a global variable of int ndeps; [/QUOTE] I would avoid global thing and instead I would declare a variable and initialize it in each class' constructor [CODE=C++]class Object{ public: Object(){ this->ndeps = 5; } private: int ndeps; }; class Graph{ public: Graph(){ this->ndeps = 5; } …

Member Avatar for Stefano Mtangoo
0
192
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 satimis

I second(third...) C++ I will also advice you use wxWidgets if you want GUI (and yes some graphics) and it have basic sound (like wav). Go for libmad for mp3 playing, vorbis, flac et al for advanced thing. If it is free/open source consider bass library. I have once done …

Member Avatar for Stefano Mtangoo
0
132
Member Avatar for muralibobby2015
Member Avatar for cwarn23
0
96
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 yahooak

Get [URL="http://codelite.org"]Codelite [/URL]or [URL="http://codebloecks.org"]Codeblocks [/URL]or MS VC Xpress and there you dump your beloved TC in trash can or put it in embacadero museum. If you want GUI for windows only go and learn W32API but for X-platform my votes goes for excellent [URL="http://wxwidgets.org"]wxWidgets[/URL]

Member Avatar for Stefano Mtangoo
0
108
Member Avatar for SoulMazer

I don't know what you are doing but in C++ version you should write no GUI functionality on secondary thread. All GUI issues should Go to primary one and others to secondary.

Member Avatar for SoulMazer
0
832
Member Avatar for systemsbiology

You seem to be finding something like Jython Jython is Python implementation of Java. I dont know Java so... I haven't looked Jython [url]www.jython.org[/url]

Member Avatar for ~s.o.s~
0
981
Member Avatar for Axel_Carvalho

[QUOTE=Axel_Carvalho;1174715]The problem is solved. The thing was that I tried to pass a few arguments to the [B]write[/B] method (I treated it the same way as [B]print[/B]).[/QUOTE] Strange it worked! The function have no return value. What are output to the file? Can you post new code?

Member Avatar for Axel_Carvalho
0
132
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 jozz3

[QUOTE=jozz3;1174521]No error but no output either[/QUOTE] And it means file is empty, especially if you opened with write option

Member Avatar for Gribouillis
0
141

The End.