• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:36
CET 12:36
KST 20:36
  • 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
ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
BGE Stara Zagora 2026 cancelled3Blizzard Classic Cup - Tastosis announced as captains12Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18BSL Season 224
StarCraft 2
General
BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT Terran AddOns placement BGE Stara Zagora 2026 cancelled Blizzard Classic Cup - Tastosis announced as captains
Tourneys
[GSL CK] Team Maru vs. Team herO WardiTV Team League Season 10 Master Swan Open (Global Bronze-Master 2) RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
ASL21 General Discussion BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea Are you ready for ASL 21? Hype VIDEO
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread PC Games Sales Thread Path of Exile No Man's Sky (PS4 and PC) Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Mexico's Drug War NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
Formula 1 Discussion 2024 - 2026 Football Thread General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2800 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
Hyrule19193 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 12h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 211
Lowko208
StarCraft: Brood War
Britney 51671
Mini 642
EffOrt 523
BeSt 486
actioN 389
Rush 305
Light 238
ZerO 161
Stork 157
Soma 155
[ Show more ]
Leta 106
ToSsGirL 72
Mind 60
sorry 47
Pusan 42
Nal_rA 42
Backho 41
Sea.KH 38
IntoTheRainbow 34
zelot 21
ajuk12(nOOB) 14
Bale 13
League of Legends
JimRising 335
Counter-Strike
olofmeister1418
shoxiejesuss810
fl0m764
zeus257
edward80
Heroes of the Storm
Khaldor136
Other Games
singsing1302
B2W.Neo1290
crisheroes281
Sick95
Hui .94
ZerO(Twitch)18
Organizations
Dota 2
PGL Dota 2 - Main Stream10591
Other Games
gamesdonequick851
StarCraft: Brood War
lovetv 19
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1664
• TFBlade571
• Stunt487
Upcoming Events
Replay Cast
12h 24m
CranKy Ducklings
22h 24m
RSL Revival
22h 24m
MaxPax vs Rogue
Clem vs Bunny
WardiTV Team League
1d
uThermal 2v2 Circuit
1d 5h
Patches Events
1d 5h
BSL
1d 8h
Sparkling Tuna Cup
1d 22h
RSL Revival
1d 22h
ByuN vs SHIN
Maru vs Krystianer
WardiTV Team League
2 days
[ Show More ]
BSL
2 days
Replay Cast
2 days
Replay Cast
2 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Team League
4 days
GSL
4 days
The PondCast
5 days
WardiTV Team League
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-03-12
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open 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.