• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:46
CEST 10:46
KST 17:46
  • 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
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists22[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
RSL Revival: Season 5 - Qualifiers and Main Event8Code S Season 1 (2026) - RO12 Results02026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Code S Season 1 (2026) - RO12 Results Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 1 (2026) SC2 INu's Battles#15 <BO.9 2Matches> WardiTV Spring Cup SEL Masters #6 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
ASL21 General Discussion Why there arent any 256x256 pro maps? [BSL22] RO16 Group B - Saturday 21:00 CEST BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[ASL21] Ro8 Day 2 [Megathread] Daily Proleagues Escore Tournament StarCraft Season 2 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread Daigo vs Menard Best of 10 Diablo IV
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
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
ramps on octagon
StaticNine
Sexual Health Of Gamers
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1622 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
Hyrule19210 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 1h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Livibee 57
StarCraft: Brood War
Larva 284
Killer 238
Leta 142
PianO 138
Soma 130
ToSsGirL 110
Dewaltoss 79
Hm[arnc] 60
sorry 34
Sharp 21
[ Show more ]
yabsab 19
NotJumperer 18
Sacsri 17
IntoTheRainbow 16
Shine 3
Dota 2
XaKoH 772
monkeys_forever207
NeuroSwarm124
XcaliburYe124
League of Legends
JimRising 845
Other Games
gofns19990
summit1g7521
WinterStarcraft647
Happy470
singsing217
MindelVK16
Railgan15
Organizations
Dota 2
PGL Dota 2 - Main Stream103
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1246
Upcoming Events
RSL Revival
1h 14m
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
5h 14m
BSL
10h 14m
IPSL
10h 14m
eOnzErG vs TBD
G5 vs Nesh
Patches Events
15h 14m
Replay Cast
1d
Wardi Open
1d 1h
Afreeca Starleague
1d 1h
Jaedong vs Light
Monday Night Weeklies
1d 7h
Replay Cast
1d 15h
[ Show More ]
Sparkling Tuna Cup
2 days
Afreeca Starleague
2 days
Snow vs Flash
WardiTV Invitational
2 days
GSL
3 days
Classic vs Cure
Maru vs Rogue
GSL
4 days
SHIN vs Zoun
ByuN vs herO
OSC
4 days
OSC
4 days
Replay Cast
4 days
Escore
5 days
The PondCast
5 days
WardiTV Invitational
5 days
Replay Cast
5 days
CranKy Ducklings
6 days
RSL Revival
6 days
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
6 days
BSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S2: W5
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 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

Upcoming

BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
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
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.