• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:27
CET 01:27
KST 09:27
  • 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 Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets0$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)12Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822
StarCraft 2
General
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns Spontaneous hotkey change zerg Chinese SC2 server to reopen; live all-star event in Hangzhou SC2 All-Star Invitational: Jan 17-18
Tourneys
$25,000 Streamerzone StarCraft Pro Series announced $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest Data analysis on 70 million replays
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Awesome Games Done Quick 2026! Mechabellum Stormgate/Frost Giant Megathread
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1352 users

The Big Programming Thread - Page 62

Forum Index > General Forum
Post a Reply
Prev 1 60 61 62 63 64 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.
Frigo
Profile Joined August 2009
Hungary1023 Posts
June 28 2011 09:01 GMT
#1221
Anyone knows a stable, in-place radix sort algorithm? Every single one I have seen is either unstable, or requires O(n) additional memory.
http://www.fimfiction.net/user/Treasure_Chest
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
June 29 2011 00:51 GMT
#1222
I once challenged myself to write a program that would output its own source code exactly. Also known as a quine. It was a lot of fun and a very unique challenge, and anyone looking for a programming mindbender I recommend to try the same. Here's my C++ solution: http://codepad.org/05NiPewP
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
June 29 2011 00:57 GMT
#1223
On June 29 2011 09:51 RoTaNiMoD wrote:
I once challenged myself to write a program that would output its own source code exactly. Also known as a quine. It was a lot of fun and a very unique challenge, and anyone looking for a programming mindbender I recommend to try the same. Here's my C++ solution: http://codepad.org/05NiPewP


Why can't you just open the source code file and print it out line by line? As long as the code knows the path where it is stored this should be easy.
Kambing
Profile Joined May 2010
United States1176 Posts
June 29 2011 00:58 GMT
#1224
On June 29 2011 09:57 AcrossFiveJulys wrote:
Show nested quote +
On June 29 2011 09:51 RoTaNiMoD wrote:
I once challenged myself to write a program that would output its own source code exactly. Also known as a quine. It was a lot of fun and a very unique challenge, and anyone looking for a programming mindbender I recommend to try the same. Here's my C++ solution: http://codepad.org/05NiPewP


Why can't you just open the source code file and print it out line by line? As long as the code knows the path where it is stored this should be easy.


Because that's not the point. See:

http://en.wikipedia.org/wiki/Quine_(computing)
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
June 29 2011 01:12 GMT
#1225
On June 29 2011 09:57 AcrossFiveJulys wrote:
Show nested quote +
On June 29 2011 09:51 RoTaNiMoD wrote:
I once challenged myself to write a program that would output its own source code exactly. Also known as a quine. It was a lot of fun and a very unique challenge, and anyone looking for a programming mindbender I recommend to try the same. Here's my C++ solution: http://codepad.org/05NiPewP


Why can't you just open the source code file and print it out line by line? As long as the code knows the path where it is stored this should be easy.


The program you described is a file outputter -- it takes as input a filename (and thus a file) and outputs that file's contents. The quine program is a self-outputter. It takes nothing as input and outputs itself.
Pawsom
Profile Blog Joined February 2009
United States928 Posts
June 30 2011 16:59 GMT
#1226
On June 29 2011 09:57 AcrossFiveJulys wrote:
Show nested quote +
On June 29 2011 09:51 RoTaNiMoD wrote:
I once challenged myself to write a program that would output its own source code exactly. Also known as a quine. It was a lot of fun and a very unique challenge, and anyone looking for a programming mindbender I recommend to try the same. Here's my C++ solution: http://codepad.org/05NiPewP


Why can't you just open the source code file and print it out line by line? As long as the code knows the path where it is stored this should be easy.

Try it with file I/O it'll be much harder than you think.
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
July 01 2011 13:28 GMT
#1227
my classmate and i are trying to make a website and i was thinking of making ourselves our own server. can you guys suggest distros of linux best used as servers?
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
tofucake
Profile Blog Joined October 2009
Hyrule19188 Posts
July 01 2011 13:40 GMT
#1228
Any of them! I like Slackware, but that's just because I've used it before. It can be quite hard to learn.
Liquipediaasante sana squash banana
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
July 01 2011 13:43 GMT
#1229
On July 01 2011 22:28 icystorage wrote:
my classmate and i are trying to make a website and i was thinking of making ourselves our own server. can you guys suggest distros of linux best used as servers?


If you don't have much Linux experience, then the Ubuntu server edition may be a good starting point. Ubuntu is easy to setup and use and has a very large community behind it. If you're looking to maximize the efficiency of your server and have decent Linux knowledge already, then there are other distros that allow for more control, but take more effort to setup, such as Slackware and Debian.
Such flammable little insects!
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
July 01 2011 16:21 GMT
#1230
are there tutorials in the net for setting them up? my classmate and i were browsing earlier and was thinking in using RedHat, any thoughts?
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
July 01 2011 16:39 GMT
#1231
You could use Ubuntu Server and set up a LAMP (Linux, Apache, MySQL, PHP) web server.
"When the geyser died, a probe came out" - SirJolt
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
July 01 2011 16:46 GMT
#1232
we're planning on a postgresql (probably gonna use LAPP) and a dedicated web server. but we are using an old unused computer (pentium d). so we want to use the most efficient linux as server to compensate for the old computer.
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2011-07-01 20:26:34
July 01 2011 20:26 GMT
#1233
On July 02 2011 01:46 icystorage wrote:
we're planning on a postgresql (probably gonna use LAPP) and a dedicated web server. but we are using an old unused computer (pentium d). so we want to use the most efficient linux as server to compensate for the old computer.


If that's what you're worrying about, don't. There are not general performance differences between how different distributions will run your server out-of-the-box that will be noticable and which you will be able to identify, and a Pentium D is by far modern enough that it is just not at all a concern. Until a year ago I was running Apache serving up my music collection into a web app on a 300MHz Pentium II.

Pick at random, or pick whatever you like the name of best, or pick whatever you think is easiest, but don't pick a distribution because you think it will be fast.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
July 01 2011 22:25 GMT
#1234
On July 02 2011 05:26 catamorphist wrote:
Show nested quote +
On July 02 2011 01:46 icystorage wrote:
we're planning on a postgresql (probably gonna use LAPP) and a dedicated web server. but we are using an old unused computer (pentium d). so we want to use the most efficient linux as server to compensate for the old computer.


If that's what you're worrying about, don't. There are not general performance differences between how different distributions will run your server out-of-the-box that will be noticable and which you will be able to identify, and a Pentium D is by far modern enough that it is just not at all a concern. Until a year ago I was running Apache serving up my music collection into a web app on a 300MHz Pentium II.

Pick at random, or pick whatever you like the name of best, or pick whatever you think is easiest, but don't pick a distribution because you think it will be fast.

ill take your word on it and thanks!
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
tec27
Profile Blog Joined June 2004
United States3702 Posts
July 01 2011 22:37 GMT
#1235
On July 02 2011 01:46 icystorage wrote:
we're planning on a postgresql (probably gonna use LAPP) and a dedicated web server. but we are using an old unused computer (pentium d). so we want to use the most efficient linux as server to compensate for the old computer.

Apache, Lighttpd, and nginx are all good. If you're just starting out though, Apache or Lighttpd are probably your best bets. Apache is more configurable, but (as the name suggests) Lighttpd is more lightweight. Just starting out though, I'd probably go with Apache, as you're going to be able to find more easy information on how to get it configured to do whatever you want.
Can you jam with the console cowboys in cyberspace?
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2011-07-01 22:55:48
July 01 2011 22:43 GMT
#1236
On July 02 2011 01:46 icystorage wrote:
we're planning on a postgresql (probably gonna use LAPP) and a dedicated web server. but we are using an old unused computer (pentium d). so we want to use the most efficient linux as server to compensate for the old computer.

I don't think efficiency is a big deal here for runtime since "Server" editions for a distro typically only amount to default packages while running on the same kernel. As long as you aren't running a desktop manager in the background you should be fine.

I would recommend RHEL or Fedora for security reasons. If you're hardcore about uptime, you should check out KSplice (shameless plug for friends). Other folks in this thread may be interested in the paper.

Edit: None of this advice should matter for a school project... :p
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
One Student
Profile Joined April 2011
73 Posts
July 03 2011 23:21 GMT
#1237
Hey guys, I have another question. Lately I've been learning some c++ (only familiar with java) and read the book by the Deitell bros. How to program; C++. Anyways, I'm almost done the book, just 2 more chapters to go about STL and Boost Libraries.

So after I'm done I want to get into socket programming in windows and also gui programming in c++ (again only familiar with gui in java :| ). So thought I'd ask some experienced TL'ers for some recommended books or sites.

I tried looking for some socket programming guides online, but most of 'em were done on Linux. I know there won't be much difference between that and windows except for the methods and libraries, but I want a guide that explains to me the whole process from A to Z. I'm talking about the libraries available, functions, structs, the whole shabang. I have taken a networking course so I am familiar with the networking accept involved just not the classes and how to use them.

Thanks for the help in advance. ;D
Depression is what you get for leading a repetitive life.
Frigo
Profile Joined August 2009
Hungary1023 Posts
July 03 2011 23:42 GMT
#1238
Your best bet would be the Qt toolkit, especially if you have a Java background. It has a GUI implementation, I believe sockets as well, it is multiplatform, has a somewhat decent object hierarchy, and quite a few features.
http://www.fimfiction.net/user/Treasure_Chest
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
July 05 2011 23:01 GMT
#1239
I find GUI programming in C++ to be a pain in general. The tools you use are ANCIENT, atleast if you use Visual Studio-stuff. That said I love the language and I love network programming.

I would advise you write the core of your program in C++ and then all the GUI in C#. That's how we do alot of stuff at work and its pretty solid, it just takes way too long time with c++ for windows GUI.
England will fight to the last American
Patriot.dlk
Profile Blog Joined October 2004
Sweden5462 Posts
Last Edited: 2011-07-09 21:06:26
July 09 2011 21:05 GMT
#1240
I have a question regarding writing effective code using java? I often come up with solutions I like but I can't really grasp if I did a good solution or not.

My education in informatics had about 10 weeks of java.

Now I'm a developer since about 6 weeks and man I have a blast. So far it's been java only. My department develops this ERP system and I have mostly been doing adaptations and integrations that customers bought. Basically handle input/output to our ERP and other systems. But this Friday my scrummaster approached me asking if I would mind being assigned doing a new feature. It's about logic regarding if it's a swedish holliday or not and if so determining the closest work day. Basically I will have to use mathematical algorithms works out the next occurrence.

This will be implemented in this big ERP through a jsf layer. Our system has huge customers so it's going to be many users using this and it my question is how you know that you don't write huge bottlenecks in your code?

Another specific program I wrote yet I questioned the effectiveness of my code is this example: My java program receive a path to a file and you are to copy it onto another directory but you need to make sure it don't override anything so it should get an incremental number. So how do you determine the next number in an efficient way? the directory looks like this: yourfile1, yourfile2, yourfile7, yourfile3, yourfile5, other file, other file, other file.
Prev 1 60 61 62 63 64 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 11h 33m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft459
elazer 123
White-Ra 115
UpATreeSC 115
SpeCial 93
SteadfastSC 68
CosmosSc2 48
StarCraft: Brood War
Britney 9586
Shuttle 827
Artosis 678
Sexy 64
GoRush 12
NaDa 4
Dota 2
syndereN321
capcasts101
canceldota14
League of Legends
C9.Mang0169
Counter-Strike
summit1g5355
Foxcn225
Super Smash Bros
PPMD50
Other Games
tarik_tv6508
shahzam456
ToD272
B2W.Neo223
XaKoH 140
Maynarde125
Dewaltoss52
Ketroc9
Organizations
Other Games
gamesdonequick1502
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• davetesta17
• intothetv
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki24
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21444
• WagamamaTV492
League of Legends
• TFBlade864
Other Games
• imaqtpie2329
• Shiphtur219
Upcoming Events
WardiTV Invitational
11h 33m
PiGosaur Cup
1d
WardiTV Invitational
1d 11h
The PondCast
2 days
OSC
2 days
OSC
3 days
All Star Teams
4 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
4 days
All Star Teams
5 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
5 days
[ Show More ]
OSC
5 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2026-01-12
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.