• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:56
CEST 21:56
KST 04:56
  • 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
[ASL21] Ro24 Preview Pt2: News Flash8[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy16ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple6Aligulac acquired by REPLAYMAN.com/Stego Research8Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool49Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
Team Liquid Map Contest #22 - Presented by Monster Energy Aligulac acquired by REPLAYMAN.com/Stego Research Weekly Cups (March 23-29): herO takes triple What mix of new & old maps do you want in the next ladder pool? (SC2) herO wins SC2 All-Star Invitational
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
Mutation # 519 Inner Power The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat
Brood War
General
Behind the scenes footage of ASL21 Group E ASL21 General Discussion A cwal.gg Extension - Easily keep track of anyone BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Azhi's Colosseum - Foreign KCM [ASL21] Ro24 Group F [ASL21] Ro24 Group E 🌍 Weekly Foreign Showmatches
Strategy
Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Starcraft Tabletop Miniature Game General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2052 users

The Big Programming Thread - Page 224

Forum Index > General Forum
Post a Reply
Prev 1 222 223 224 225 226 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.
Recognizable
Profile Blog Joined December 2011
Netherlands1552 Posts
December 29 2012 19:14 GMT
#4461
On December 30 2012 04:05 windzor wrote:
Show nested quote +
On December 30 2012 04:04 Recognizable wrote:
Is a library the same thing as a list? Can't find it on google.


In what context? My guess is, that in yours it's a no.


Ok. I probably haven't learned what it is yet. I'll cross paths with libraries someday and keep it in mind when tackling problem 3.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
December 29 2012 19:20 GMT
#4462
On December 30 2012 04:14 Recognizable wrote:
Show nested quote +
On December 30 2012 04:05 windzor wrote:
On December 30 2012 04:04 Recognizable wrote:
Is a library the same thing as a list? Can't find it on google.


In what context? My guess is, that in yours it's a no.


Ok. I probably haven't learned what it is yet. I'll cross paths with libraries someday and keep it in mind when tackling problem 3.


Are you speaking of the C# library class? Then it's a clear no. The library class that provides key->value mappings for fast lookups while list is... well, a list.
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Recognizable
Profile Blog Joined December 2011
Netherlands1552 Posts
December 29 2012 21:26 GMT
#4463
Wait, are we talking about dictionaries(in Python)? Anyway I'll solve the problem some way, some day.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
December 29 2012 21:42 GMT
#4464
On December 30 2012 06:26 Recognizable wrote:
Wait, are we talking about dictionaries(in Python)? Anyway I'll solve the problem some way, some day.


Actually, I was confused. The C# dictionary is "dictionary" in C# as well. Don't know what you mean by library then.
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
tec27
Profile Blog Joined June 2004
United States3702 Posts
December 29 2012 23:39 GMT
#4465
He's talking about library in what AmericanUmlaut said, IE: a library to store the number you're factoring. He means a module, or a set of classes, or something along those lines (which you might need to store the number you're factoring because it is likely to be larger than a normal integer, and not all languages have built in large number classes).
Can you jam with the console cowboys in cyberspace?
Recognizable
Profile Blog Joined December 2011
Netherlands1552 Posts
December 30 2012 12:40 GMT
#4466
On December 30 2012 08:39 tec27 wrote:
He's talking about library in what AmericanUmlaut said, IE: a library to store the number you're factoring. He means a module, or a set of classes, or something along those lines (which you might need to store the number you're factoring because it is likely to be larger than a normal integer, and not all languages have built in large number classes).


http://www.tutorialspoint.com/python/python_classes_objects.htm
It's probably in the advanced section here somewhere? I've just started with Classes/Objects.
b3n3tt3
Profile Joined January 2012
595 Posts
Last Edited: 2012-12-30 13:24:00
December 30 2012 13:20 GMT
#4467
A hint to the euler #3:+ Show Spoiler +
checking divisibility can be done by mod(%),
mathematically all prime factors of n are <sqrt(n), so checking for primality upto the sqrt should shave a lot of time
AmericanUmlaut
Profile Blog Joined November 2010
Germany2594 Posts
December 30 2012 14:22 GMT
#4468
When I said "library" I was referring to an external component that offers a collection of classes and/or functions. The reason is that most languages (that I am familiar with) don't offer native support for integers larger than 32 bits, so if you want to store anything larger than that you'll need to use a library that includes a class for very large integers. I think I've read that Python supports larger ints natively, and C has a "long long int" or something like that that supports larger integers, but most languages don't.
The frumious Bandersnatch
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
December 30 2012 15:26 GMT
#4469
On December 30 2012 23:22 AmericanUmlaut wrote:
When I said "library" I was referring to an external component that offers a collection of classes and/or functions. The reason is that most languages (that I am familiar with) don't offer native support for integers larger than 32 bits, so if you want to store anything larger than that you'll need to use a library that includes a class for very large integers. I think I've read that Python supports larger ints natively, and C has a "long long int" or something like that that supports larger integers, but most languages don't.


For some of the euler examples, a 64bit integer won't be enough.

I did most of that either in Perl - which has native support for integers of basically unlimited size - or in C with Gnu MP. Don't know about python.
Shenghi
Profile Joined August 2010
167 Posts
December 30 2012 19:12 GMT
#4470
As far as I'm aware Python has no defined maxmimum number. It's only limited by available address space.
People are not born stupid, they choose to be stupid. If you made that choice, please change your mind.
Frigo
Profile Joined August 2009
Hungary1023 Posts
December 31 2012 16:58 GMT
#4471
Just transitioned from Subversion to Mercurial since my build- and file server is dead and can't access svn repos. Tried the same with Git at the previous server death but it only made my hair stand on end. However the transition to Mercurial was surprisingly easy, TortoiseHg is easy to use. Have yet to push/pull/synchronize it with other repositories though.

Also transitioned from Ant to Gradle, due to the former's inability to generate Eclipse .classpath files based on Ivy dependencies. Again, this was suprisingly easy, was done in 20 minutes most, with my smallish prior experience in Gradle. My build.gradle is like 12 lines long. Have yet to configure Jenkins to use it, but since my server is dead, this is a non-issue at the moment.

However Gradle runs unit tests very slowly for some reason, I'm looking into it at the moment. Apart from this, both utils are recommended.
http://www.fimfiction.net/user/Treasure_Chest
ptrpb
Profile Joined March 2011
Canada753 Posts
Last Edited: 2013-01-01 23:00:07
January 01 2013 22:14 GMT
#4472
nevermind, found the problem
MBAACC | SG | shit at fighting games
TriZen
Profile Blog Joined March 2011
England219 Posts
Last Edited: 2013-01-04 00:43:43
January 03 2013 23:02 GMT
#4473
Heyy, I haven't posted in here before.. probably because I don't really do much programming.

However! It is a part of my computing degree and I am currently stuck on using a jTable with a connected element being a database table. I have absolutely no clue how to sort the table, or have it sorted on load.

If you think you could help, I've put more details of the problem in the spoiler below!

+ Show Spoiler +

The IDE I am using is Netbeans. Had to create a league management system for a given scenario, I have everything done but the jTable sort.

[image loading]

If you have any idea on how I would go about having this load using SQL ORDER BY Points desc (or any other way); i'd greatly appreciate the help.

I really thought it'd be regarding the following statement:

teamQuery = java.beans.Beans.isDesignTime() ? null : AlumniDBPUEntityManager.createQuery("SELECT t FROM Team t");

However changing the SQL at all just presents numerous bugs.


Hopefully when my programming improves i can contribute to this thread more, however at the moment I only really know SQL, html and vb. Thanks in advance :D

Edit: Solved this now - was a simple mistake using sql (solution was SELECT t FROM Team t ORDER BY (t.points) DESC, (t.difference) DESC, (t.name) ASC).
Hug-A-Hydralisk
Profile Joined February 2012
United States174 Posts
January 03 2013 23:26 GMT
#4474


My brother's trip to Las Vegas along with a programmer from Silicon Valley.
Get your PC gaming fix here: http://www.youtube.com/cinicraft YOU KNOW YOU WANT TO!!
DeepBlu2
Profile Blog Joined April 2004
United States975 Posts
January 03 2013 23:48 GMT
#4475
Anyone mind suggesting a good starting language that is important, and a good resource for learning it?
u gotta sk8
Craton
Profile Blog Joined December 2009
United States17281 Posts
Last Edited: 2013-01-04 04:02:50
January 04 2013 00:05 GMT
#4476
C#.NET and C++ are both in pretty high demand are are pretty prevalent in the industry. I don't know how Java stacks up to those, but I imagine it's in strong demand. C# would be the easier one to start with of the first two. I don't really have good learning resources, though.
twitch.tv/cratonz
phar
Profile Joined August 2011
United States1080 Posts
January 04 2013 03:00 GMT
#4477
There are links in the first post of this topic for learning stuffs. If you've done a total of 0 programming before, I would recommend starting with a less syntax heavy language, like Python. Also, learnpythonthehardway.org
Who after all is today speaking about the destruction of the Armenians?
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
Last Edited: 2013-01-04 15:42:15
January 04 2013 11:22 GMT
#4478
http://programmerryangosling.tumblr.com/

have you guys seen this? lol pretty funny stuff.

CSS questions:
+ Show Spoiler +

[image loading]


1) how do I extend the width of the main menu bar to fit whole page dynamically?
2) same with the submenu

HTML
+ Show Spoiler +
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="primary.css" type="text/css" />
<title>Untitled Document</title>
</head>
<body>
<div id="container">
<ul id="menu">
<li><a href="#">News</a>
<ul>
<li><a href="#">legacy</a></li>
</ul></li>
<li><a href="#">Expertise</a></li>
<li><a href="#">journey</a>
<ul>
<li><a href="#">legacy</a></li>
<li><a href="#">journey</a></li>
</ul> </li>
<li><a href="#">Solutions</a>
<ul>
<li><a href="#">legacy</a></li>
<li><a href="#">journey</a></li>
<li><a href="#">rally</a></li>
</ul></li>
<li><a href="#">Publications</a>
<ul>
<li><a href="#">legacy</a></li>
<li><a href="#">journey</a></li>
<li><a href="#">rally</a></li>
<li><a href="#">legacy</a></li>
<li><a href="#">journey</a></li>
<li><a href="#">rally</a></li>
</ul>
</li>
<li><a href="#">Regimbeau</a></li>
<li><a href="#" class="hidden">Career</a></li>
<li><a href="#">Contact</a></li>
</ul>
<!--container--></div>
</body>
</html>



CSS
+ Show Spoiler +
html, body {
margin: 0;
font: 100% "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #000 ;
background: #000 ;
}
/* HTML5 tags */
header, section, footer,
aside, nav, article, figure {display: block;}
/*
#container {
width: 1000px;
margin: 30px auto 900px;
padding: 0 0 500px;
background: #999 ;
overflow: auto;
text-transform: uppercase;
}
*/

ul#menu {
width:1000px;
text-transform: uppercase;} /* menu properties */

ul#menu ul {width: 500px;} /* controls the number of submenus per row */
ul#menu, ul#menu ul{
list-style-type: none;
font-size: 1em;
background: #f00 ;
} /* submenu properties */
ul#menu li {
height: 30px;
line-height: 30px;
width: 125px;
float: left;
color: #fff ;
}
ul#menu li ul{display: none;} /* hides the submenus*/
ul#menu li:hover ul{display : inline-block;} /* shows submenus on hover*/
ul#menu ul li a {
width: 125px;
float: left;
color: #fff;
} /*submenus items properties*/
ul#menu a{
display: block;
text-decoration: none;
color: #fff ;
} /*menu items properties*/
ul#menu a:hover,
ul#menu a:active {background: #00f ;}

ul#menu .hidden{
display:none;
} /*Hides the menu */
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2013-01-05 02:40:22
January 05 2013 02:38 GMT
#4479
I would use media queries because I don't like JS, and I don't like percentage solutions like the one below.


If you're talking simple HTML/CSS, then put the entire main menu in its own container, set that container's CSS to width to "100%", and set the width of each option in your main as a percentage, all of which add up to 100.


Hopefully I'm not misinterpreting.
There is no one like you in the universe.
Saracen
Profile Blog Joined December 2007
United States5139 Posts
January 05 2013 04:26 GMT
#4480
Just started on ProjectEuler... Is it cheating to use Python? It feels like it's cheating, since Python has pretty much infinite integer precision afaik...

For example, for number 16...
+ Show Spoiler +
reduce(lambda x, y: int(x) + int(y), list(str(2 ** 1000)))

...seems just unfair when it seems like they're looking for a clever/elegant way to deal with large numbers.
Prev 1 222 223 224 225 226 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 4h 4m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 646
IndyStarCraft 181
ProTech137
UpATreeSC 114
elazer 50
MindelVK 31
StarCraft: Brood War
Britney 13762
Calm 2883
Soma 234
Rush 129
HiyA 71
Sexy 12
NaDa 10
IntoTheRainbow 9
Dota 2
canceldota111
capcasts67
League of Legends
Reynor57
Counter-Strike
pashabiceps2597
fl0m1708
kRYSTAL_49
Heroes of the Storm
Liquid`Hasu403
Other Games
summit1g4387
FrodaN2745
Beastyqt789
ceh9572
ToD312
C9.Mang0150
QueenE49
Trikslyr38
Organizations
StarCraft 2
angryscii 23
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Reevou 12
• intothetv
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• IndyKCrew
StarCraft: Brood War
• blackmanpl 51
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2945
• WagamamaTV807
• masondota2477
League of Legends
• TFBlade1406
Other Games
• imaqtpie1056
• Shiphtur197
Upcoming Events
OSC
4h 4m
RSL Revival
14h 4m
TriGGeR vs Cure
ByuN vs Rogue
Big Brain Bouts
20h 4m
Replay Cast
1d 4h
RSL Revival
1d 14h
Maru vs MaxPax
BSL
1d 23h
RSL Revival
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
Afreeca Starleague
3 days
[ Show More ]
Replay Cast
4 days
Sparkling Tuna Cup
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-03-31
WardiTV Winter 2026
NationLESS Cup

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
CSL Season 20: Qualifier 2
RSL Revival: Season 4
Nations Cup 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
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

Escore Tournament S2: W1
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
StarCraft2 Community Team League 2026 Spring
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 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.