Forum Replies Created

SapnaVishwas Member

why would you do a join on the same table i’m assuming the id and username are both in the same row if that is not the case your user table needs to be redesigned but you could easily get all data from the table including id and username in one query by doing

SELECT * FROM users WHERE ID = {ID}

and depending on what you using to query (please don’t say mysql_*) just fetch it as an object or assoc and you’ll have all the data in one query.

SapnaVishwas Member

More easier way to handle this would be to do

echo htmlentities($yourCode);
in reply to: ArrayList in JAVA
SapnaVishwas Member

Also it isn’t necessary to create a variable just to store the list size.
Why not just compare i with particle_list.size(); ?

But as stated you need to use the .get() method.

SapnaVishwas Member

Because you cant separate the 2 form as state as above,
to make it works with a simple way without using javascript,
merge the 2 form above so all form details can be submitted together.
besides, I suggest using of input type=”submit” if you want to have a submit button,
it is much better than input type=”button” with javascript

Don’t forget querySelectorAll when using multiple elements…








Step 1: Choose your donation amount








Step 2: Choose your donation reward

Vol. I Package ($10 value) A print copy of Volume I (shipping charges not included)
Vol. II Package ($10 value) A print copy of (shipping charges not included)
Vol. III Package ($10 value) A print copy of Volume III (shipping charges not included)
Vol. I Package + Vol. I Poster ($15 value) A print copy of Volume I with a 11x17 Poster of Volume I Source Art (shipping charges not included)
Vol. II Package + Vol. II Poster ($15 value) A print copy of Volume II with a 11x17 Poster of Volume II Source (shipping charges not included)
Vol. III Package + Vol. III Poster ($15 value) A print copy of Volume II with a 11x17 Poster of Volume III (shipping charges not included)
Complete Package ($50 value) Print copies of Volume I, II and III with 11x17 Posters of Volume I, II, III, and IV Source Art (shipping charges not included)
Poster Package ($20 value) 11x17 Posters of Volume I, II, III, and IV Source Art

SapnaVishwas Member

This is possibly the biggest limitation of Java, yet in the same respect a strength oddly. The Java Runtime Environment, or Java Virtual Machine, or whatever you want to call it is required to run any code written in Java – compiled or not. The JRE is what allows “write once, run anywhere”; cross platform compatibility. But like me, and many others, it obviously didn’t become apparent until you realized that Java would be a requirement… I was just enticed by the words “cross-platform”. This fact is one of the reasons that I’ll be rewriting my software in C# and Objective C when I get chance.

Anyway, if you use Launch4J you can ‘convert’ your JAR file(s) to an executable and also ‘bundle’ a JRE with it. However, all ‘bundling’ does is tell the executable to look for a JRE in a relative directory; so essentially you would just be carrying the JRE around with you program. To me, it makes more sense just to tell people they need Java because a lot of people already have it, and an increasing amount of people would object to using Java. So rather than forcing a JRE on people, or loading one on a machine that already has it you should give people options. You could even use something like InnoSetup to create an installer that offers to automatically download and install Java if it is not on the machine.

I noticed that you’ve said PC specifically, but if you wanted to deploy your program for Mac, I’ve found this to be a good place to start:

http://www.centerkey.com/mac/java/

There are actually compilers out there that claim to convert your Java applications to native executables, but I’ve never had any experience because they don’t tend to like GUIs. They’re picky to say the least, and I think you’ll only have limited success in this area, but you might like to check the following link anyway or do a quick search for “java to native”.

http://paranoid-engineering.blogspot.co.uk/2010/03/compiling-java-applications-to-native.html

SapnaVishwas Member

PHP in itself is a very powerful programming language I think; perhaps even more so than ASP.NET. This is because it’s a weak-typed language and feels very flexible to work with. The only thing I really lack though in it is a solid “base” as it were, I mentioned the IDE earlier – and thecodingdude kindly pointed me at VS.php – but it still doesn’t have a framework like .NET. If this were to change – and perhaps things like Code Igniter is one such, I’ve no experience with it – I think I’d be much more likely to do more in PHP. I’m mainly missing a RAD component..

SapnaVishwas Member
PHP is widely used, even facebook is using PHP. This means it is already tested for mass use and easy to maintain.

Just because something is widely used or by somebody popular doesn’t mean that it’s something you should use…

I think (or hope) the OP meant ASP.NET, not ASP Wink

You are comparing apples to oranges.

How do you mean? Both are used for web-development, so both are apples, I think.

SapnaVishwas Member

Yes. However, I have a Windows Server server box myself, and as I’m a big fan of .NET I really like ASP.NET as well. What I feel PHP lacks – and .NET provides – is a set framework for RAD. Whenever I’m doing anything in PHP, it feels like a huge repetitive grind rather than I’m actually developing something.

Perhaps one could argue CodeIgniter is one such frameworks, but I can’t say it is comparable to .NET, whatever Java offers or even std for C/C++.

in reply to: PHP login script help
SapnaVishwas Member

How misleading, you never included that code to begin with! Like trying to debug the impossible.

Anyway, you’re saying if the session key “loggedIn” is not set, that redirect back to the login page. Clearly if this is causing the issue, that session variable isn’t being set.

In your code you have:

$_SESSION['loggedin'] = "true";

observe that in the post above me:

$_SESSION["loggedIn"]
in reply to: PHP login script help
SapnaVishwas Member

Could it be due to the non space between the class and name fields?

SapnaVishwas Member

In a game genre like that, you will have to get a real team. Which is the hardest part of the whole process if you ask me.

Or maybe try to join a game making community and join in one of the existing dev teams. Not sure where you can find such a community (I mean where people are actually serious about it). Or try to get into a game making company. Or something like that But that’s not going to be easy either.

Another thing you could try is to join a forum software development team, like phpBB, MyBB, etc. I’m sure they are always looking for people to help out… Well, the developers of the free ones for sure. Not sure about the others, though.

SapnaVishwas Member

Its not that they are fundamentally wrong, its that they are slow. You can get much farther reading a book on, lets say C++, than you can watching his 10-13 minute videos.

Also he isn’t “simplifying” things, he is dumbing them down. Explaining complex concepts simply is useful. Dumbing them down isn’t. What makes it worse is sometimes he can’t even explain what he is making.

I could go on, but I wont. I don’t want to start a fight. All I’m trying to say is that there are better options when trying to learn a programming language.

SapnaVishwas Member

If you want to remove all the core files from a particular directory structure, you could do:

find  -name core -exec rm {} \;

for example, to remove all core files under /usr/lib, you could use:

find /usr/lib -name core -exec rm {} \; 
SapnaVishwas Member

Codecademy, the open source university courses, and Learn Code the Hard Way are all awesome starting points. Depending on the language and goals you want to pursue, you might also try:

Interactive Javascript, Python and Ruby –

http://www.learnstreet.com/lessons/languages/

Interactive Ruby Course –

http://rubymonk.com/

Codealong with tutorials for Ruby on Rails –

http://www.codelearn.org/rails-tutorials

A cool game-like interactive Ruby practice (probably better to take this on after you have a sense of if else, loops, etc) –

https://www.bloc.io/ruby-warrior#/
https://www.udacity.com

Harvard course on computer science, you won’t get any credit by completing it since its ended already, but they teach everything very very well!

https://www.edx.org/courses/HarvardX/CS50x/2012/info

follow the CoderDojo movement? Many of the tutorials they use for kids are online on

http://kata.coderdojo.com

And anyone who thinks they know about coding, you should volunteer to mentor the kids at an event near you – you’ll soon find the holes in your knowledge and you’ll find the list of local dojos at

http://www.coderdojo.com

+1 for Code Academy.
Lots of respect for

http://www.tutorialspoint.com/index.htm

and major props for

http://learncodethehardway.org/

which is like boot camp vs. hand holding type of teaching in some other courses.

Read books and practice, that is the only way to learn coding. For the proper books just go to amazon.com and look through the programming books they have and read reviews for them.

SapnaVishwas Member

There are so many variables in the GET request. Depending on how it is implemented on your main page, you should only be getting that 1 ID passed on. At the moment, it looks like everything is in the request.

Viewing 15 posts - 61 through 75 (of 156 total)
en_USEnglish