• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:48
CEST 14:48
KST 21:48
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL62Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event21Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays FEL Cracov 2025 (July 27) - $8000 live event Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Player “Jedi” cheat on CSL SC uni coach streams logging into betting site Flash Announces Hiatus From ASL Practice Partners (Official) ASL20 Preliminary Maps
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread What do you want from future RTS games? 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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Summer Games Done Quick 2025! Trading/Investing Thread Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 629 users

The Big Programming Thread - Page 308

Forum Index > General Forum
Post a Reply
Prev 1 306 307 308 309 310 1031 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 29 2013 21:41 GMT
#6141
On May 30 2013 06:10 3FFA wrote:
I did. Just ran it.... says it can't load the simulator because of the version for some reason. =/

I sent you a PM. We'll get this sorted out
Holy_AT
Profile Joined July 2010
Austria978 Posts
Last Edited: 2013-05-29 21:46:12
May 29 2013 21:45 GMT
#6142
@klo8
Meh, people nowadays are all about their tools and auto debugging to tell them what their program does.
If the problem does not lie in the libraries you are using and it is in your code, the most likely result of your problem is that you are not disposing some of your objects or freeing memory.
I do not know how you have implemented your solution but I hope you have a separation between the model and the view, at least you can determine if your memory problems result from your model and the algorithms performed in there or the visual representation the view, by just running your program without the view(s) attached to it.
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
May 30 2013 02:09 GMT
#6143
Okay guys - I totally need help but it's not a specific coding question.

I have an interview in two days for a software company. I just got the call - are they specifically said since it's a programming interview, a nice collared shirt would be okay by them.

First off, if I were to wear a collared shirt, should I not wear a tie? I'm still going to wear dress pants and shoes, but should I not wear a tie?

Or, should I just wear a suit anyway? Full blown - with the tie and jacket? Any advice would be very greatly appreciated.
Chairman Ray
Profile Blog Joined December 2009
United States11903 Posts
May 30 2013 02:14 GMT
#6144
On May 30 2013 11:09 Abductedonut wrote:
Okay guys - I totally need help but it's not a specific coding question.

I have an interview in two days for a software company. I just got the call - are they specifically said since it's a programming interview, a nice collared shirt would be okay by them.

First off, if I were to wear a collared shirt, should I not wear a tie? I'm still going to wear dress pants and shoes, but should I not wear a tie?

Or, should I just wear a suit anyway? Full blown - with the tie and jacket? Any advice would be very greatly appreciated.


There aren't any specific dress codes for an interview. What looks the best will give the best impression. Software companies are a bit more lenient on dress codes since they usually work in tshirt and jeans type of dress. I don't know if this is the case for your job though. If you would like to post some pictures, we can tell you if you look great or if you need to dress up/down a bit.
BoxingKangaroo
Profile Blog Joined December 2011
Japan955 Posts
May 30 2013 03:09 GMT
#6145
On May 30 2013 11:09 Abductedonut wrote:
Okay guys - I totally need help but it's not a specific coding question.

I have an interview in two days for a software company. I just got the call - are they specifically said since it's a programming interview, a nice collared shirt would be okay by them.

First off, if I were to wear a collared shirt, should I not wear a tie? I'm still going to wear dress pants and shoes, but should I not wear a tie?

Or, should I just wear a suit anyway? Full blown - with the tie and jacket? Any advice would be very greatly appreciated.


It's an interview, wear a suit in my opinion. What you will wear at the job, and what you wear in the interview should not necessarily be the same. If it's an interview for an office job, wear a suit. No one ever got passed over for over dressing.
Craton
Profile Blog Joined December 2009
United States17246 Posts
May 30 2013 04:09 GMT
#6146
Always better to be overdressed than under-dressed.

I wore a full suit to my interview.
twitch.tv/cratonz
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2013-05-30 04:19:49
May 30 2013 04:14 GMT
#6147
On May 30 2013 12:09 BoxingKangaroo wrote:
Show nested quote +
On May 30 2013 11:09 Abductedonut wrote:
Okay guys - I totally need help but it's not a specific coding question.

I have an interview in two days for a software company. I just got the call - are they specifically said since it's a programming interview, a nice collared shirt would be okay by them.

First off, if I were to wear a collared shirt, should I not wear a tie? I'm still going to wear dress pants and shoes, but should I not wear a tie?

Or, should I just wear a suit anyway? Full blown - with the tie and jacket? Any advice would be very greatly appreciated.


It's an interview, wear a suit in my opinion. What you will wear at the job, and what you wear in the interview should not necessarily be the same. If it's an interview for an office job, wear a suit. No one ever got passed over for over dressing.

Woah, really depends on the company. Coming to an interview in a suit at a lot of companies is gonna be viewed as kinda strange. For example, a significant percentage of the devs at my place don't even wear shoes...

Go with whatever the recruiter said. If they said collared shirt, do that (no tie imo). It is better to be overdressed than underdressed, but it's not better to be overdressed than dressed-exactly-the-way-the-recruiter-said.
Who after all is today speaking about the destruction of the Armenians?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
May 30 2013 04:36 GMT
#6148
Sigh, I guess I'm going to be underdressed tomorrow (today). Business casual with an emphasis on the casual x_x
There is no one like you in the universe.
Craton
Profile Blog Joined December 2009
United States17246 Posts
May 30 2013 04:37 GMT
#6149
I've never interviewed for anything, including a shitty stocking job at a grocery store, with less than a dress shirt and tie. Take that how you will.
twitch.tv/cratonz
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
May 30 2013 04:55 GMT
#6150
I've elected to go with everything you'd wear with a suit just without the suit jacket. I've tried to color code it so that I look really nice but not overdressed. Anyway, hopefully they'll focus more on my ability to program rather than what I'm wearing!

Thanks for the help, guys!
tec27
Profile Blog Joined June 2004
United States3696 Posts
May 30 2013 07:46 GMT
#6151
On May 30 2013 13:14 phar wrote:
Show nested quote +
On May 30 2013 12:09 BoxingKangaroo wrote:
On May 30 2013 11:09 Abductedonut wrote:
Okay guys - I totally need help but it's not a specific coding question.

I have an interview in two days for a software company. I just got the call - are they specifically said since it's a programming interview, a nice collared shirt would be okay by them.

First off, if I were to wear a collared shirt, should I not wear a tie? I'm still going to wear dress pants and shoes, but should I not wear a tie?

Or, should I just wear a suit anyway? Full blown - with the tie and jacket? Any advice would be very greatly appreciated.


It's an interview, wear a suit in my opinion. What you will wear at the job, and what you wear in the interview should not necessarily be the same. If it's an interview for an office job, wear a suit. No one ever got passed over for over dressing.

Woah, really depends on the company. Coming to an interview in a suit at a lot of companies is gonna be viewed as kinda strange. For example, a significant percentage of the devs at my place don't even wear shoes...

Go with whatever the recruiter said. If they said collared shirt, do that (no tie imo). It is better to be overdressed than underdressed, but it's not better to be overdressed than dressed-exactly-the-way-the-recruiter-said.

Yes, being overdressed is only fine to a certain extent. If they're expecting you to wear jeans and a t-shirt and you come in a suit, I can't imagine your interview is going to go very well Just wear something you're comfortable in and don't worry too much about it; the content of the interview is more important.
Can you jam with the console cowboys in cyberspace?
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
May 30 2013 09:47 GMT
#6152
Would you say picking a 'Formal Methods' module at university is a good idea? Is studying SPARQL/RDF/OWL also good to know? I can give you links for more details:

Formal Methods: https://www.csc.liv.ac.uk/teaching/modules/module.php?code=COMP313
Advanced Web Technologies: https://www.csc.liv.ac.uk/teaching/modules/module.php?code=COMP318

I've also picked a robot module for the lack of a better module.

https://www.csc.liv.ac.uk/teaching/modules/module.php?code=COMP329
klo8
Profile Joined August 2010
Austria1960 Posts
May 30 2013 10:20 GMT
#6153
On May 30 2013 06:45 Holy_AT wrote:
@klo8
Meh, people nowadays are all about their tools and auto debugging to tell them what their program does.
If the problem does not lie in the libraries you are using and it is in your code, the most likely result of your problem is that you are not disposing some of your objects or freeing memory.
I do not know how you have implemented your solution but I hope you have a separation between the model and the view, at least you can determine if your memory problems result from your model and the algorithms performed in there or the visual representation the view, by just running your program without the view(s) attached to it.

As a programmer coming from C# and Java, I don't really have a lot of experience managing memory on my own (except for about 6 months of C programming that I did for a systems programming class). I've so far allocated all objects on the stack and did not use any pointers to objects or the new-operator, so using delete was not necessary so far. I followed your advice, and just doing the backend calculations does not seem to take up a lot of memory, the usage is around 2MB when I just run the backend. (creating the L-Systems, creating the vertex arrays for drawing) As soon as I create a SFML-RenderWindow, the usage jumps to 27 MB, so it seems to be out of my hand, at least in that regard. As for what happens when I increase the size of the curves, I'll have to check some more I guess.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
Ashakyre
Profile Joined October 2011
United States99 Posts
May 30 2013 10:39 GMT
#6154
Birthday Ban Please!!!
misirlou
Profile Joined June 2010
Portugal3237 Posts
Last Edited: 2013-05-30 12:01:32
May 30 2013 10:45 GMT
#6155
On May 30 2013 19:20 klo8 wrote:
Show nested quote +
On May 30 2013 06:45 Holy_AT wrote:
@klo8
Meh, people nowadays are all about their tools and auto debugging to tell them what their program does.
If the problem does not lie in the libraries you are using and it is in your code, the most likely result of your problem is that you are not disposing some of your objects or freeing memory.
I do not know how you have implemented your solution but I hope you have a separation between the model and the view, at least you can determine if your memory problems result from your model and the algorithms performed in there or the visual representation the view, by just running your program without the view(s) attached to it.

As a programmer coming from C# and Java, I don't really have a lot of experience managing memory on my own (except for about 6 months of C programming that I did for a systems programming class). I've so far allocated all objects on the stack and did not use any pointers to objects or the new-operator, so using delete was not necessary so far. I followed your advice, and just doing the backend calculations does not seem to take up a lot of memory, the usage is around 2MB when I just run the backend. (creating the L-Systems, creating the vertex arrays for drawing) As soon as I create a SFML-RenderWindow, the usage jumps to 27 MB, so it seems to be out of my hand, at least in that regard. As for what happens when I increase the size of the curves, I'll have to check some more I guess.


New operator doesn't exist in C. The closest is type *pointer=(type*) malloc(sizeof(type)*elements) , and using free(pointer) after you don't need the memory. I will have a look at your code to understand what you mean by "allocated all objects on the stack" and edit this post.

Edit: NVM you are using c++. Im not sure how VS handles STL containers on the garbage collection but it might be that you are allocating memory for them every time you call CreateLSystems and not clearing them after you use them on the lsystems.push_back(LSystem(...)); call.
klo8
Profile Joined August 2010
Austria1960 Posts
May 30 2013 13:57 GMT
#6156
On May 30 2013 19:45 misirlou wrote:
Show nested quote +
On May 30 2013 19:20 klo8 wrote:
On May 30 2013 06:45 Holy_AT wrote:
@klo8
Meh, people nowadays are all about their tools and auto debugging to tell them what their program does.
If the problem does not lie in the libraries you are using and it is in your code, the most likely result of your problem is that you are not disposing some of your objects or freeing memory.
I do not know how you have implemented your solution but I hope you have a separation between the model and the view, at least you can determine if your memory problems result from your model and the algorithms performed in there or the visual representation the view, by just running your program without the view(s) attached to it.

As a programmer coming from C# and Java, I don't really have a lot of experience managing memory on my own (except for about 6 months of C programming that I did for a systems programming class). I've so far allocated all objects on the stack and did not use any pointers to objects or the new-operator, so using delete was not necessary so far. I followed your advice, and just doing the backend calculations does not seem to take up a lot of memory, the usage is around 2MB when I just run the backend. (creating the L-Systems, creating the vertex arrays for drawing) As soon as I create a SFML-RenderWindow, the usage jumps to 27 MB, so it seems to be out of my hand, at least in that regard. As for what happens when I increase the size of the curves, I'll have to check some more I guess.


New operator doesn't exist in C. The closest is type *pointer=(type*) malloc(sizeof(type)*elements) , and using free(pointer) after you don't need the memory. I will have a look at your code to understand what you mean by "allocated all objects on the stack" and edit this post.

Edit: NVM you are using c++. Im not sure how VS handles STL containers on the garbage collection but it might be that you are allocating memory for them every time you call CreateLSystems and not clearing them after you use them on the lsystems.push_back(LSystem(...)); call.

Thanks for the quick answer. I only call CreateLSystems() once, at the start of the application.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2013-05-31 20:29:55
May 31 2013 20:17 GMT
#6157
Ok, I got a question.

I'm looking to develop a simple data warehouse solution with a SQL backend. It will be dynamic in the sense that it will support any need to house data in any format. Each set of data will be autonomous, so no need to futz around with foreign key relationships. There will be an independent business tier that will do its own data aggregation against the warehouse, but that's irrelevant for this discussion.

Think of it like when you're working in SQL, defining tables to hold data, except my solution does that job for you but uses SQL as its data store.

I can think of two ways to do this, but I'm not entirely sold on either one:
1. Have the solution actually create and manage tables for each autonomous set of data I want to add to the data warehouse. This has the benefit of visually seeing the tables in SQL and ease of management in the software solution. The problem is that tables are harder to manipulate when they change, and it requires an extra layer to bind it to the business tier for analyzing.

2. Break the data out into a stagnant set of tables that hold each autonomous set of data in parts. You would have a "Table" table that identifies each logical table, a "TableKeys" table that represents each field in each table, and a "TableRows" table that breaks down the data into rows, and for each row matches a value to a field, or "key". This has the benefit of being very dynamic. It also makes it easier to tie back to the business tier for analyzing. The problem is that as the data warehouse grows, this table will get very large and might slow down the system.

What do you guys think? I started building it as option 2, but now I'm leaning towards option 1.
misirlou
Profile Joined June 2010
Portugal3237 Posts
May 31 2013 20:39 GMT
#6158
On June 01 2013 05:17 enigmaticcam wrote:
Ok, I got a question.

I'm looking to develop a simple data warehouse solution with a SQL backend. It will be dynamic in the sense that it will support any need to house data in any format. Each set of data will be autonomous, so no need to futz around with foreign key relationships. There will be an independent business tier that will do its own data aggregation against the warehouse, but that's irrelevant for this discussion.

Think of it like when you're working in SQL, defining tables to hold data, except my solution does that job for you but uses SQL as its data store.

I can think of two ways to do this, but I'm not entirely sold on either one:
1. Have the solution actually create and manage tables for each autonomous set of data I want to add to the data warehouse. This has the benefit of visually seeing the tables in SQL and ease of management in the software solution. The problem is that tables are harder to manipulate when they change.

2. Break the data out into a stagnant set of tables that hold each autonomous set of data in parts. You would have a "Table" table that identifies each logical table, a "TableKeys" table that represents each field in each table, and a "TableRows" table that breaks down the data into rows, and for each row matches a value to a field, or "key". This has the benefit of being very dynamic. The problem is that as the data warehouse grows, this table will get very large and might slow down the system.

What do you guys think? I started building it as option 2, but now I'm leaning towards option 1.


I can't see the drawback on 1. Since you don't use foreign keys there are no constraints when altering/deleting a table. Just alter table -> drop column or add column + insert default value.
I think the second approach complicates things.
supereddie
Profile Joined March 2011
Netherlands151 Posts
May 31 2013 20:43 GMT
#6159
Uuhmm... look up datawarehouse (on wikipedia for example) and see why what you want to do should not be done.
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
Craton
Profile Blog Joined December 2009
United States17246 Posts
May 31 2013 22:10 GMT
#6160
I'm not really seeing why you need to physically separate the data just because it's autonomous.
twitch.tv/cratonz
Prev 1 306 307 308 309 310 1031 Next
Please log in or register to reply.
Live Events Refresh
WardiTV European League
12:00
Swiss Groups Day 2
WardiTV744
TKL 396
Liquipedia
FEL
12:00
Cracov 2025: Qualifier #2
IndyStarCraft 310
CranKy Ducklings93
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 396
IndyStarCraft 310
Rex 119
MindelVK 39
StarCraft: Brood War
Sea 11032
Calm 9514
Rain 7180
Bisu 2849
Horang2 2292
Hyuk 1365
Jaedong 1317
Shuttle 516
Rush 430
EffOrt 300
[ Show more ]
Stork 282
Leta 270
Last 240
PianO 210
Mini 206
ToSsGirL 156
Hyun 140
ZerO 95
Movie 79
hero 55
TY 53
Sea.KH 41
JYJ40
Killer 35
JulyZerg 29
ajuk12(nOOB) 22
HiyA 20
GoRush 19
Free 19
zelot 19
Terrorterran 18
Sacsri 17
Barracks 16
Icarus 6
ivOry 2
Stormgate
NightEnD21
Dota 2
qojqva3130
XcaliburYe514
canceldota91
League of Legends
singsing2904
Counter-Strike
x6flipin739
zeus453
Heroes of the Storm
Khaldor354
Other Games
Gorgc2822
B2W.Neo1336
DeMusliM533
Happy390
Fuzer 389
crisheroes359
Pyrionflax337
XaKoH 263
Hui .235
RotterdaM143
ArmadaUGS66
KnowMe53
ZerO(Twitch)18
Organizations
StarCraft: Brood War
CasterMuse 25
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 38
• iHatsuTV 6
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV771
• Ler42
Upcoming Events
BSL: ProLeague
5h 12m
Dewalt vs Bonyth
Replay Cast
1d 11h
Sparkling Tuna Cup
1d 21h
WardiTV European League
2 days
The PondCast
2 days
Replay Cast
3 days
RSL Revival
3 days
ByuN vs SHIN
Clem vs Reynor
Replay Cast
4 days
RSL Revival
4 days
Classic vs Cure
FEL
5 days
[ Show More ]
RSL Revival
5 days
FEL
5 days
FEL
6 days
Sparkling Tuna Cup
6 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.