• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:31
CET 16:31
KST 00:31
  • 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 Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
[BSL21] Non-Korean Championship - Starts Jan 100SC2 All-Star Invitational: Jan 17-1819Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises2Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !11
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Chinese SC2 server to reopen; live all-star event in Hangzhou Starcraft 2 Zerg Coach ComeBackTV's documentary on Byun's Career !
Tourneys
OSC Season 13 World Championship WardiTV Mondays $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play
Brood War
General
StarCraft & BroodWar Campaign Speedrun Quest A cwal.gg Extension - Easily keep track of anyone I would like to say something about StarCraft BGH Auto Balance -> http://bghmmr.eu/ (UMS) SWITCHEROO *New* /Destination Edit/
Tourneys
SLON Grand Finals – Season 2 [BSL21] Non-Korean Championship - Starts Jan 10 [Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET
Strategy
Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player Fighting Spirit mining rates
Other Games
General Games
Elden Ring Thread General RTS Discussion Thread Nintendo Switch Thread Awesome Games Done Quick 2026! Stormgate/Frost Giant 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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread The Games Industry And ATVI 12 Days of Starcraft
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 897 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
Poland17557 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
Poland17557 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
Zurich15358 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
Hyrule19186 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
Hyrule19186 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
Poland17557 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
Platinum Heroes Events
13:00
PSC2L Finals - Playoffs
Krystianer vs CreatorLIVE!
Shameless vs Gerald
RotterdaM859
Liquipedia
OSC
13:00
World Championship: Challenger
WardiTV787
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 859
Lowko466
BRAT_OK 66
RushiSC 30
MindelVK 29
StarCraft: Brood War
Horang2 1941
EffOrt 1566
Jaedong 1506
Mini 676
Larva 618
Shuttle 581
ggaemo 574
Stork 543
Hyuk 404
Soma 391
[ Show more ]
Barracks 375
ZerO 320
Light 311
actioN 295
Hyun 281
Snow 189
firebathero 182
Sharp 171
Rush 133
hero 72
JYJ 45
Killer 40
Sea.KH 36
Terrorterran 32
Mong 31
Rock 28
PianO 23
yabsab 22
soO 14
ajuk12(nOOB) 12
scan(afreeca) 12
Shine 11
GoRush 11
HiyA 10
Sacsri 9
Dota 2
qojqva4727
singsing2275
Fuzer 286
League of Legends
C9.Mang0498
Counter-Strike
zeus635
Other Games
Grubby4335
Gorgc2251
hiko587
B2W.Neo586
Hui .305
Pyrionflax277
crisheroes208
ArmadaUGS95
QueenE56
Liquid`VortiX46
KnowMe34
ZerO(Twitch)25
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• HeavenSC 26
• Adnapsc2 11
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV580
• lizZardDota253
League of Legends
• Jankos2705
Upcoming Events
Korean StarCraft League
11h 29m
OSC
20h 29m
IPSL
22h 29m
Dewalt vs Bonyth
OSC
1d 2h
OSC
1d 20h
uThermal 2v2 Circuit
1d 22h
Replay Cast
2 days
Patches Events
3 days
OSC
3 days
OSC
4 days
[ Show More ]
OSC
5 days
Liquipedia Results

Completed

C-Race Season 1
WardiTV 2025
META Madness #9

Ongoing

IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
Escore Tournament S1: W2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

CSL 2025 WINTER (S19)
Escore Tournament S1: W3
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Thunderfire SC2 All-star 2025
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
Underdog Cup #3
NA Kuram Kup
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.