Stefano Mtangoo 455 Senior Poster

Ok i got wxwidgets but have no clue how to install help!!!

Check this Wiki entry. The best way for newbie would be using precompiled version called wxPack. Use wxDevC++. It is updated version of DevCpp and have RAD for wxWidgets.
Hope that helps!

jonsca commented: wxPack was the word I was looking for, thanks! +7
Stefano Mtangoo 455 Senior Poster

i can draw the line using the equation of the line. But, this will need to have two points. the first will always be (0,0) and the second will be a point on the edge of the square. teh question is: how can i find this point on the edge?

you just draw them as you would do in geometry. If you know geometry then either learn a GUI toolkit and use it or go for OpenGL. You must know C++ before invading OGL
Here are some links:
http://www.cprogramming.com/tutorial/opengl_introduction.html
http://www.euclideanspace.com/software/games/twod/openglcpp/index.htm

Stefano Mtangoo 455 Senior Poster

Please describe what you want to do and where you hit a wall!

Stefano Mtangoo 455 Senior Poster

I would suggest you go for wxWidgets. You can use wxPanel/wxGLCanvas to draw your stuff depending on whether OGL or just pure wxStuffs. It is not that hard to draw images on wxPanel once you are used to wxWidgets. Good tutorial to begin with is here and good support at wxForum

jonsca commented: I saw your name as having responded to the thread, and I knew immediately what you'd be posting about. :) +7
Stefano Mtangoo 455 Senior Poster

Not a software engineer but you have big project and I wonder what angle do you want suggestion!

Stefano Mtangoo 455 Senior Poster

#include<mysql.h> requires GCC 4.5.0 or above, so first thing to do is upgrade compiler.

http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110211/mingw-get-inst-20110211.exe/download

Some links in the pre-packed are broken, so check "Download latest repository catalogues" upon installation.

Warnings like "finite redefined" can be ignored.

Thanks, but now I work mainly with Linux and I use mysql_config and it works just fine!

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster
$myArray[$i]['item_size'] = $updateSize;
$myArray[$i]['item_color'] = $updateColor;

what is $i ?

Stefano Mtangoo 455 Senior Poster

Welcome!

Stefano Mtangoo 455 Senior Poster

I added that line because I was trying to create a session so when the user logs out it will destroy the session...was I headed in the wrong direction

Just use:

if(isset($_SESSION['userid'])){
Stefano Mtangoo 455 Senior Poster

Trying to patch a game exe to change the location in which it looks for some files. Any good ideas on how to go about this?

Are you doing reverse engineering?

Stefano Mtangoo 455 Senior Poster

Does user login? If yes then when user logs in query his current stats into session. Then when he adds then by clicking a form submit, just take submitted value, add to session value and update database!

Stefano Mtangoo 455 Senior Poster

What is function of this line? AFAIK it is useless!

if(session_id()==$_SESSION["userid"])

EDIT:
I would make an Authentication class and in it put method that check if user is login then do something like

if($AuthObj->isLoggedIn()){
   //user is logged in do stuffs
}else{
    //redirect user to login page or out errors
}
Stefano Mtangoo 455 Senior Poster

I cannot see what is wrong with userid yet. Ignore what I said in unedited post!

Stefano Mtangoo 455 Senior Poster

#1 - Heading is bad. Next time put meaningful heading.
#2 - that sound like your homework. Why on earth will anyone do it for you?
Summary:
Show efforts before shouting for help!

Stefano Mtangoo 455 Senior Poster

Lets say the following memory addresses hold information that I need

0xEF8921 - d
0xEF8922 - a
0xEF8923 - t
0xEF8924 - a
0xEF8925 - P
0xEF8926 - Y
0xEF8927 - .
0xEF8928 - b
0xEF8929 - a
0xEF8930 - r

How could I change it to dataVY.bar for instance in memory.

Just curious, why would you want to know exact memory address?

Stefano Mtangoo 455 Senior Poster

is this code for welcome.php? I cannot find userid anywhere in the code!
It is strange that PHP complains about something non existant!

Stefano Mtangoo 455 Senior Poster

Should be fun, did an editor for debugger before with syntax highlighting etc. Try to design everything in terms of objects, should be good learning experiance. For example create a object model for your editor and implement using classes.

Fun with massive GEdit code? Not at all! I have to retreat to complete wxWidgets solution, I will check the samples :)

Stefano Mtangoo 455 Senior Poster

Shouldn't it be

$row = mysql_num_rows($result)

instead of

$row = mysql_fetch_array($result)

That is right, he is calling mysql_fetch_array twice which is wrong!

Stefano Mtangoo 455 Senior Poster

Thank you, I think I closed all my curly braces but I a still getting an error. Do you happen to see any errors I am missing...

what is the error currently and your current code also?

Stefano Mtangoo 455 Senior Poster

-lwinmm is missing?
If only you learn to use google

mangopearapples commented: You are a genius! +1
Stefano Mtangoo 455 Senior Poster

thanks just trying to figure out how to write it up. got it thanks

All the best!

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Uh, that's why you should look at the GEdit source code.

Let me download an have a look. But I guess I will get lost since it might be massive for new bee in scintilla realm ;)

Stefano Mtangoo 455 Senior Poster

So what is the problem? Catch up the post value and change the array

if(isset($_POST['changeOptions'])){
//grab your POST value
$someValue = $_POST["SomeFormValue"];
$myArrayName = $_SESSION["cart_array"];
$myArrayName[0]["item_id"] = $someValue; 
}
Stefano Mtangoo 455 Senior Poster

I don't have any acquaintance with OGL but it seems glaux library is missing. See:
http://www.gamedev.net/topic/381093-linker-error/

Stefano Mtangoo 455 Senior Poster

it's a very simple program: payroll calculations for 5 employees. but how to do the count?

Which count anyway? It sounds as homework and it is your homework. So show us what you have done so far!

Stefano Mtangoo 455 Senior Poster

Just look at the GEdit source code.

I have never coded editor before (I mean source code editor). So I don't know what is needed. I have seen I at least need to include scintilla.h and scintillalexer.h
I wonder what scintillalexer is all about :-O

Stefano Mtangoo 455 Senior Poster

Mhh! It seems very hard to do it since I will have to reinvert the whole wheel which I dont think is funny. So I think I will have to go with wxWidgets component. Now I just need the "generic" steps in creating such editor!

Stefano Mtangoo 455 Senior Poster

Hi,
I was thinking of writing simple Code editor pad like GEdit or Notepad++ but only for PHP and SQL. Now it is for hobby, so I want to use scintilla on wxWidgets and avoid wxWidgets component (purposely). So I was asking what are steps to write such pad. Also any good tutorial will be appreciated.
Currently I'm poking scite and samples at scintilla docs
Thanks :)

Stefano Mtangoo 455 Senior Poster

Suppose your $1,000 is earning interest at 4% per year.
How many years you need to double your money?

Write a program to calculate the number of years!

You didn't indicate how you are going to pay for the answer ;)
Anyway I hope your professor is reading here so that you get big fat zero :)

Stefano Mtangoo 455 Senior Poster

And a question for you: Where is the scanner? If at user's machine then you have no choice, AFAIK, than code desktop app,. Since PHP is SSL!

Stefano Mtangoo 455 Senior Poster

I would take this advice Quoting here for you:

Unless you're willing to go knee deep into some C/C++ code, you're probably going to want to find some executable that performs the scan for you, and dumps the result into some kind of image file format that you understand.

Once you've figured all that out, try calling it from the command line, and reading back the dumped image.

Stefano Mtangoo 455 Senior Poster

Thanks,
Let me work on that and google about singleton thing.
I will mark it solved

Stefano Mtangoo 455 Senior Poster

I can't really offer advice on this as I tend to shy away from deep OOP as I don't understand it and frankly, I doubt I have the intellect to ever get to grips with it.

:)

Stefano Mtangoo 455 Senior Poster

A library system seems perfect for OOP to me.

I see!

I've been using just templaters recently (poor man's MVC).

So you suggest I use templaters than using my own?

Dir structure seems fine. I've been using RainTPL, but they've just brought out rain framework (http://www.rainframework.com/), which I haven't used.

I hope they will not kill RainTPL

I don't need the complexity. I'd say a good MVC needs bags of documentation and examples.

So you say I avoid MVC?

Singleton / Base - need more info, how complex will your project become?

Not so complex. I want to have something basic first, then I can see the possibility of making it more complex in future (In case I get spare time!)

Thanks for taking time to answer!

Stefano Mtangoo 455 Senior Poster

That is something little harder, but you can put multi-stage login, that is, one logs in using ID first and then logs in with different ID or When user logs in then you send him/her random number to second stage of loging in.

Otherwise use SSL

Stefano Mtangoo 455 Senior Poster

What exactly didn't work and what error did it spawn?

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

I'm doing a project and would like to hear your opinions.
I want to make Integrated library system and I want to have these folders

1. classes - where all classes will be stored
2. templates - where all templates will be stored
3. admin - where admin files will reside

Now is that a good organisation? if not what would you suggest? Also is MVC a good way to go for such project? If yes any good link that teaches from practical perspective? and Last one is it good to make database singleton or make it base class that all other classes that will access database extends?

Thanks buddies!

Stefano Mtangoo 455 Senior Poster

In my opinion, it is OK to close source the GPL-linked code, provided you have guts to go all the way to the Supreme Court. The open source community will be eternally thankful for cleaning up the mess.

the guts...there is where lies the problem. Go to Supreme court to fight Oracle?
And why Stallman did just that?

Stefano Mtangoo 455 Senior Poster

Well I am just a new comer to the world of linux wanting to learn it, if any one want to give me suggestion that will help me in this learning procedure I will surely accept that .

1. http://www.ubuntu.com/desktop/get-ubuntu/download
2. https://help.ubuntu.com/

Stefano Mtangoo 455 Senior Poster

echo the values of Post and see if they work then from there we can track the query.

Stefano Mtangoo 455 Senior Poster

IMO, MySQL would be better off using LGPL at least for their client-side libraries, it would be less trouble and increase their user-base.

Mike I agree 100% with you. Why on earth will they use GPL for libmysqlclient?
They would at least apply LGPL for those who just link without modification to their code.
IMHO GPL have already turned many away, who won't gamble fighting oracle in court ;)

Stefano Mtangoo 455 Senior Poster

first , i need some clarification,
what is the topic feature if that topic is locked????

and
set "is_lock" flag in your topics table in database,
then set it to 1 if it is locked, default is 0 means it is not locked.

as Shanti said, do that and then in inserting the reply check for unlocked forums. Incase the column indicates the post is locked then post back form and error message

Stefano Mtangoo 455 Senior Poster

Thanks Mike.
I think PostGreSQL need to utilize this to take over MySQL, or am I myopic?

Stefano Mtangoo 455 Senior Poster

Read more about the GPL here.

I cannot see anything dealing with source codes, only distributing it. How about linking? That is some sort of "modification", isn't it?

Stefano Mtangoo 455 Senior Poster

Thanks WaltP.
Let me take a look again at GPL and see!

Stefano Mtangoo 455 Senior Poster

If I'm not mistaken using library that is GPLed will force your app to go GPL.
Is there a way to get away with MySQL GPL licence and use it in closed source (Not necessarily commercial)? Two scenarios here:
1. libmysqlclient is linked dynamically
1. libmysqlclient is linked statically

Thanks!

Stefano Mtangoo 455 Senior Poster

Hi,

I decided to go with this one:

http://www.easyphpcontactform.com/

It's easy to install, and it works really well... It costs $9 to remove the licence but otherwise it's free...

Regards,
Ashton.

I would not buy a PHP form and consider myself a coder, unless I was a layman of course who make coders earn life ;)