• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:21
CEST 13:21
KST 20:21
  • 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
Team Liquid Map Contest #22 - The Finalists14[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced11Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid22
StarCraft 2
General
MaNa leaves Team Liquid 2026 GSL Tour plans announced Team Liquid Map Contest #22 - The Finalists Weekly Cups (April 6-12): herO doubles, "Villains" prevail Oliveira Would Have Returned If EWC Continued
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament GSL CK: More events planned pending crowdfunding 2026 GSL Season 1 Qualifiers Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea Pros React To: Tulbo in Ro.16 Group A Data needed
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro16 Group A [ASL21] Ro16 Group B
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1658 users

The Big Programming Thread - Page 291

Forum Index > General Forum
Post a Reply
Prev 1 289 290 291 292 293 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.
white_horse
Profile Joined July 2010
1019 Posts
April 25 2013 17:07 GMT
#5801
Ok thanks for the information guys. Then is it better to learn HTML with php, or learn HTML with css? I've taken classes in c++/c so I'm pretty familiar with "actual" programming.
Translator
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
April 25 2013 17:10 GMT
#5802
On April 26 2013 02:07 white_horse wrote:
Ok thanks for the information guys. Then is it better to learn HTML with php, or learn HTML with css? I've taken classes in c++/c so I'm pretty familiar with "actual" programming.


Depends on what you want to do. HTML is just a language to mark different parts of content ("this bit is a paragraph", "this bit is an image", "this bit is a table", etc...). CSS is a language to assign style (colour, font, etc...) to the different HTML elements to create a good looking page. PHP is a serverside language that allows you to generate HTML pages (and other stuff) dynamically, often in combination with a database.

So CSS is for looks, PHP is for (dynamic) functionality. They're not comparable and a good website uses both,
Such flammable little insects!
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 25 2013 17:11 GMT
#5803
On April 26 2013 02:07 white_horse wrote:
Ok thanks for the information guys. Then is it better to learn HTML with php, or learn HTML with css? I've taken classes in c++/c so I'm pretty familiar with "actual" programming.


Depends on what you want to learn.

If you want to make pretty websites you only need HTML, CSS and probably javascript, no need to learn PHP.
If you want to develop interactive websites, e.g. blogs, shops, etc., then you need to learn a server side language so you might as well start with both and combine PHP & HTML learning. HTML is quite simple as long as you don't go too deep into it, so learning it on-the-fly while writing PHP should be no problem.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-04-25 17:36:37
April 25 2013 17:35 GMT
#5804
On April 26 2013 02:07 white_horse wrote:
Ok thanks for the information guys. Then is it better to learn HTML with php, or learn HTML with css? I've taken classes in c++/c so I'm pretty familiar with "actual" programming.

PHP and C look very similar to each other and it's very easy to get started with PHP. It's a major attraction. That said, you can use Ruby too if you'd prefer or some other server side language. Web development needs some server sided language. I disagree that you can't use PHP and you should use Ruby. You can if you want to.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
April 25 2013 22:37 GMT
#5805
Hey I thought you guys would think this is cool! I bound Lua to some OpenGL wrappers I wrote, along with a little binding to a physics engine I made. Everything was in C++ and bound to Lua: video demo. Just wanted to share
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
April 25 2013 23:54 GMT
#5806
This is not exactly programming related, but I want to learn a bit about software development life cycle... can anyone recommend a book for this?
https://twitter.com/SufficientStats
billy5000
Profile Blog Joined December 2010
United States865 Posts
April 26 2013 00:59 GMT
#5807
http://hypem.com/

Can someone explain how this site works, specifically how it allows the user to listen to music while moving from page to page? I have a very limited knowledge on single page apps, let alone front-end programming--is the site a hybrid or something?
Tiger got to hunt, bird got to fly; Man got to sit and wonder, 'Why, why, why?' Tiger got to sleep, bird got to land; Man got to tell himself he understand. Vonnegut
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
April 26 2013 01:11 GMT
#5808
On April 26 2013 09:59 billy5000 wrote:
http://hypem.com/

Can someone explain how this site works, specifically how it allows the user to listen to music while moving from page to page? I have a very limited knowledge on single page apps, let alone front-end programming--is the site a hybrid or something?

While I can't really say the exact system from a brief skim, the obvious answer is that you're not moving from page to page. The header, player, etc. are all static and clicking on the links simply changes the content display.
Average means I'm better than half of you.
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
Last Edited: 2013-04-26 01:17:33
April 26 2013 01:16 GMT
#5809
I have been trying to write a Poker game in vb.net for a few days now.

I would like to be able to step through an array and while doing that, assign each number to an image.

So for instance
dim countCards as integer
dim currentcard as string
Private cardsNum as integer = {1, 2, 3, 4, ....52}

private cardValue as string = {AceSpades, AceDiamond, AceHeart.....}

for each x in cardsNum
x = currentCard
countcards += 1
next
and then output as something like this
currentCard(1)
currentCard(2)
...currentCard(52)

is this the right logic and thinking? I am a bit lost as to how to do it. I know I can go through and do a select case for every situation and that is easy. but SOO long.
"I love when stupid stuff happens, it makes me look smart" - IdrA
tofucake
Profile Blog Joined October 2009
Hyrule19203 Posts
April 26 2013 03:21 GMT
#5810
Your code is confusing. Is currentCard a function? Why do you assign x twice?
Liquipediaasante sana squash banana
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
Last Edited: 2013-04-26 03:47:40
April 26 2013 03:46 GMT
#5811
Well the for each will make x step through cardsNum,

So for the first time through the loop, x = current cards, x will be 1 since it is pulling 1 from the array. It then holds this value into current card.

and count cards will be counted each time the loop is processed so i can call that instance of the loop so to speak, and pull back the index. so if i wanted to display 1, I would use currentCard(0) to display 1, or if i wanted 10 i would use currentCard(9) and so on.

Atleast that is what I am thinking but its not right. I was wondering what was wrong with my process.

Also the variables datatypes are probably wrong, i dont think currentCard should be string.

*EDIT: I am explaing what things do because I just want to be thorough on my explanation so you understand the view im coming in from so I may even be wrong. Not because everyone else here is incompetent of understanding a foreach loop. I just didn't want to come off as arrogant when I explained it. o.o
"I love when stupid stuff happens, it makes me look smart" - IdrA
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
April 26 2013 03:47 GMT
#5812
On April 26 2013 09:59 billy5000 wrote:
http://hypem.com/

Can someone explain how this site works, specifically how it allows the user to listen to music while moving from page to page? I have a very limited knowledge on single page apps, let alone front-end programming--is the site a hybrid or something?

It uses Ajax probably. Javascript that can run without a page refresh.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
April 26 2013 03:48 GMT
#5813
On April 26 2013 12:46 FreezingAssassin wrote:
Well the for each will make x step through cardsNum,

So for the first time through the loop, x = current cards, x will be 1 since it is pulling 1 from the array. It then holds this value into current card.

and count cards will be counted each time the loop is processed so i can call that instance of the loop so to speak, and pull back the index. so if i wanted to display 1, I would use currentCard(0) to display 1, or if i wanted 10 i would use currentCard(9) and so on.

Atleast that is what I am thinking but its not right. I was wondering what was wrong with my process.

Also the variables datatypes are probably wrong, i dont think currentCard should be string.

I'm having a lot of trouble understanding what it is you're trying to do, and I have very, very little experience with VB.net, but it sure sounds like you're putting in 5x the amount of effort and code required.

So, instead of saying what you want your code to do, what is it that you're actually trying to accomplish with the code?
Average means I'm better than half of you.
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
Last Edited: 2013-04-26 03:54:26
April 26 2013 03:53 GMT
#5814
use an array to assign a numeric value to a variable, then assign that variable to a image.

So i have a method made that randomizes numbers between 1 - 52. Whenever say 5 is chosen, 10 of diamonds will display, or 51 two of hearts and so on.

I would love to hear nay easier and better ways to do it.
"I love when stupid stuff happens, it makes me look smart" - IdrA
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
April 26 2013 03:58 GMT
#5815
On April 26 2013 12:53 FreezingAssassin wrote:
use an array to assign a numeric value to a variable, then assign that variable to a image.

So i have a method made that randomizes numbers between 1 - 52. Whenever say 5 is chosen, 10 of diamonds will display, or 51 two of hearts and so on.

Okay, once again, no real experience with VB.net, but wouldn't it be far simpler to do this?

(Psuedo-code)

Cards = {AceDiamonds, AceHearts, ...}

PickCard(){
x = rand(1-52)
display(Cards[x])
}
Average means I'm better than half of you.
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
April 26 2013 04:13 GMT
#5816
hmm, maybe it sounds more clear in my head.

I would like to step through the array, and while i do that assign a value to that position in the array and call that exact position.
"I love when stupid stuff happens, it makes me look smart" - IdrA
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
April 26 2013 04:24 GMT
#5817
On April 26 2013 13:13 FreezingAssassin wrote:
hmm, maybe it sounds more clear in my head.

I would like to step through the array, and while i do that assign a value to that position in the array and call that exact position.

Here's the thing...array's already have positions assigned. 0 is the first entry, 2 is the third, 51 is the fifty-second. So if "Cards" is your array, then "Cards[51]" calls the value stored in the fifty-second position.
Average means I'm better than half of you.
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
April 26 2013 04:33 GMT
#5818
ok thanks a lot, I was just making it sound so much more confusing than what was.
"I love when stupid stuff happens, it makes me look smart" - IdrA
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
April 26 2013 04:39 GMT
#5819
On April 26 2013 13:33 FreezingAssassin wrote:
ok thanks a lot, I was just making it sound so much more confusing than what was.

No problem. In general, it's a good idea to skim documentation and see what tools already exist for functions you want to use.
Average means I'm better than half of you.
tec27
Profile Blog Joined June 2004
United States3702 Posts
April 26 2013 06:04 GMT
#5820
On April 26 2013 09:59 billy5000 wrote:
http://hypem.com/

Can someone explain how this site works, specifically how it allows the user to listen to music while moving from page to page? I have a very limited knowledge on single page apps, let alone front-end programming--is the site a hybrid or something?

They're just making AJAX requests with JS and replacing the content with the response, pretty simple. Its an older form of 'single page app' really. If you want a better example with better tech/code: http://soundcloud.com
Can you jam with the console cowboys in cyberspace?
Prev 1 289 290 291 292 293 1032 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Map Contest Tou…
11:00
Group D
WardiTV408
TKL 126
IndyStarCraft 104
Rex62
3DClanTV 48
Liquipedia
Sparkling Tuna Cup
10:00
Weekly #128 (TLMC 22 Edition)
ByuN vs HonMonOLIVE!
CranKy Ducklings134
herO (SOOP)36
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 126
IndyStarCraft 104
Rex 62
MindelVK 45
herO (SOOP) 36
StarCraft: Brood War
Britney 23563
Calm 4539
Horang2 1500
ToSsGirL 614
Larva 434
EffOrt 354
Zeus 344
NaDa 248
BeSt 245
firebathero 213
[ Show more ]
Last 165
Killer 157
ZerO 144
Soma 130
PianO 102
Hyun 89
Rush 82
Sharp 60
ggaemo 58
Pusan 55
Nal_rA 42
[sc1f]eonzerg 41
sSak 39
Mind 39
Soulkey 32
Barracks 32
yabsab 22
soO 15
Sea.KH 15
Noble 15
SilentControl 15
IntoTheRainbow 14
Shinee 13
Movie 12
Hm[arnc] 12
sorry 6
Dota 2
XaKoH 648
Counter-Strike
zeus1202
x6flipin341
edward150
Super Smash Bros
Mew2King162
Heroes of the Storm
Khaldor260
Other Games
singsing1475
B2W.Neo1039
Pyrionflax164
DeMusliM157
ZerO(Twitch)14
Organizations
Dota 2
PGL Dota 2 - Main Stream7480
PGL Dota 2 - Secondary Stream3394
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 16
• CranKy Ducklings SOOP5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2251
• TFBlade824
Upcoming Events
Ladder Legends
3h 39m
IPSL
4h 39m
JDConan vs TBD
Aegong vs rasowy
BSL
7h 39m
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
CranKy Ducklings
12h 39m
Replay Cast
21h 39m
Wardi Open
22h 39m
Afreeca Starleague
22h 39m
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
1d 4h
RSL Revival
1d 14h
Afreeca Starleague
1d 22h
Barracks vs Leta
Royal vs Light
[ Show More ]
WardiTV Map Contest Tou…
1d 23h
RSL Revival
2 days
Replay Cast
3 days
The PondCast
3 days
KCM Race Survival
3 days
WardiTV Map Contest Tou…
3 days
Replay Cast
4 days
Escore
4 days
RSL Revival
5 days
WardiTV Map Contest Tou…
5 days
Ladder Legends
6 days
uThermal 2v2 Circuit
6 days
BSL
6 days
Sparkling Tuna Cup
6 days
WardiTV Map Contest Tou…
6 days
Liquipedia Results

Completed

Escore Tournament S2: W3
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
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.