• 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 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
Hyrule19152 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 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.