• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:18
CET 10:18
KST 18:18
  • 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
[ASL22] Finals Preview: Sweet Victory!12[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
Weekly Cups (Oct 26 - Nov 1): MaxPax, herO, Solar win0Weekly Cups (October 19-25): Clem triples first in 5.0.175Evil Geniuses - shutting down22ISSL (IntoTheTV x SOOP SC2 League): Premier7Weekly Cups (October 12-18): 5.0.17 era begins1
StarCraft 2
General
Evil Geniuses - shutting down Weekly Cups (Oct 26 - Nov 1): MaxPax, herO, Solar win No more SC2 streamers on team liquid? How do you feel about the mass reverts in the 5.0.17 PTR? Behind the Blue - Team Liquid History Book
Tourneys
WardiTV Mondays ISSL (IntoTheTV x SOOP SC2 League): Premier Stellar Fest TWO the Moon (Dec 16-20) Sparkling Tuna Cup - Weekly Open Tournament RSL goes to London! 2026 Offline Finals Nov 21-22
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[D] the control group Simple Questions/Answers [G] How to playtest arcade maps [A] Nemrods 1/4 players
External Content
Mutation # 550 Graveyard Shift The PondCast: SC2 News & Results Mutation # 549 Endless Sparkles Mutation # 548 Shining Bright
Brood War
General
Rollback Netcode in Brood War How SKT1 S-Tiers Felt To Be Swept By Flash Top Players of October 2026 (EBPD Rankings) BW General Discussion Sagi.gg Launcher Released
Tourneys
[$1250] International ShieldBattery League [Megathread] Daily Proleagues 2v2v2v2 Tournament Stage 1: Community Poll [IPSL] IPSL Winter 26-27 Ro24 is HERE!
Strategy
50,000-Word Terran Builds Memo 2026-10-22 Cliff Jump Revisited (1 in a 1000 strategy) Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Deus Ex 3!? Mobile Legends: Bang Bang Armies of Exigo - YesYes?
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Men's Fashion Thread Things Aren’t Peaceful in Palestine The Chess Thread
Fan Clubs
Fan Club Resource Thread Reynor Fan Club The Flash Fan Club
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
Why I built Repalyzer (1.1.…
BlueStar
Innovate or Game Over?
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 12042 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
Poland17868 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
Poland17868 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
Poland17868 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 42m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Rain 1933
BeSt 291
Jaedong 224
Hyuk 219
firebathero 201
Zeus 173
Leta 139
ToSsGirL 81
Snow 78
Mind 53
[ Show more ]
Killer 52
PianO 49
Creator 40
soO 35
sorry 32
Bale 30
Sharp 24
Noble 18
Stork 16
Rush 15
Hm[arnc] 12
ZerO 11
Terrorterran 8
Dota 2
ODPixel499
NeuroSwarm214
League of Legends
JimRising 484
Reynor86
Counter-Strike
fl0m4902
olofmeister1806
byalli331
Other Games
ceh9560
WinterStarcraft424
XaKoH 391
dupreeh151
crisheroes149
Mew2King91
Pyrionflax89
Sick86
ZerO(Twitch)4
Organizations
Other Games
gamesdonequick411
Counter-Strike
PGL319
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Laughngamez YouTube
• Migwel
StarCraft: Brood War
• iopq 12
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2388
League of Legends
• Stunt835
Upcoming Events
Patches Events
3h 42m
PiGosaur Cup
15h 42m
Kung Fu Cup
1d 1h
Replay Cast
1d 13h
The PondCast
2 days
KCM Race Survival
2 days
OSC
2 days
IntoTheTV X SOOP
4 days
Reynor vs Solar
ByuN vs SHIN
Clem vs MaxPax
herO vs Rogue
WardiTV Invitational
4 days
IPSL
4 days
WorsT vs nOmaD
Dewalt vs andersOn
[ Show More ]
IntoTheTV X SOOP
5 days
WardiTV Invitational
5 days
IPSL
5 days
Azhi_Dahaki vs ggnore13
Double vs WIZARD
Replay Cast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-11-02
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
International ShieldBattery League
BSL Season 23
IPSL Winter 2026-27
Calamity Cup Div. A Season 8
IEM Beijing 2026
PGL Masters Bucharest 2026
Stake Ranked Episode 5
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

1xBet Invitational
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
BLAST Bounty Winter 2027
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 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.