• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:16
CEST 14:16
KST 21:16
  • 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
Code S Season 1 - RO8 Preview3[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Do we have a pimpest plays list? Why there arent any 256x256 pro maps? BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Ro8 Day 4 Small VOD Thread 2.0 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread OutLive 25 (RTS Game) Dawn of War IV
Dota 2
The Story of Wings Gaming
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Canadian Politics Mega-thread European Politico-economics QA Mega-thread US Politics Mega-thread The Letting Off Steam Thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1541 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
Poland17743 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
Poland17743 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
Poland17743 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
WardiTV Invitational
11:00
Wardi Spring Cup
Zoun vs Ryung
Lambo vs ShoWTimE
IntoTheiNu 722
WardiTV635
TKL 218
Rex95
Ryung 79
LiquipediaDiscussion
Escore
10:00
Week 6
escodisco2127
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 218
ProTech126
Rex 95
Ryung 79
StarCraft: Brood War
Britney 32893
Sea 5524
Calm 4853
Horang2 1382
Bisu 913
firebathero 483
Light 423
Mini 415
Hyuk 312
EffOrt 291
[ Show more ]
Soma 283
Killer 259
actioN 251
Pusan 246
ggaemo 209
BeSt 189
Stork 162
ZerO 126
Soulkey 113
Zeus 111
Hyun 84
Rush 80
sorry 68
Dewaltoss 67
ToSsGirL 60
hero 48
[sc1f]eonzerg 43
Backho 39
HiyA 36
Sea.KH 33
Sharp 33
910 30
soO 30
Free 29
Shine 27
Barracks 19
Bale 15
IntoTheRainbow 15
Sacsri 15
Noble 12
GoRush 11
scan(afreeca) 11
ajuk12(nOOB) 8
Terrorterran 6
Icarus 6
Dota 2
Gorgc1037
XcaliburYe119
League of Legends
Reynor69
Counter-Strike
zeus807
allub266
edward99
Other Games
gofns14084
singsing2181
B2W.Neo965
DeMusliM383
Lowko314
KnowMe185
monkeys_forever137
hiko132
Mew2King78
NeuroSwarm46
ArmadaUGS29
ZerO(Twitch)12
Organizations
Other Games
gamesdonequick1325
StarCraft: Brood War
lovetv 10
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP51
• StrangeGG 51
• LUISG 46
• Adnapsc2 6
• LaughNgamezSOOP
• sooper7s
• Migwel
• IndyKCrew
• Kozan
• intothetv
• AfreecaTV YouTube
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis3831
• TFBlade969
Other Games
• WagamamaTV321
Upcoming Events
Big Brain Bouts
3h 44m
Fjant vs Bly
Serral vs Shameless
OSC
9h 44m
The PiG Daily
10h 44m
Maru vs Rogue
TBD vs Classic
herO vs Solar
ByuN vs Solar
Replay Cast
11h 44m
CranKy Ducklings
21h 44m
RSL Revival
21h 44m
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
22h 44m
Krystianer vs TriGGeR
Cure vs Rogue
SC Evo League
1d
uThermal 2v2 Circuit
1d 2h
BSL
1d 6h
Artosis vs TerrOr
spx vs StRyKeR
[ Show More ]
Replay Cast
1d 11h
Sparkling Tuna Cup
1d 21h
RSL Revival
1d 21h
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
1d 22h
BSL
2 days
Dewalt vs DragOn
Aether vs Jimin
GSL
2 days
Afreeca Starleague
2 days
Soma vs Leta
Wardi Open
2 days
Monday Night Weeklies
3 days
OSC
3 days
CranKy Ducklings
3 days
Afreeca Starleague
3 days
Light vs Flash
Replay Cast
4 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
Escore Tournament S2: W6
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.