• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 21:41
CET 03:41
KST 11:41
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
RSL Offline Finals Info - Dec 13 and 14! RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
ZeroSpace Megathread Stormgate/Frost Giant Megathread Nintendo Switch Thread The Perfect Game Path of Exile
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
James Bond movies ranking - pa…
Topin
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1964 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
3006 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
Poland17496 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
Poland17496 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
Poland17496 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
Replay Cast
00:00
WardiTV Mondays #62
CranKy Ducklings151
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nathanias 254
elazer 117
CosmosSc2 56
StarCraft: Brood War
Artosis 735
Larva 185
Bale 79
Noble 15
Dota 2
monkeys_forever866
NeuroSwarm81
League of Legends
JimRising 481
C9.Mang0332
Other Games
summit1g14249
tarik_tv5330
Day[9].tv801
shahzam592
Maynarde119
Mew2King82
ViBE56
ToD40
Organizations
Other Games
gamesdonequick998
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 76
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 31
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4700
Other Games
• imaqtpie1230
• Day9tv801
Upcoming Events
The PondCast
7h 19m
OSC
13h 19m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
21h 19m
Korean StarCraft League
2 days
CranKy Ducklings
2 days
WardiTV 2025
2 days
SC Evo League
2 days
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV 2025
3 days
OSC
3 days
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
4 days
Wardi Open
4 days
StarCraft2.fi
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
WardiTV 2025
5 days
StarCraft2.fi
5 days
PiGosaur Monday
5 days
StarCraft2.fi
6 days
Tenacious Turtle Tussle
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
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.