• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:09
CEST 08:09
KST 15:09
  • 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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
IntoTheTV X SOOP SC2 League : Weekly & Monthly4Clem: "I don't have that much hope in Blizzard"2ZeroSpace Early Access is Now Live!20Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)89
StarCraft 2
General
How would you feel about frequent/monthly balance patches for SC2? Balance hotfix patch 5.0.16b (July 16) Reynor: GSL Loss Wasn't About Preparation Format Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters
Tourneys
IntoTheTV X SOOP SC2 League : Weekly & Monthly INu's Battles#18 - Cure, herO, Rogue & ByuN RSL Revival: Season 6 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026
Strategy
[G] Having the right mentality to improve
Custom Maps
[M] (2) Industrial Park New Map Maker - Looking for Advice - Love or Hate
External Content
Mutation # 535 Assembly of Vengeance The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together
Brood War
General
BW General Discussion How Famous was FlaSh before his Debut? Animated Gateway BGH Auto Balance -> http://bghmmr.eu/ HORROR STARCRAFT MOVIE
Tourneys
Small VOD Thread 2.0 Escore Tournament - Season 3 [Megathread] Daily Proleagues [IPSL] Spring 2026 Grand Finals - This Weekend!
Strategy
Simple Questions, Simple Answers PvT advise for noobs Fighting Spirit mining rates Creating a full chart of Zerg builds
Other Games
General Games
General RTS Discussion Thread Path of Exile ZeroSpace Early Access is Now Live! Nintendo Switch Thread Diablo IV
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance Vanilla Mini Mafia
Community
General
US Politics Mega-thread Artificial Intelligence Thread Russo-Ukrainian War Thread How to buy a book - shipping from Korea to Europe The Games Industry And ATVI
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
How Games can Help with Majo…
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4582 users

The Big Programming Thread - Page 488

Forum Index > General Forum
Post a Reply
Prev 1 486 487 488 489 490 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.
Vorenius
Profile Blog Joined December 2010
Denmark1979 Posts
June 02 2014 21:11 GMT
#9741
On June 03 2014 06:06 Blitzkrieg0 wrote:
Show nested quote +
On June 03 2014 05:09 Blisse wrote:
Math seems a lot more hardcore (fourier series t-t) but if the math guy doesn't have the comp sci experience i don't see how you could justify hiring him for a dev position.


Teaching the physicist how to python is a lot easier than teaching a python guy advanced physics.

Well yeah. That much seems obvious.
If you want a candidate to do advanced physics and basic programming, then get a physicist. If you want a candidate to do advanced programming and have a basic knowledge of physics, you should probably get a computer scientist. If you are simply looking to fill a development job though, I don't know why you would consider a physicist.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
June 02 2014 21:16 GMT
#9742
On June 03 2014 06:11 Vorenius wrote:
Show nested quote +
On June 03 2014 06:06 Blitzkrieg0 wrote:
On June 03 2014 05:09 Blisse wrote:
Math seems a lot more hardcore (fourier series t-t) but if the math guy doesn't have the comp sci experience i don't see how you could justify hiring him for a dev position.


Teaching the physicist how to python is a lot easier than teaching a python guy advanced physics.

Well yeah. That much seems obvious.
If you want a candidate to do advanced physics and basic programming, then get a physicist. If you want a candidate to do advanced programming and have a basic knowledge of physics, you should probably get a computer scientist. If you are simply looking to fill a development job though, I don't know why you would consider a physicist.


I was going for advanced physics and advanced programming. You make it too simple.
I'll always be your shadow and veil your eyes from states of ain soph aur.
2primenumbers
Profile Blog Joined February 2014
United States144 Posts
June 02 2014 22:48 GMT
#9743
I am learning Java, what is a good companion available for free online?
o face
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-06-02 22:50:39
June 02 2014 22:50 GMT
#9744
When should you use aliases for your modules in python? Just when there are conflicts or always for obscure modules?

import pandas as pan

On June 03 2014 07:48 2primenumbers wrote:
I am learning Java, what is a good companion available for free online?

I've heard great things about headfirst java.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
phar
Profile Joined August 2011
United States1080 Posts
June 03 2014 00:36 GMT
#9745
On June 03 2014 06:16 Blitzkrieg0 wrote:
Show nested quote +
On June 03 2014 06:11 Vorenius wrote:
On June 03 2014 06:06 Blitzkrieg0 wrote:
On June 03 2014 05:09 Blisse wrote:
Math seems a lot more hardcore (fourier series t-t) but if the math guy doesn't have the comp sci experience i don't see how you could justify hiring him for a dev position.


Teaching the physicist how to python is a lot easier than teaching a python guy advanced physics.

Well yeah. That much seems obvious.
If you want a candidate to do advanced physics and basic programming, then get a physicist. If you want a candidate to do advanced programming and have a basic knowledge of physics, you should probably get a computer scientist. If you are simply looking to fill a development job though, I don't know why you would consider a physicist.


I was going for advanced physics and advanced programming. You make it too simple.

Yea that's a very small subset of overall software jobs, but in those cases you are correct.
Who after all is today speaking about the destruction of the Armenians?
Release
Profile Blog Joined October 2010
United States4397 Posts
June 03 2014 02:39 GMT
#9746
On June 03 2014 07:48 2primenumbers wrote:
I am learning Java, what is a good companion available for free online?

http://math.hws.edu/eck/cs124/javanotes6/

Straightforward, somewhat narrow scope but you can read the javadocs online
☺
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2014-06-03 04:05:40
June 03 2014 03:43 GMT
#9747
--- Nuked ---
don_kyuhote
Profile Blog Joined December 2009
3007 Posts
June 03 2014 04:02 GMT
#9748
HeadFirst Java was one of the first books when I first began learning Java, and I liked it.
It's not the only book you'll ever need, but it'll get you started pretty well.
I would warmly recommend it for anyone who is beginning to learn java that doesn't mind some non-conventional teaching approach with plenty of pictures.
For what shall it profit a man, if he shall gain the whole world, and lose his own soul?
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-06-03 08:18:55
June 03 2014 04:05 GMT
#9749
On June 03 2014 12:43 Nesserev wrote:
Show nested quote +
On June 03 2014 07:50 obesechicken13 wrote:
When should you use aliases for your modules in python? Just when there are conflicts or always for obscure modules?

import pandas as pan

On June 03 2014 07:48 2primenumbers wrote:
I am learning Java, what is a good companion available for free online?

I've heard great things about headfirst java.

Well, aliases help you keep your code maintainable and convenient.
- 'from module import *' as you know, is easy, but should almost never be used, it's ugly, clutters the current 'namespace', etc.
- 'import module' allows you to keep namespaces 'separated' (so namespace conflicts are highly unlikely), but you need to put 'module.' in front of imported methods/classes If you change the other module's name, or use a different module with the same interface, you would have to change every 'module.' to 'module2.'.

Now, aliases allow you to keep your code 'clean', and 'maintainable' at the same time. With aliases, you only have to change the module in the import-statement. You can also use aliases for functions/methods, etc.

So, my recommendation: always use aliases.



When it comes to head first... You either love or hate 'head first' books. They all have a rather similar distinct style, and I once lend a couple of 'head first' books from a friend that owned them, after an assistent recommended it... every page in those books made my eyes bleed, and my brain vomit. But some people really seem to like it...

Thanks.

Another question:
I'm ok at Excel but I was wondering if anyone knew of any sites that would do time series predictions of data for you. You just put in your data in a csv or txt file and then get time series predictions on what it might look like in the future.

Maybe instead of time series, it could use neural networks to make predictions given input. Basically a site that uses algorithms that don't make use of many assumptions on the data they're given. I think it'd be interesting to make one that could track things like the price of trading cards, number of players in a certain game, dashboards of publicly available movie trend data, social network growth, and government public records.

I know there are many large data analytics companies like pentaho and appdynamics. They offer software and dashboards to see data and you can even connect data sources so they update automatically daily, but they don't really do time analysis or neural networks.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Manit0u
Profile Blog Joined August 2004
Poland17799 Posts
Last Edited: 2014-06-03 18:24:14
June 03 2014 05:51 GMT
#9750
PHP/Twig question:

I for through an array as key, value. I'm trying to pass the key to another function but it doesn't seem to work...

Example:

{% for key, value in array %}
{% myfunc({ key:'somestring' }) %}
{{ key }}
{% endfor %}


I do the var_dump from myfunc and I get:

'key':'somestring' (as in, literal word "key" in there) while the output of {{ key }} is the actual key (like "productId"). I'm baffled...

Edit: Nevermind, it's the simplest things that get you (as usual). The trick to make it work was to do (key) instead of key when passing the variable to the function...
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
June 03 2014 11:59 GMT
#9751
Hi guys,
I'm looking into a new PC for my boss. I've posted in the tech forum but the question involves virtual machines on windows which might be more your thing.

My boss runs 4 virtual machines on a computer which each run several instances of internet explorer. The computer seems pretty strong but he thinks its not strong enough. This is his original email:

+ Show Spoiler +

I run 4 Virtual PC’s using Windows 7 64 bit OS which in turn sit on a Windows 7 64 bit host. At present I use 4 off the shelf desktops with an i5 processor and 8mb of memory (16 Virtual Pc’s). However I am pushing these a bit and I suspect that with 24/7 operation these will eventually fail.

At present they run at about 70% of memory and during operation about 70% Cpu with peaks of 90% - although 100% when each VPC boots up (in a TIMED sequence).

What I am looking for are two more desktops with more CPU power (has to be Intel – for the Virtual PC’s), more memory, better cooling, any graphics card that will support the usage (quality isn’t a priority), a 500Gb HDD is more than sufficient, DVD reader, audio not used and runs on Windows 7 Home premium OS. They will all be accessed remotely through a VNC server.


He is looking at this: http://www.novatech.co.uk/products/servers/sr-0103.html


Novatech Tower Server -
Xeon E3-1220V3 Processor -
2X 1TB Hard Drives -
16GB 1600Mhz DDR3 Memory -
DVD Drive
SuperMicro Socket 1150 motherboard
£744.98 inc vat


Except he is interested in upgrading that motherboard/RAM to 32g,


This all sounds pretty overkill to me but what do i know? I took a screenshot of one of the PCs in action to display its general resource useage.... http://i.imgur.com/hJA1hXc.jpg

I need to find out what PC components are important to running virtual machines on a computer. I also need to confirm that virtual machines can actually utilise 32g of ram in their setup...

I'll be googling around today but anyone experienced with running virtual machines have an idea here already? Is it purely CPU? Does he need 32g ram (he says hes using 16g ram at the moment)? Could it be something wrong with his initial setup? Does graphics card help with running vms with several internet explorer instances on them?

Thankyou for reading
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
mcc
Profile Joined October 2010
Czech Republic4646 Posts
June 03 2014 12:18 GMT
#9752
On June 02 2014 04:32 3FFA wrote:
Show nested quote +
On June 01 2014 15:30 spinesheath wrote:
On June 01 2014 05:35 3FFA wrote:
On May 31 2014 17:16 spinesheath wrote:
On May 31 2014 09:23 FFGenerations wrote:
its fucking BRILLIANT tutorial

Make sure you don't read this one tutorial and then think you know everything. Learn from multiple sources and critically question each one. Internet tutorials are not something you should blindly depend upon. Neither is any other single source.

What about college/university?

Judging from my own experience with those, only good for getting a piece of paper that says you were there. You might have better luck with it. Certainly not trustworthy as a single source.

Well what else do you guys recommend to do along with University? So far in HS I've been following along tutorials for how to do things.

Go to GOOD university and then get a good job on ideally large project. In the meantime learn what you find interesting.
BByte
Profile Joined August 2011
Finland49 Posts
Last Edited: 2014-06-03 18:29:29
June 03 2014 18:26 GMT
#9753
On June 03 2014 14:51 Manit0u wrote:
PHP/Twig question:

I for through an array as key, value. I'm trying to pass the key to another function but it doesn't seem to work...

Example:
{% for key, value in array %}
{% myfunc({ key:'somestring' }) %}
{{ key }}
{% endfor %}


I do the var_dump from myfunc and I get:

'key':'somestring' (as in, literal word "key" in there) while the output of {{ key }} is the actual key (like "productId"). I'm baffled...


You need to use parenthesis around the variable to use it as a hash key in Twig:

{% for key, value in array %}
{% myfunc({ (key):'somestring' }) %}
{{ key }}
{% endfor %}


StackOverflow
Twig documentation
Manit0u
Profile Blog Joined August 2004
Poland17799 Posts
June 04 2014 01:00 GMT
#9754
On June 04 2014 03:26 BByte wrote:
Show nested quote +
On June 03 2014 14:51 Manit0u wrote:
PHP/Twig question:

I for through an array as key, value. I'm trying to pass the key to another function but it doesn't seem to work...

Example:
{% for key, value in array %}
{% myfunc({ key:'somestring' }) %}
{{ key }}
{% endfor %}


I do the var_dump from myfunc and I get:

'key':'somestring' (as in, literal word "key" in there) while the output of {{ key }} is the actual key (like "productId"). I'm baffled...


You need to use parenthesis around the variable to use it as a hash key in Twig:

{% for key, value in array %}
{% myfunc({ (key):'somestring' }) %}
{{ key }}
{% endfor %}


StackOverflow
Twig documentation


I kind of mentioned it earlier. Thanks anyway.
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-06-04 14:02:03
June 04 2014 13:55 GMT
#9755
Does anyone have experience with ResourceBundle and non-Latin internationalisation? Using 'native2ascii' seems like some ugly solution.
Manit0u
Profile Blog Joined August 2004
Poland17799 Posts
June 04 2014 16:07 GMT
#9756
On June 04 2014 22:55 darkness wrote:
Does anyone have experience with ResourceBundle and non-Latin internationalisation? Using 'native2ascii' seems like some ugly solution.



Alternatively, you could also create a custom ResourceBundle.Control wherein you explicitly read the properties files as UTF-8 so that you can just save them as UTF-8 without the need to hassle with native2ascii.


http://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle
Time is precious. Waste it wisely.
OsaX Nymloth
Profile Joined March 2013
Poland3244 Posts
June 04 2014 17:38 GMT
#9757
Anyone familiar with Drupal Commerce here? First time using this module, but current project requires it.

Basically what I need is a rather simple site which contains one page for the product - the page should have the product image (some kind of presentation), an order form and a order button together with "accept the terms" thing. So far I'm not sure how to put the form already on the product page. I installed Express Checkout, but after that I'm at loss. Considering different options, but maybe someone here have experience with this.
Twitter: @osaxnymloth
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-06-05 22:32:59
June 05 2014 22:32 GMT
#9758
Is JTable the only class that can display data in table format?
bangsholt
Profile Joined June 2011
Denmark138 Posts
June 05 2014 22:50 GMT
#9759
On June 06 2014 07:32 darkness wrote:
Is JTable the only class that can display data in table format?


No.
2primenumbers
Profile Blog Joined February 2014
United States144 Posts
June 06 2014 00:15 GMT
#9760
On June 03 2014 11:39 Release wrote:
Show nested quote +
On June 03 2014 07:48 2primenumbers wrote:
I am learning Java, what is a good companion available for free online?

http://math.hws.edu/eck/cs124/javanotes6/

Straightforward, somewhat narrow scope but you can read the javadocs online



Thank you. Also will keep an eye out for HeadFirst stuff.
o face
Prev 1 486 487 488 489 490 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 3h 51m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 148
StarCraft: Brood War
GuemChi 4092
BeSt 831
Leta 113
Bale 79
ZergMaN 48
Mind 42
Noble 20
Icarus 15
Dota 2
NeuroSwarm186
Counter-Strike
summit1g7283
Sick137
Other Games
WinterStarcraft537
C9.Mang0353
RuFF_SC268
Trikslyr17
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH327
• practicex 21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2102
League of Legends
• Rush1741
Other Games
• Scarra1070
Upcoming Events
Escore
3h 51m
CrankTV Team League
4h 51m
WardiTV Summer Champion…
5h 51m
Big Brain Bouts
9h 51m
Soulspirit vs goblin
TriGGeR vs Bunny
OSC
15h 51m
Korean StarCraft League
20h 51m
Afreeca Starleague
21h 51m
RSL Revival
1d 2h
Serral vs SHIN
herO vs Solar
Online Event
1d 8h
Replay Cast
1d 17h
[ Show More ]
RSL Revival
2 days
Clem vs ByuN
Rogue vs Lambo
OSC
2 days
WardiTV Weekly
3 days
Sparkling Tuna Cup
4 days
INu's Battles
4 days
Cure vs herO
ByuN vs Rogue
PiGosaur Cup
4 days
The PondCast
5 days
Kung Fu Cup
5 days
Patches Events
5 days
Replay Cast
6 days
CrankTV Team League
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-07-22
HSC XXIX
Eternal Conflict S2 E3

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
Escore Tournament S3: W4
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
ASL Season 22: Qualifier #1
ASL Season 22: Qualifier #2
CSLAN 4
ASL Season 22
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 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.