• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:05
CET 16:05
KST 00:05
  • 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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation12Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview [TLMC] Fall/Winter 2025 Ladder Map Rotation TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle BW General Discussion What happened to TvZ on Retro? Brood War web app to calculate unit interactions [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason
Dota 2
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 Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2273 users

The Big Programming Thread - Page 306

Forum Index > General Forum
Post a Reply
Prev 1 304 305 306 307 308 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.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
May 25 2013 02:46 GMT
#6101
On May 25 2013 08:37 3FFA wrote:
I went to try and figure out how to use view controllers, thought this would be great...
http://www.slideshare.net/bobmccune/creating-container-view-controllers
*puts it into latest version of Xcode* error error error D:
If anyone could tell me how to make these overcomplicated view controllers for my iPhone/iPad applications in XCode it would be a great help! Currently working on my final project for my Obj C & App Development class, so the sooner the better.

What about view controllers are you looking for help with in particular?
Azerbaijan
Profile Blog Joined January 2010
United States660 Posts
May 25 2013 09:28 GMT
#6102
On May 25 2013 08:44 RoyGBiv_13 wrote:
^_^ just got a pair of CC2538 chips in the mail to play around with. So far I've got contiki os installed on each board, but can't get lights to turn on, and I have no clue where the console is being output. Embedded4lyfe.


Where can I learn about how these things? Embedded systems sounds really interesting to me. I'm kind of potentially planning on going into EE instead of CS or maybe double major EE/CS or CE or just back to CS. Don't really know yet but I have time to decide while I still take care of generals. Is there a way to get into messing with embedded systems while still being fairly new to programming? Been learning C for a while on my own but I wouldn't say I'm any good at it.
patermatrix
Profile Joined March 2012
64 Posts
May 25 2013 10:16 GMT
#6103
On May 25 2013 18:28 Azerbaijan wrote:
Show nested quote +
On May 25 2013 08:44 RoyGBiv_13 wrote:
^_^ just got a pair of CC2538 chips in the mail to play around with. So far I've got contiki os installed on each board, but can't get lights to turn on, and I have no clue where the console is being output. Embedded4lyfe.


Where can I learn about how these things? Embedded systems sounds really interesting to me. I'm kind of potentially planning on going into EE instead of CS or maybe double major EE/CS or CE or just back to CS. Don't really know yet but I have time to decide while I still take care of generals. Is there a way to get into messing with embedded systems while still being fairly new to programming? Been learning C for a while on my own but I wouldn't say I'm any good at it.

For starters, I'd recommend getting one of these. The downside is that without external equipment (sensors, motors, w/e) there's not really much to do with it. But Arduinos in general are a great base for any embedded system, and really easy to program too.

There's loads of documentation and tutorials on the web about using Arduinos.
magicmUnky
Profile Joined June 2011
Australia280 Posts
May 25 2013 10:37 GMT
#6104
oh man, embedded stuff is fun but it's also relatively hard because it's multidisciplinary. I'm studying a bachelor of engineering (mechatronic) and it's basically electronics, programming and mechanical engineering in one.

Arduino is a fantastic starting point and I highly recommend an inventor's kit or something like that to get started... there are tons of different "Development kits" available and they all have their different uses.

https://www.sparkfun.com/categories/2
XythOs
Profile Blog Joined February 2005
Germany520 Posts
May 25 2013 10:47 GMT
#6105
Could I build a remote controlled car from scratch with those? I always wanted to do something like that but had no idea how to go about it.
WindWolf
Profile Blog Joined July 2012
Sweden11767 Posts
May 25 2013 10:48 GMT
#6106
So, for the last school year I've been programming C++ in Visual Studio 2010 (because my now former teacher said that we should do so) but I'm wondering if it's worth to upgrade to VS2012?
EZ4ENCE
CatNzHat
Profile Blog Joined February 2011
United States1599 Posts
May 25 2013 10:49 GMT
#6107
On May 24 2013 10:37 phar wrote:
oh jesus my x86 is rusty

mov eax, 56111 // sticks 56111 into the 4 bytes of eax (? is it 4 or 8? fuck if I know, we're going with 4 byte registers woo)
mul eax // multiplies ? by eax, puts result into edx:eax... so is that 56111^2? I think no second arg means by itself here, not sure.
mov edx,0 // puts 0 into edx, so this means we get the 16 least significant bits of 56111^2... 29345 ?
div x // dword 100 is 4 bytes, so we're taking dividend/divisor (edx:eax is dividend, which recall is 29345, x is divisor, which is 100), result goes into eax and remainder goes into edx (or switch around?) 29345 / 100 = 293 remainder 45


so that sticks 293 in eax and 45 in edx
mov edx, 0 // zeroes out edx again
div y // same deal, except dividnig by something bigger than 293, so we get eax = 0, edx = 293.
mov eax, edx // intel backwards notation, moves edx into eax, so we end up with 293.



OR MAYBE THAT'S COMPLETE BULLSHIT I DUNNO LOL


Best explanation of assembly I've ever read. You have the perfect voice for it too.

If you want to know what a block of assembly does, wouldn't you just run it with a debugger?
CatNzHat
Profile Blog Joined February 2011
United States1599 Posts
May 25 2013 10:50 GMT
#6108
On May 25 2013 19:47 XythOs wrote:
Could I build a remote controlled car from scratch with those? I always wanted to do something like that but had no idea how to go about it.

Yes, you most definitely could.
I'm not sure how far from scratch you mean, would you want to be building your own servos and radios? If so you'd have a lot of electrical and mechanical engineering to learn.
Glowbox
Profile Joined June 2010
Netherlands330 Posts
Last Edited: 2013-05-25 10:56:37
May 25 2013 10:56 GMT
#6109
On May 25 2013 19:48 WindWolf wrote:
So, for the last school year I've been programming C++ in Visual Studio 2010 (because my now former teacher said that we should do so) but I'm wondering if it's worth to upgrade to VS2012?


I assume you're still in school so it's free? VS2010 faster in multiple ways (startup, compilation, intellisense) and has more support for a few neat C++11 features (but if your teachers only have VS2010 you obviously can't use those).
XythOs
Profile Blog Joined February 2005
Germany520 Posts
May 25 2013 11:11 GMT
#6110
On May 25 2013 19:50 CatNzHat wrote:

Yes, you most definitely could.
I'm not sure how far from scratch you mean, would you want to be building your own servos and radios? If so you'd have a lot of electrical and mechanical engineering to learn.

Well not exactly from scratch. Kinda like Lego Mindstorms.
So many cools things to learn, if I just had the time.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
May 25 2013 11:13 GMT
#6111
On May 25 2013 11:46 enigmaticcam wrote:
Show nested quote +
On May 25 2013 08:37 3FFA wrote:
I went to try and figure out how to use view controllers, thought this would be great...
http://www.slideshare.net/bobmccune/creating-container-view-controllers
*puts it into latest version of Xcode* error error error D:
If anyone could tell me how to make these overcomplicated view controllers for my iPhone/iPad applications in XCode it would be a great help! Currently working on my final project for my Obj C & App Development class, so the sooner the better.

What about view controllers are you looking for help with in particular?


Trying to make an app with more than 1 viewcontroller, and the ability to switch between them. Everytime I've found something... it was for iOS 5 not 6 and it failed... ._.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
May 25 2013 11:45 GMT
#6112
On May 25 2013 19:48 WindWolf wrote:
So, for the last school year I've been programming C++ in Visual Studio 2010 (because my now former teacher said that we should do so) but I'm wondering if it's worth to upgrade to VS2012?

There a ton of improvements in 2012. You might not use them all, but it's definitely worth switching unless it will cost you. VS2012 is also completely backwards compatible with 2010, so there's no issue with upgrading.
patermatrix
Profile Joined March 2012
64 Posts
May 25 2013 11:59 GMT
#6113
On May 25 2013 19:47 XythOs wrote:
Could I build a remote controlled car from scratch with those? I always wanted to do something like that but had no idea how to go about it.

You can easily control two servos (for steering) and a motor with an Arduino, not sure how complicated the whole remote thing is though.
WindWolf
Profile Blog Joined July 2012
Sweden11767 Posts
May 25 2013 13:30 GMT
#6114
On May 25 2013 20:45 Tobberoth wrote:
Show nested quote +
On May 25 2013 19:48 WindWolf wrote:
So, for the last school year I've been programming C++ in Visual Studio 2010 (because my now former teacher said that we should do so) but I'm wondering if it's worth to upgrade to VS2012?

There a ton of improvements in 2012. You might not use them all, but it's definitely worth switching unless it will cost you. VS2012 is also completely backwards compatible with 2010, so there's no issue with upgrading.

I can get VS (and other software) through Dreamspark, so upgrading will be free for me.
Thanks for the tip, will stick with 2010 until my semester ends though.
EZ4ENCE
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
May 25 2013 14:58 GMT
#6115
On May 25 2013 20:13 3FFA wrote:
Show nested quote +
On May 25 2013 11:46 enigmaticcam wrote:
On May 25 2013 08:37 3FFA wrote:
I went to try and figure out how to use view controllers, thought this would be great...
http://www.slideshare.net/bobmccune/creating-container-view-controllers
*puts it into latest version of Xcode* error error error D:
If anyone could tell me how to make these overcomplicated view controllers for my iPhone/iPad applications in XCode it would be a great help! Currently working on my final project for my Obj C & App Development class, so the sooner the better.

What about view controllers are you looking for help with in particular?


Trying to make an app with more than 1 viewcontroller, and the ability to switch between them. Everytime I've found something... it was for iOS 5 not 6 and it failed... ._.

You'll want to check out navigation controllers. A navigation controller is what allows you to transition between different view controllers.

You don't even need to subclass the navigation controller. Chances are your starting view controller most likely already sits in a navigation controller. If you want to transition from one view controller to another, you can do something like this:
@implementation currentViewController {
// Hold a reference to the child view controller so it's not lost as soon as it's presented
nextViewController _nextViewController;
}

// Let's navigate to the next view controller
- (void)userDidSomething {

// Create an instance of my next view controller
_nextViewController = [[nextViewController alloc] init];

// Display my next view controller
[self.navigationController pushViewController:_nextViewController animated:YES];
}


There are other ways to do it, e.g. storyboards. But if you're on a deadline, this is the simplest way.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
May 25 2013 16:01 GMT
#6116
Thanks! I don't have a chance to test it atm but is there a way to set it up so the user can manually switch back and forth between the different views or should I use
// Display my next view controller
[self.navigationController pushViewController:_nextViewController animate:YES];
in a button on-screen to do it?

What I need to make requires 'pages' like in a book or such.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
phar
Profile Joined August 2011
United States1080 Posts
May 25 2013 17:48 GMT
#6117
On May 25 2013 18:28 Azerbaijan wrote:
Show nested quote +
On May 25 2013 08:44 RoyGBiv_13 wrote:
^_^ just got a pair of CC2538 chips in the mail to play around with. So far I've got contiki os installed on each board, but can't get lights to turn on, and I have no clue where the console is being output. Embedded4lyfe.


Where can I learn about how these things? Embedded systems sounds really interesting to me. I'm kind of potentially planning on going into EE instead of CS or maybe double major EE/CS or CE or just back to CS. Don't really know yet but I have time to decide while I still take care of generals. Is there a way to get into messing with embedded systems while still being fairly new to programming? Been learning C for a while on my own but I wouldn't say I'm any good at it.

My advice is to figure out early on which one you prefer (CS or EE) and do ONE, not both. I did both (all three if you count CE too), and while it was fun, it caused a lot of undue stress and turned out to be kinda worthless. Pick one, and if you really want to do the same ~5 years would have required to do both (at a 130%-150% course load too), GET A MASTER'S INSTEAD. I wish someone had told me this before my 9th semester when it was too fucking late, lol. Now when I go to a job interview, the conversation isn't, "Oh, cool, three majors," it's "So... why again did you get a EE degree?"

So take an intro circuits lab, and some intro CS programming, figure out which one you prefer. Maybe take a few classes in the other on the side, but I strongly advise not committing fully to both.

Don't get me wrong, I think embedded systems are fun as hell, and comp architecture is the coolest thing ever. It's just really hard to do both CS & EE in a reasonable amount of time without stressing out too much. Shit gives you gray hair.

Also just a heads up, if you are going to be doing EE, Arduino could be a fun start. But in an EE lab in Uni, you're likely going to be working more from scratch, so Arduino will spoil you by doing the circuit assembly for you. You may instead want to get a cheap (~$1) mcu and a pile of leds/resistors/caps and go from there. Learn the hard way, because it's not exactly trivial assembling the proper circuit and writing the basic low-level code for configuring registers for IO 'n shit. If you're just dicking around and won't have to learn that in school, then skip the build from scratch part and pick up something like an Arduino - save yourself the headache.


On May 25 2013 19:49 CatNzHat wrote:
Show nested quote +
On May 24 2013 10:37 phar wrote:
oh jesus my x86 is rusty

mov eax, 56111 // sticks 56111 into the 4 bytes of eax (? is it 4 or 8? fuck if I know, we're going with 4 byte registers woo)
mul eax // multiplies ? by eax, puts result into edx:eax... so is that 56111^2? I think no second arg means by itself here, not sure.
mov edx,0 // puts 0 into edx, so this means we get the 16 least significant bits of 56111^2... 29345 ?
div x // dword 100 is 4 bytes, so we're taking dividend/divisor (edx:eax is dividend, which recall is 29345, x is divisor, which is 100), result goes into eax and remainder goes into edx (or switch around?) 29345 / 100 = 293 remainder 45


so that sticks 293 in eax and 45 in edx
mov edx, 0 // zeroes out edx again
div y // same deal, except dividnig by something bigger than 293, so we get eax = 0, edx = 293.
mov eax, edx // intel backwards notation, moves edx into eax, so we end up with 293.



OR MAYBE THAT'S COMPLETE BULLSHIT I DUNNO LOL


Best explanation of assembly I've ever read. You have the perfect voice for it too.

If you want to know what a block of assembly does, wouldn't you just run it with a debugger?

Yea, except I forgot that 8 * 4 = 32, not 16. woo
Who after all is today speaking about the destruction of the Armenians?
phar
Profile Joined August 2011
United States1080 Posts
May 25 2013 17:59 GMT
#6118
Some addendum to that advice: sort of depends on the person too. If you're going to be totally fine with having literally 0 free time (read: no video games), taking 150% course loads, having an extra year to graduate, and then not actually having a leg up when getting a job, sure. If you just want to learn all that shit, go for it. Also if your Uni doesn't have a reasonable EE or CS master's program that you could get in to, then it may be a different situation.
Who after all is today speaking about the destruction of the Armenians?
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
May 26 2013 00:36 GMT
#6119
On May 26 2013 01:01 3FFA wrote:
Thanks! I don't have a chance to test it atm but is there a way to set it up so the user can manually switch back and forth between the different views or should I use
// Display my next view controller
[self.navigationController pushViewController:_nextViewController animate:YES];
in a button on-screen to do it?

What I need to make requires 'pages' like in a book or such.

If I get what you're saying, you're imagining a forward button on the right and a back button on the left that navigates between "pages" (view controllers)? Each page will need to create its own bar button item on the right that does a push to the next page, but the left bar button that goes back will automatically be generated for you by the navigation controller when you do a push.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
May 26 2013 04:40 GMT
#6120
Ok thanks again! That is what I meant.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Prev 1 304 305 306 307 308 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 55m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 370
SteadfastSC 346
Reynor 49
mcanning 46
StarCraft: Brood War
Britney 33170
Rain 4067
actioN 1777
Horang2 1531
Jaedong 1212
Shuttle 535
Stork 467
EffOrt 291
firebathero 269
Leta 120
[ Show more ]
Barracks 105
ggaemo 93
Shinee 91
Hyun 86
PianO 73
LaStScan 67
JYJ49
Shine 48
Mong 31
Rock 24
Movie 24
ToSsGirL 23
Bale 19
zelot 14
soO 10
HiyA 9
sorry 8
Sacsri 6
Dota 2
Gorgc5504
qojqva1754
Dendi1127
XcaliburYe145
LuMiX0
Counter-Strike
oskar107
Heroes of the Storm
Khaldor113
Other Games
FrodaN4271
B2W.Neo1782
DeMusliM470
Hui .329
Lowko301
Pyrionflax236
Fuzer 206
febbydoto6
Organizations
Dota 2
PGL Dota 2 - Main Stream8720
PGL Dota 2 - Secondary Stream3207
Other Games
EGCTV67
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH154
• StrangeGG 72
• IndyKCrew
• AfreecaTV YouTube
• intothetv
• Kozan
• sooper7s
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Michael_bg 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2112
• Ler59
League of Legends
• Nemesis3149
Other Games
• WagamamaTV236
Upcoming Events
IPSL
1h 55m
ZZZero vs rasowy
Napoleon vs KameZerg
OSC
3h 55m
BSL 21
4h 55m
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
18h 55m
RSL Revival
18h 55m
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
20h 55m
Cure vs herO
Reynor vs TBD
WardiTV Korean Royale
20h 55m
BSL 21
1d 4h
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
1d 4h
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
1d 7h
[ Show More ]
Wardi Open
1d 20h
Monday Night Weeklies
2 days
WardiTV Korean Royale
2 days
BSL: GosuLeague
3 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
BSL: GosuLeague
5 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.