• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:08
CEST 20:08
KST 03:08
  • 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 ASL50Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings How does the number of casters affect your enjoyment of esports? Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster
Tourneys
Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event
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
BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save Flash Announces Hiatus From ASL
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET 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
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile 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
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread 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: 761 users

The Big Programming Thread - Page 62

Forum Index > General Forum
Post a Reply
Prev 1 60 61 62 63 64 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.
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
Jollibee19343 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
Hyrule19030 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
Jollibee19343 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
Jollibee19343 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
Jollibee19343 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 States3696 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 1031 Next
Please log in or register to reply.
Live Events Refresh
Big Brain Bouts
16:00
#97
RotterdaM680
Liquipedia
FEL
16:00
Polish Championship: Qualifier
IndyStarCraft 227
CranKy Ducklings71
Liquipedia
WardiTV European League
16:00
Swiss Groups Day 2
Jumy vs ArTLIVE!
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
WardiTV851
TKL 253
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 680
TKL 253
IndyStarCraft 227
Hui .187
UpATreeSC 75
StarCraft: Brood War
Britney 30653
Calm 3783
Rain 2340
Horang2 881
Larva 458
BeSt 232
Mind 182
Movie 82
Mong 70
sas.Sziky 48
[ Show more ]
Barracks 47
Shinee 33
yabsab 32
soO 20
Free 19
Shine 13
Dewaltoss 9
Stormgate
NightEnD11
Dota 2
Gorgc12527
qojqva3066
League of Legends
Grubby3293
singsing2146
Counter-Strike
ScreaM2894
fl0m1629
Foxcn372
byalli247
Other Games
FrodaN1291
Beastyqt605
Fuzer 255
Trikslyr57
ZombieGrub22
Nathanias14
Organizations
Other Games
BasetradeTV24
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV532
League of Legends
• Nemesis5061
• Jankos1520
• TFBlade1053
Other Games
• imaqtpie867
• Shiphtur377
Upcoming Events
Korean StarCraft League
8h 52m
CranKy Ducklings
15h 52m
RSL Revival
15h 52m
ByuN vs Cham
herO vs Reynor
FEL
21h 52m
RSL Revival
1d 15h
Clem vs Classic
SHIN vs Cure
FEL
1d 17h
BSL: ProLeague
1d 23h
Dewalt vs Bonyth
Replay Cast
3 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
5 days
RSL Revival
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
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.