• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:51
CET 10:51
KST 18:51
  • 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
ByuL: The Forgotten Master of ZvT0Behind the Blue - Team Liquid History Book16Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up0ACS replaced by "ASL Season Open" - Starts 21/0224LiuLi Cup: 2025 Grand Finals (Feb 10-16)43Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker14
StarCraft 2
General
Nexon's StarCraft game could be FPS, led by UMS maker ByuL: The Forgotten Master of ZvT Weekly Cups (Feb 9-15): herO doubles up How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? StarCraft 1 & 2 Added to Xbox Game Pass
Tourneys
LiuLi Cup: 2025 Grand Finals (Feb 10-16) WardiTV Team League Season 10 PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) $5,000 WardiTV Winter Championship 2026 StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 513 Attrition Warfare The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
Ladder maps - how we can make blizz update them? TvZ is the most complete match up Gypsy to Korea Which units you wish saw more use in the game? BW General Discussion
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
ZeroSpace Megathread Nintendo Switch Thread Diablo 2 thread Path of Exile Battle Aces/David Kim RTS Megathread
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
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Search For Meaning in Vi…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2735 users

The Big Programming Thread - Page 752

Forum Index > General Forum
Post a Reply
Prev 1 750 751 752 753 754 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.
njt7
Profile Joined August 2012
Sweden769 Posts
August 09 2016 12:54 GMT
#15021
if you havent already figured it out http://stackoverflow.com/questions/522563/accessing-the-index-in-python-for-loops
"All the casters who flamed me ever for anything."
Manit0u
Profile Blog Joined August 2004
Poland17663 Posts
August 09 2016 13:18 GMT
#15022
On August 09 2016 19:15 bardtown wrote:
I'll probably be here with a bunch of stupid questions over the coming days. Doing a simple voluntary project in Python and I am still, essentially, useless.

I am trying to read data from a .csv file. The example code creates a csv.reader and then uses the following to iterate over rows:

...     spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
... for row in spamreader:
... print ', '.join(row)


How can I access rows directly? For example, I want to exclude the first row as it consists of column headers, not actual data. I also want to be able to access individual rows (row 44, for example). Do I need to use this loop to create some dictionary and index them myself, or is there a simpler way? spamreader.row[0] is apparently not a thing.


Space as delimiter in a csv is lighting up a lot of alarm switches in my brain for some reason...
Time is precious. Waste it wisely.
Requizen
Profile Blog Joined March 2011
United States33802 Posts
August 09 2016 16:09 GMT
#15023
As a guy who has done mostly C#.NET and SQL, learning ExtJS is making my head hurt.
It's your boy Guzma!
phar
Profile Joined August 2011
United States1080 Posts
August 09 2016 16:34 GMT
#15024
On August 09 2016 22:18 Manit0u wrote:

Space as delimiter in a csv is lighting up a lot of alarm switches in my brain for some reason...

Doesn't really matter as long as you're consistent. All "c"sv files will have the same problems, doesn't matter what delimiter you use. It can be annoying, but not actually a problem.
Who after all is today speaking about the destruction of the Armenians?
Aerisky
Profile Blog Joined May 2012
United States12129 Posts
August 09 2016 17:24 GMT
#15025
Damn the ransomware is extremely scary, I should definitely go make a backup, damn. I hear that ransomware instances have exploded recently since they're so easy to send out & they're so effective.

How did the ransomware like start itself though? Can it attach itself to a movie and just run itself when you play the movie? Or is it just like masquerading as a movie file when it's really an executable?
Jim while Johnny had had had had had had had; had had had had the better effect on the teacher.
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
Last Edited: 2016-08-09 17:50:23
August 09 2016 17:48 GMT
#15026
On August 10 2016 02:24 Aerisky wrote:
Damn the ransomware is extremely scary, I should definitely go make a backup, damn. I hear that ransomware instances have exploded recently since they're so easy to send out & they're so effective.

How did the ransomware like start itself though? Can it attach itself to a movie and just run itself when you play the movie? Or is it just like masquerading as a movie file when it's really an executable?

Apparently it's in Pirate Bay's advertising.

https://www.grahamcluley.com/2016/04/pirate-bay-hit-malvertising-attack-drops-cerber-ransomware/
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-08-09 17:55:07
August 09 2016 17:53 GMT
#15027
--- Nuked ---
bardtown
Profile Joined June 2011
England2313 Posts
August 09 2016 18:09 GMT
#15028
On August 09 2016 21:54 njt7 wrote:
if you havent already figured it out http://stackoverflow.com/questions/522563/accessing-the-index-in-python-for-loops


Ah, thank you. I managed to achieve what I wanted without this, but no doubt it will be useful in future.

On August 09 2016 22:18 Manit0u wrote:
Show nested quote +
On August 09 2016 19:15 bardtown wrote:
I'll probably be here with a bunch of stupid questions over the coming days. Doing a simple voluntary project in Python and I am still, essentially, useless.

I am trying to read data from a .csv file. The example code creates a csv.reader and then uses the following to iterate over rows:

...     spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
... for row in spamreader:
... print ', '.join(row)


How can I access rows directly? For example, I want to exclude the first row as it consists of column headers, not actual data. I also want to be able to access individual rows (row 44, for example). Do I need to use this loop to create some dictionary and index them myself, or is there a simpler way? spamreader.row[0] is apparently not a thing.


Space as delimiter in a csv is lighting up a lot of alarm switches in my brain for some reason...


Using commas in my own code. Not sure why they use space in the example.

I'm making a dashboard, and my current plan is to use plotly to generate a bunch of HTML graphs, and then flask to structure/host them. I'm hoping this actually makes sense - as I haven't used plotly/flask - and that I can do it all without using javascript.
Manit0u
Profile Blog Joined August 2004
Poland17663 Posts
August 09 2016 23:59 GMT
#15029
I find comma almost as bad as space

I usually try to use a delimiter that's not commonly used in normal text or numbers - it can really hurt you when you have to save some numbers that are formatted according to the locale, which might be like 0,5 instead of 0.5 in parts of Europe (or comma being used as thousands separator).

CSV can be such a pain to work with sometimes that I'd rather just dump SQL or something
Time is precious. Waste it wisely.
Aerisky
Profile Blog Joined May 2012
United States12129 Posts
August 10 2016 08:13 GMT
#15030
@WhiteDog and Nesserev: jesus fucking christ. I use ublock origin as well but I'm honestly not sure if it'll be enough. Fuck me, wow.
Jim while Johnny had had had had had had had; had had had had the better effect on the teacher.
plated.rawr
Profile Blog Joined June 2008
Norway1676 Posts
August 10 2016 09:19 GMT
#15031
God, now you guys are making me nervous here. I've not used adblock the last year or so because I understand advertisements' function in supporting the sites I visit, but I'm thinking I'll be adding some serious blockage once I get back home.

Savior broke my heart ;_; || twitch.tv/onnings
zatic
Profile Blog Joined September 2007
Zurich15361 Posts
August 10 2016 10:28 GMT
#15032
Rather do some serious backups, regularly.
ModeratorI know Teamliquid is known as a massive building
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
August 10 2016 10:38 GMT
#15033
On August 10 2016 19:28 zatic wrote:
Rather do some serious backups, regularly.


And make sure that the backups are read-only, so they can't be corrupted by a virus afterwards.
tofucake
Profile Blog Joined October 2009
Hyrule19192 Posts
August 10 2016 12:45 GMT
#15034
On August 10 2016 18:19 plated.rawr wrote:
God, now you guys are making me nervous here. I've not used adblock the last year or so because I understand advertisements' function in supporting the sites I visit, but I'm thinking I'll be adding some serious blockage once I get back home.


ads are also how most viruses spread these days.
Liquipediaasante sana squash banana
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
August 10 2016 13:46 GMT
#15035
The fun part is that depending on how paranoid you are, you can't trust any of the infected hardware even after a disk wipe and reinstallation. It's interesting how many hardware components have writable firmware that can be exploited to keep the system compromised in a hard to detect way after the initial attack.

This is one of my favourites about compromising an HDD controller:
http://spritesmods.com/?art=hddhack
you gotta dance
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
Last Edited: 2016-08-10 14:05:10
August 10 2016 14:01 GMT
#15036
On August 10 2016 01:09 Requizen wrote:
As a guy who has done mostly C#.NET and SQL, learning ExtJS is making my head hurt.


it has a very steep learning curve at the start (took me a few months banging my head to wall) but once you get it it's so powerful and intuitive. I would trade it for angular and the likes if it wasn't so expensive (license) and had more job opportunities.

it feels to me like, you pay the cost upfront with extjs (both money and productivity wise), instead of paying that in smaller amounts everyday with other free html+js+css frameworks.
Age of Mythology forever!
phar
Profile Joined August 2011
United States1080 Posts
August 10 2016 15:50 GMT
#15037
On August 10 2016 21:45 tofucake wrote:
Show nested quote +
On August 10 2016 18:19 plated.rawr wrote:
God, now you guys are making me nervous here. I've not used adblock the last year or so because I understand advertisements' function in supporting the sites I visit, but I'm thinking I'll be adding some serious blockage once I get back home.


ads are also how most viruses spread these days.


Citation needed. I'd be willing to hazard a guess that people not keeping stuff up to date and/or clicking on random shit is how more viruses spread.

Maybe for someone pretty tech savvy operating with mostly other tech savvy people, maybe you'll only see or hear about people getting bit by drive by JavaScript attacks or what have you. But, have you ever watched someone who's fairly security illiterate use a computer? Shit is terrifying....
Who after all is today speaking about the destruction of the Armenians?
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
Last Edited: 2016-08-10 16:02:58
August 10 2016 16:00 GMT
#15038
On August 10 2016 22:46 Mr. Wiggles wrote:
The fun part is that depending on how paranoid you are, you can't trust any of the infected hardware even after a disk wipe and reinstallation. It's interesting how many hardware components have writable firmware that can be exploited to keep the system compromised in a hard to detect way after the initial attack.

This is one of my favourites about compromising an HDD controller:
http://spritesmods.com/?art=hddhack


Just have to burn the infected computer, or send it to hydraulic press channel.

Also sometimes it's hard not to press random adds. Like I keep TL unblocked on my home laptop and I'm always clicking the stupid banner add at the top cause of my shitty trackpad has a tap-click =/
TRUEESPORTS || your days as a respected member of team liquid are over
tofucake
Profile Blog Joined October 2009
Hyrule19192 Posts
August 10 2016 17:28 GMT
#15039
On August 11 2016 00:50 phar wrote:
Show nested quote +
On August 10 2016 21:45 tofucake wrote:
On August 10 2016 18:19 plated.rawr wrote:
God, now you guys are making me nervous here. I've not used adblock the last year or so because I understand advertisements' function in supporting the sites I visit, but I'm thinking I'll be adding some serious blockage once I get back home.


ads are also how most viruses spread these days.


Citation needed. I'd be willing to hazard a guess that people not keeping stuff up to date and/or clicking on random shit is how more viruses spread.

Maybe for someone pretty tech savvy operating with mostly other tech savvy people, maybe you'll only see or hear about people getting bit by drive by JavaScript attacks or what have you. But, have you ever watched someone who's fairly security illiterate use a computer? Shit is terrifying....

nah that's how they are able to spread, but loads of malware is delivered by ads.
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17663 Posts
Last Edited: 2016-08-10 18:12:05
August 10 2016 18:11 GMT
#15040
Is it just for Windows or is Linux also vulnerable? I guess it'd be much harder to pull of on Linux since you need to download the stuff, make it executable and then it needs proper permissions to do any real damage. Quite a few hurdles to overcome.
Time is precious. Waste it wisely.
Prev 1 750 751 752 753 754 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 10m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
trigger 1
StarCraft: Brood War
Bisu 1424
GuemChi 1373
Larva 489
actioN 456
sorry 188
ToSsGirL 66
Pusan 64
Backho 45
NaDa 44
soO 25
[ Show more ]
Sacsri 25
scan(afreeca) 10
Terrorterran 2
League of Legends
JimRising 554
Counter-Strike
shoxiejesuss1021
byalli474
kRYSTAL_66
Other Games
summit1g10636
ceh9575
C9.Mang0402
Happy295
crisheroes157
Fuzer 94
Trikslyr23
Organizations
Counter-Strike
PGL3342
StarCraft: Brood War
UltimateBattle 134
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH173
• StrangeGG 46
• LUISG 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1362
Upcoming Events
WardiTV Winter Champion…
2h 10m
PiGosaur Cup
15h 10m
Replay Cast
23h 10m
WardiTV Winter Champion…
1d 2h
Replay Cast
1d 14h
PiG Sty Festival
1d 23h
Maru vs Bunny
Classic vs SHIN
The PondCast
2 days
KCM Race Survival
2 days
WardiTV Winter Champion…
2 days
OSC
2 days
[ Show More ]
Replay Cast
2 days
PiG Sty Festival
2 days
Clem vs Percival
Zoun vs Solar
Epic.LAN
3 days
Replay Cast
3 days
PiG Sty Festival
3 days
herO vs NightMare
Reynor vs Cure
CranKy Ducklings
4 days
Epic.LAN
4 days
Replay Cast
4 days
PiG Sty Festival
4 days
Serral vs YoungYakov
ByuN vs ShoWTimE
Sparkling Tuna Cup
5 days
Replay Cast
5 days
Replay Cast
5 days
Wardi Open
6 days
Replay Cast
6 days
Liquipedia Results

Completed

C-League Week 31
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
Spring Cup 2026: China & Korea Invitational
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.