• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:11
CEST 17:11
KST 00:11
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins Maestros of the Game 238ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7
Community News
BSL Season 22 Full Overview & Conclusion5BSL Season 22 Full Overview & Conclusion5Weekly Cups (June 29-July 5): Solar Doubles0MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon445.0.16 Hotfix (June 30) - Balance + Bug Fixes40
StarCraft 2
General
What is your PC setup in 2026 for SCBW/SC2 ? Most successful SC2 players of Q2 2026 Serral wins Maestros of the Game 2 MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon Is the larve respawn broken?
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event GSL CK #5 Race War HomeStory Cup 29 Vespene Cup #1 — $300+ USD, July 10 Sea Duckling Open (Global, Bronze-Diamond)
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
Mutation # 533 Die Together The PondCast: SC2 News & Results Mutation # 532 Nuclear Family Mutation # 531 Experimental Artillery
Brood War
General
ASL 22 Proposed Map Pool ASL22 General Discussion BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ BSL Season 22 Full Overview & Conclusion
Tourneys
[ASL22] Wildcard Qualifier [Megathread] Daily Proleagues IPSL Spring 2026 Top 4! CSLAN 4 is Coming!
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies
Other Games
General Games
General RTS Discussion Thread Summer Games Done Quick 2026! Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread TL Mafia Power Rank Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! Series you have seen recently...
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Tennis[sport] Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
FPS when play League Of Legend on laptop How to clean a TTe Thermaltake keyboard? Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Major Shifts in the Gaming I…
TrAiDoS
An Exploration of th…
waywardstrategy
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4505 users

The Big Programming Thread - Page 369

Forum Index > General Forum
Post a Reply
Prev 1 367 368 369 370 371 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Abominous
Profile Joined March 2013
Croatia1625 Posts
October 07 2013 17:24 GMT
#7361
On October 07 2013 10:46 NB wrote:
hmmm, i signed up for the machine learning one of the Stanford prof. Are you sure its lighter bc thats the reason why i signed up . I dont think i will need knowledge from that field for my current project but I might as well try it out.

Professor Ng breaks it down for you very well so you won't be needing more than highschool mathematics, he might use some more "complicated" mathemathical symbols and methods (they really aren't complicated, you might find them so, I really don't know anything about your education level) but he stresses out very often that you shouldn't be afraid of such things and he always breaks them down very, very well, to a point where's its becoming a bit to tedious hehe.


I hope you find the course entertaining!
3FFA
Profile Blog Joined February 2010
United States3931 Posts
October 07 2013 20:26 GMT
#7362
Ok I've started CS 184.1x: Foundations of Computer Graphics. Under the username FFA. With C, Obj. C, and Java experience I should theoretically have no problem learning C++
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
October 07 2013 20:27 GMT
#7363
On October 08 2013 02:24 Abominous wrote:
Show nested quote +
On October 07 2013 10:46 NB wrote:
hmmm, i signed up for the machine learning one of the Stanford prof. Are you sure its lighter bc thats the reason why i signed up . I dont think i will need knowledge from that field for my current project but I might as well try it out.

Professor Ng breaks it down for you very well so you won't be needing more than highschool mathematics, he might use some more "complicated" mathemathical symbols and methods (they really aren't complicated, you might find them so, I really don't know anything about your education level) but he stresses out very often that you shouldn't be afraid of such things and he always breaks them down very, very well, to a point where's its becoming a bit to tedious hehe.


I hope you find the course entertaining!

Oh im not worried bc i have pretty decent math cs background, Im just afraid the course load might be a bit too heavy for me to complete it with a good grade. Im taking a quick look at the Graphic homeworks in the other course so far and there will be a lot of code reading that ima have to goes through. Plus i dont wana rely on wolfram to do all my matrixes so I probably need like a week of concentrating review on 1st year algebra T_T

Unrelated note: spent my entire morning trying to make a basic input system for a simple test game. Turns out C++ doesnt support event handling I googled and people said i should try SFML or SDL. Anyone here experienced with both and tell me whats the differences between the 2?
Im daed. Follow me @TL_NB
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
October 07 2013 20:45 GMT
#7364
--- Nuked ---
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
Last Edited: 2013-10-07 21:38:30
October 07 2013 21:20 GMT
#7365
On October 07 2013 12:39 goody153 wrote:
hi everyone,

i am not really good and just an noob-to-okish programmer .. i wanted to try game development on android .. do you guys have any advice for me ?

and also what language should i be learning ? what are the most important topics i should focus on ? from what i know java is used in making android but thats all i know for now ..

i already made games out of applet using java and also a game web-based using javascript .. so i have a little bit of experience and idea how ..

oh dont quote me on this bc i dont have a lot of on hand experience in android app making.I looked into it in the past as well as having my roommate's gf working in Twitter's android apps department.

Here is a few things:
1/ Compatibility is a big issue for android. Each devices has their own attribute and you have to accommodate for all of them. It is advised that you should start with making apps for apple devices since they are more uniformed.

2/ For mobile devices in general, java, ruby on rails and basic knowledge about html/css and even a bit of SQL are needed. Most smartphone apps has interaction with web and database(loading ads or google store for example)....

3/ Experience android devices yourselves. Bluestack is a good emulator for android on window that im using. Nexus 4 and Nexus 7 are dirt cheap that you could get your hand on. The Android apps market is unexplored and dirt poor of good apps if you compare it to Apple's store. And there is a good reason for that: its easier to make apple apps and people who use apple devices are more likely to pay for apps.

4/ Lastly, for gaming in mobile device in general, just keep in mind that the input system sucks ass. Unless you are making a very simple game and expecting to make graphic your selling point, then you gona have to spend a lot of design time into the input interaction.

On October 08 2013 05:45 Nesserev wrote:
Don't have any direct experience with either one of them, but I've used the pygame library for python before, and if I remember correctly, pygame is an implementation of SDL as a Python library, and I must say that it was fun to work with. Of course it's not really the same, but if I were you, I'd just pick one and try it out.

like right now I have a text based command line minesweeper right? I just wana write a basic up-down-left-right cursor(not mouse) control instead of entering the coordinates manually. So that will involve a basic infinite loop do{}while(1) that constantly redraw the game. What i need is something that read the input value on keypress, not keypress+Enter and I really hate using additional library.

edit: gota it sorta work with sfml.... really rough though >.>
Im daed. Follow me @TL_NB
tec27
Profile Blog Joined June 2004
United States3702 Posts
October 08 2013 04:19 GMT
#7366
On October 08 2013 06:20 NB wrote:
Show nested quote +
On October 07 2013 12:39 goody153 wrote:
hi everyone,

i am not really good and just an noob-to-okish programmer .. i wanted to try game development on android .. do you guys have any advice for me ?

and also what language should i be learning ? what are the most important topics i should focus on ? from what i know java is used in making android but thats all i know for now ..

i already made games out of applet using java and also a game web-based using javascript .. so i have a little bit of experience and idea how ..

oh dont quote me on this bc i dont have a lot of on hand experience in android app making.I looked into it in the past as well as having my roommate's gf working in Twitter's android apps department.

Here is a few things:
1/ Compatibility is a big issue for android. Each devices has their own attribute and you have to accommodate for all of them. It is advised that you should start with making apps for apple devices since they are more uniformed.

2/ For mobile devices in general, java, ruby on rails and basic knowledge about html/css and even a bit of SQL are needed. Most smartphone apps has interaction with web and database(loading ads or google store for example)....

3/ Experience android devices yourselves. Bluestack is a good emulator for android on window that im using. Nexus 4 and Nexus 7 are dirt cheap that you could get your hand on. The Android apps market is unexplored and dirt poor of good apps if you compare it to Apple's store. And there is a good reason for that: its easier to make apple apps and people who use apple devices are more likely to pay for apps.

4/ Lastly, for gaming in mobile device in general, just keep in mind that the input system sucks ass. Unless you are making a very simple game and expecting to make graphic your selling point, then you gona have to spend a lot of design time into the input interaction.

Your advice is basically all bad.

1) Android devices are certainly less uniform than Apple devices, but its not that hard to make an app that looks decent across a large part of the population. While the market is fragmented, there are a few devices that take up the lion's share of the market. Namely, the Samsung flagships (S2, S3, S4, Note 2, Note 3) and Nexus devices. Android also has good mechanisms for scaling layouts and resources across device sizes and resolutions, so if you stick to best practices (like specifying sizes in DPs, etc.), its not a problem. Its certainly not a reason to avoid the platform altogether and work on iOS apps. The major pain point is working with Gingerbread and below, but if you're just developing apps as a hobby you can just choose a higher minimum version and sidestep the problem completely.

2) Ruby on Rails? What the fuck does that have to do with Android? Java is the only really necessary piece here. SQL knowledge can be a nice to have, depending on how much data you are going to be storing and what your persistence requirements are. Android has its own layout and style system that's written in XML. Its *somewhat* similar to HTML, but not really. Overall its fairly easy to get started with. Depending on what your app is doing, you may want to develop an API server that your app can talk to, but you can write this in whatever language you damn well please. Or you could use something like Parse to make your life easier.

3) Using something like Bluestacks is a bad idea if you're using it to develop your app and trying to test it on hardware that you don't actually have. That sort of software targets running apps on a PC, not simulating actual hardware interactions. Use the actual emulator that's provided with Android, it works fine and is actually targeted at developers. But overall, developing on an emulator will be mostly frustrating, so buy a cheap Android device or two and use those for your day-to-day work, only going to the emulator when you absolutely need to.

4) Completely game/application type dependent. Obviously you should design applications that work well on the devices they run on.

To reply to you directly, goody:
- Learn Java
- Learn OpenGL ES 2.0 (if you have more JS experience than Java, you could play around with WebGL in the browser, which has the same API)
- Check out the Android developers traininig site: http://developer.android.com/training/index.html
Can you jam with the console cowboys in cyberspace?
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
October 08 2013 06:09 GMT
#7367
you are completely right. I might have got a lot of stuff confused and outdated information about the android field. There is one thing i notice though: a lot of "popular games" on android are actually web-based. The app is sole used to launch the URL and pass over some user data to the browser. I feel cheated whenever i download a game like that .

Im daed. Follow me @TL_NB
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
October 08 2013 06:46 GMT
#7368
On October 08 2013 06:20 NB wrote:
like right now I have a text based command line minesweeper right? I just wana write a basic up-down-left-right cursor(not mouse) control instead of entering the coordinates manually. So that will involve a basic infinite loop do{}while(1) that constantly redraw the game. What i need is something that read the input value on keypress, not keypress+Enter and I really hate using additional library.

edit: gota it sorta work with sfml.... really rough though >.>

SFML is actually surprisingly easy to work with in my opinion. It's not quite as simple as SDL, but it's also far more powerful. Implementing keyboard input should be no problem at all, the Keyboard class is spot on.
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
October 08 2013 07:55 GMT
#7369
On October 08 2013 13:19 tec27 wrote:
Show nested quote +
On October 08 2013 06:20 NB wrote:
On October 07 2013 12:39 goody153 wrote:
hi everyone,

i am not really good and just an noob-to-okish programmer .. i wanted to try game development on android .. do you guys have any advice for me ?

and also what language should i be learning ? what are the most important topics i should focus on ? from what i know java is used in making android but thats all i know for now ..

i already made games out of applet using java and also a game web-based using javascript .. so i have a little bit of experience and idea how ..

oh dont quote me on this bc i dont have a lot of on hand experience in android app making.I looked into it in the past as well as having my roommate's gf working in Twitter's android apps department.

Here is a few things:
1/ Compatibility is a big issue for android. Each devices has their own attribute and you have to accommodate for all of them. It is advised that you should start with making apps for apple devices since they are more uniformed.

2/ For mobile devices in general, java, ruby on rails and basic knowledge about html/css and even a bit of SQL are needed. Most smartphone apps has interaction with web and database(loading ads or google store for example)....

3/ Experience android devices yourselves. Bluestack is a good emulator for android on window that im using. Nexus 4 and Nexus 7 are dirt cheap that you could get your hand on. The Android apps market is unexplored and dirt poor of good apps if you compare it to Apple's store. And there is a good reason for that: its easier to make apple apps and people who use apple devices are more likely to pay for apps.

4/ Lastly, for gaming in mobile device in general, just keep in mind that the input system sucks ass. Unless you are making a very simple game and expecting to make graphic your selling point, then you gona have to spend a lot of design time into the input interaction.

Your advice is basically all bad.

1) Android devices are certainly less uniform than Apple devices, but its not that hard to make an app that looks decent across a large part of the population. While the market is fragmented, there are a few devices that take up the lion's share of the market. Namely, the Samsung flagships (S2, S3, S4, Note 2, Note 3) and Nexus devices. Android also has good mechanisms for scaling layouts and resources across device sizes and resolutions, so if you stick to best practices (like specifying sizes in DPs, etc.), its not a problem. Its certainly not a reason to avoid the platform altogether and work on iOS apps. The major pain point is working with Gingerbread and below, but if you're just developing apps as a hobby you can just choose a higher minimum version and sidestep the problem completely.

2) Ruby on Rails? What the fuck does that have to do with Android? Java is the only really necessary piece here. SQL knowledge can be a nice to have, depending on how much data you are going to be storing and what your persistence requirements are. Android has its own layout and style system that's written in XML. Its *somewhat* similar to HTML, but not really. Overall its fairly easy to get started with. Depending on what your app is doing, you may want to develop an API server that your app can talk to, but you can write this in whatever language you damn well please. Or you could use something like Parse to make your life easier.

3) Using something like Bluestacks is a bad idea if you're using it to develop your app and trying to test it on hardware that you don't actually have. That sort of software targets running apps on a PC, not simulating actual hardware interactions. Use the actual emulator that's provided with Android, it works fine and is actually targeted at developers. But overall, developing on an emulator will be mostly frustrating, so buy a cheap Android device or two and use those for your day-to-day work, only going to the emulator when you absolutely need to.

4) Completely game/application type dependent. Obviously you should design applications that work well on the devices they run on.

To reply to you directly, goody:
- Learn Java
- Learn OpenGL ES 2.0 (if you have more JS experience than Java, you could play around with WebGL in the browser, which has the same API)
- Check out the Android developers traininig site: http://developer.android.com/training/index.html


Ruby can be used with Android apps if you use Titanium, also a lot of mobile APIs use Rails so maybe that's where he got it from.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
goody153
Profile Blog Joined April 2013
44280 Posts
October 08 2013 09:32 GMT
#7370
On October 08 2013 13:19 tec27 wrote:
Show nested quote +
On October 08 2013 06:20 NB wrote:
On October 07 2013 12:39 goody153 wrote:
hi everyone,

i am not really good and just an noob-to-okish programmer .. i wanted to try game development on android .. do you guys have any advice for me ?

and also what language should i be learning ? what are the most important topics i should focus on ? from what i know java is used in making android but thats all i know for now ..

i already made games out of applet using java and also a game web-based using javascript .. so i have a little bit of experience and idea how ..

oh dont quote me on this bc i dont have a lot of on hand experience in android app making.I looked into it in the past as well as having my roommate's gf working in Twitter's android apps department.

Here is a few things:
1/ Compatibility is a big issue for android. Each devices has their own attribute and you have to accommodate for all of them. It is advised that you should start with making apps for apple devices since they are more uniformed.

2/ For mobile devices in general, java, ruby on rails and basic knowledge about html/css and even a bit of SQL are needed. Most smartphone apps has interaction with web and database(loading ads or google store for example)....

3/ Experience android devices yourselves. Bluestack is a good emulator for android on window that im using. Nexus 4 and Nexus 7 are dirt cheap that you could get your hand on. The Android apps market is unexplored and dirt poor of good apps if you compare it to Apple's store. And there is a good reason for that: its easier to make apple apps and people who use apple devices are more likely to pay for apps.

4/ Lastly, for gaming in mobile device in general, just keep in mind that the input system sucks ass. Unless you are making a very simple game and expecting to make graphic your selling point, then you gona have to spend a lot of design time into the input interaction.

Your advice is basically all bad.

1) Android devices are certainly less uniform than Apple devices, but its not that hard to make an app that looks decent across a large part of the population. While the market is fragmented, there are a few devices that take up the lion's share of the market. Namely, the Samsung flagships (S2, S3, S4, Note 2, Note 3) and Nexus devices. Android also has good mechanisms for scaling layouts and resources across device sizes and resolutions, so if you stick to best practices (like specifying sizes in DPs, etc.), its not a problem. Its certainly not a reason to avoid the platform altogether and work on iOS apps. The major pain point is working with Gingerbread and below, but if you're just developing apps as a hobby you can just choose a higher minimum version and sidestep the problem completely.

2) Ruby on Rails? What the fuck does that have to do with Android? Java is the only really necessary piece here. SQL knowledge can be a nice to have, depending on how much data you are going to be storing and what your persistence requirements are. Android has its own layout and style system that's written in XML. Its *somewhat* similar to HTML, but not really. Overall its fairly easy to get started with. Depending on what your app is doing, you may want to develop an API server that your app can talk to, but you can write this in whatever language you damn well please. Or you could use something like Parse to make your life easier.

3) Using something like Bluestacks is a bad idea if you're using it to develop your app and trying to test it on hardware that you don't actually have. That sort of software targets running apps on a PC, not simulating actual hardware interactions. Use the actual emulator that's provided with Android, it works fine and is actually targeted at developers. But overall, developing on an emulator will be mostly frustrating, so buy a cheap Android device or two and use those for your day-to-day work, only going to the emulator when you absolutely need to.

4) Completely game/application type dependent. Obviously you should design applications that work well on the devices they run on.

To reply to you directly, goody:
- Learn Java
- Learn OpenGL ES 2.0 (if you have more JS experience than Java, you could play around with WebGL in the browser, which has the same API)
- Check out the Android developers traininig site: http://developer.android.com/training/index.html


i am more knowledgeable in java than in JS .. one more thing i wanted to ask .. aside from OpenGL ES 2.0 or WebGL ..any other library that is easier to use and integrate unto the android program later ? since i am just making a Tower Defense game its really emphasized on the graphics much ..

and also i have been doing sort of research .. what version of android should i work on ? some told me to work on lower versions like 2.0 to 2.5 ... somewhere around that

and in the database part of the development .. would my knowledge on php help on that matter ? or its a separate thing

anyways thanks for the great advice tec27
this is a quote
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
October 08 2013 10:04 GMT
#7371
https://github.com/LaurentGomila/SFML/wiki/Tutorials

not rly android or java but it has really nice guides on basic game design.
Im daed. Follow me @TL_NB
goody153
Profile Blog Joined April 2013
44280 Posts
October 08 2013 10:46 GMT
#7372
On October 08 2013 19:04 NB wrote:
https://github.com/LaurentGomila/SFML/wiki/Tutorials

not rly android or java but it has really nice guides on basic game design.


thanks .. does this include graphics design for game development ? so far the games i created looked like shit with just the basics of the PL i used
this is a quote
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
October 08 2013 12:35 GMT
#7373
On October 08 2013 19:46 goody153 wrote:
Show nested quote +
On October 08 2013 19:04 NB wrote:
https://github.com/LaurentGomila/SFML/wiki/Tutorials

not rly android or java but it has really nice guides on basic game design.


thanks .. does this include graphics design for game development ? so far the games i created looked like shit with just the basics of the PL i used

SFML is just a library for working with graphics, it doesn't teach you design. SFML lets you work with open GL directly, or through a simple interface, but this is all just about how to get vertices to the graphics card and let it print them to screen. It won't teach you how to make good looking particle effects, how to paint a texture and anything like that.
Fawkes
Profile Blog Joined May 2010
Canada1935 Posts
October 08 2013 13:55 GMT
#7374
Not to hijack your conversation or anything, but I've been stuck on this php/javascript issue for the past week and I haven't gotten anywhere. Wondered if anyone would have any ideas on what I could do.

+ Show Spoiler +
http://forums.devnetwork.net/viewtopic.php?f=1&t=138460&p=688348#p688348


I have my entire thought process for the week kinda written there, I could rewrite it if someone hates outside links to other forums.
Taeyeon ~ Jennie ~ Seulgi ~ Irene @Fawkes711
goody153
Profile Blog Joined April 2013
44280 Posts
October 08 2013 14:21 GMT
#7375
On October 08 2013 22:55 Fawkes wrote:
Not to hijack your conversation or anything, but I've been stuck on this php/javascript issue for the past week and I haven't gotten anywhere. Wondered if anyone would have any ideas on what I could do.

+ Show Spoiler +
http://forums.devnetwork.net/viewtopic.php?f=1&t=138460&p=688348#p688348


I have my entire thought process for the week kinda written there, I could rewrite it if someone hates outside links to other forums.

you could also post this here

www.stackoverflow.com

there are a LOT of people/programming-guru who kill time here to solve programming problems of all kinds .. even the most complex ones .. the site above is basically like a hotline for problems
this is a quote
goody153
Profile Blog Joined April 2013
44280 Posts
Last Edited: 2013-10-08 14:51:15
October 08 2013 14:30 GMT
#7376
On October 08 2013 22:55 Fawkes wrote:
Not to hijack your conversation or anything, but I've been stuck on this php/javascript issue for the past week and I haven't gotten anywhere. Wondered if anyone would have any ideas on what I could do.

+ Show Spoiler +
http://forums.devnetwork.net/viewtopic.php?f=1&t=138460&p=688348#p688348


I have my entire thought process for the week kinda written there, I could rewrite it if someone hates outside links to other forums.


3 buttons in one form ?

hmm i havent tried that .. i dont think its possible to utilize 3 kinds of different submit buttons inside a form at least in php side of perspective .. what i do is i create 3 separate forms per submit button .. that way i am sure it works .. you could put all processes into one .php file but i think you cannot put 3 submit buttons unto one form ..

i just started playing with php so forgive me sir
this is a quote
Chaosvuistje
Profile Joined April 2010
Netherlands2581 Posts
October 08 2013 14:40 GMT
#7377
On October 08 2013 22:55 Fawkes wrote:
Not to hijack your conversation or anything, but I've been stuck on this php/javascript issue for the past week and I haven't gotten anywhere. Wondered if anyone would have any ideas on what I could do.

+ Show Spoiler +
http://forums.devnetwork.net/viewtopic.php?f=1&t=138460&p=688348#p688348


I have my entire thought process for the week kinda written there, I could rewrite it if someone hates outside links to other forums.


There's two ways you can fix this. Either on the Javascript side of things or the PHP side of things.

If you want to fix it with javascript, I think adding another button element rather than an input with a submit type would work. That way you can listen to clicks of the button element rather than having one global submit function checking it.

If you want to fix it with php, you could alter the submit buttons to contain name attributes. If you have three submit buttons and you want to check which one is pressed on the server side, you could change your form to look like this.

<form>
<input type="submit" value="button one" name="submit" />
<input type="submit" value="button two" name="submit" />
</form>

Then, on the server side, check the $_POST variable 'submit'. if($_POST['submit'] === "button one") { //do something } else if ($_POST['submit'] === "button two") { // do another thing }
hifriend
Profile Blog Joined June 2009
China7935 Posts
Last Edited: 2013-10-08 14:59:06
October 08 2013 14:56 GMT
#7378
Is anyone good with matlab? Or computational science in general for that matter? I want to calculate an integral numerically (simpsons method, trapezoidal, whatever), but I want the user to be able to specify the acceptable margin of error in correct decimals, and have the program adjust the number of intervals accordingly. I could just do the calculation at interval i = 1 and estimate the error (I used richardson extrapolation), then increment i until error < 10^(-something). But there must be some better way.
supereddie
Profile Joined March 2011
Netherlands151 Posts
Last Edited: 2013-10-08 16:23:19
October 08 2013 16:18 GMT
#7379
On October 08 2013 22:55 Fawkes wrote:
Not to hijack your conversation or anything, but I've been stuck on this php/javascript issue for the past week and I haven't gotten anywhere. Wondered if anyone would have any ideas on what I could do.

+ Show Spoiler +
http://forums.devnetwork.net/viewtopic.php?f=1&t=138460&p=688348#p688348


I have my entire thought process for the week kinda written there, I could rewrite it if someone hates outside links to other forums.

Just use another form method for modify than for create?

That is, use method="post" for creating, and method="put" for updating/replacing.

In case you also want a delete, use method="delete"
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
October 08 2013 19:08 GMT
#7380
Im trying to make a simple snake game. Do i really need to make 3 threads (mainDisplay, snakeRun, input) for it or there is a way that i could get away with 2?
Im daed. Follow me @TL_NB
Prev 1 367 368 369 370 371 1032 Next
Please log in or register to reply.
Live Events Refresh
Showmatch
15:00
Shopify Rebellion Sunday #7
Harstem283
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 283
SHIN 76
MindelVK 62
StarCraft: Brood War
Britney 58228
Calm 4849
Shuttle 1289
Jaedong 1166
Hyuk 790
EffOrt 784
Mini 598
Light 403
Soma 399
firebathero 235
[ Show more ]
Stork 221
actioN 203
ZerO 175
BeSt 172
Soulkey 153
ggaemo 107
Last 104
Mong 94
hero 86
ToSsGirL 56
Sharp 55
Free 42
scan(afreeca) 41
soO 35
sorry 21
HiyA 20
Rock 20
yabsab 16
Hm[arnc] 14
Sexy 12
Noble 11
zelot 9
Purpose 6
Dota 2
Gorgc7811
qojqva1260
Dendi1241
XaKoH 597
XcaliburYe68
Counter-Strike
fl0m960
byalli606
edward320
Other Games
gofns18888
FrodaN8180
B2W.Neo806
Liquid`RaSZi555
crisheroes291
Pyrionflax282
Hui .197
KnowMe173
ZerO(Twitch)19
Organizations
Other Games
BasetradeTV236
StarCraft: Brood War
lovetv 14
Kim Chul Min (afreeca) 13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• poizon28 53
• StrangeGG 31
• HeavenSC 23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 14
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis3313
Upcoming Events
IPSL
49m
Bonyth vs Hawk
OSC
8h 49m
GSL
19h 49m
Monday Night Weeklies
1d
Replay Cast
1d 8h
WardiTV Weekly
1d 19h
The PondCast
2 days
Replay Cast
3 days
CrankTV Team League
3 days
Replay Cast
4 days
[ Show More ]
CrankTV Team League
4 days
Replay Cast
5 days
RSL Revival
5 days
Clem vs Lambo
Scarlett vs Cure
CranKy Ducklings
5 days
RSL Revival
6 days
Classic vs Trap
herO vs SHIN
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

ASL Season 22: Wild Card Qualifier
HSC XXIX
Eternal Conflict S2 E1

Ongoing

IPSL Spring 2026
Acropolis #4
YSL S3
CSL 2026 Summer (S21)
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
Eternal Conflict S2 E2
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026

Upcoming

Escore Tournament S3: W3
ASL S22 SEASON OPEN Day 1
Escore Tournament S3: W4
ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
CSLAN 4
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E3
Logitech G Connect 2026
StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.