• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:51
CEST 12:51
KST 19: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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL50Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
How does the number of casters affect your enjoyment of esports? The GOAT ranking of GOAT rankings The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster
Tourneys
https://www.facebook.com/MiracleSheetsOnline/ RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 679 users

The Big Programming Thread - Page 751

Forum Index > General Forum
Post a Reply
Prev 1 749 750 751 752 753 1031 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.
zatic
Profile Blog Joined September 2007
Zurich15325 Posts
August 08 2016 13:14 GMT
#15001
On August 08 2016 22:10 WhiteDog wrote:
Show nested quote +
On August 08 2016 21:46 tofucake wrote:
Nah, they usually delete the key after a couple days and it's gone forever

And without the key, uncrypting the files is impossible, even in two or three years ?

Pretty much impossible, yes. You basically would have to wait until quantum computers or something similarly silly are a common thing.

I am afraid you have the option between the 500 bucks and the whiskey.
ModeratorI know Teamliquid is known as a massive building
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
August 08 2016 13:21 GMT
#15002
On August 08 2016 22:14 zatic wrote:
Show nested quote +
On August 08 2016 22:10 WhiteDog wrote:
On August 08 2016 21:46 tofucake wrote:
Nah, they usually delete the key after a couple days and it's gone forever

And without the key, uncrypting the files is impossible, even in two or three years ?

Pretty much impossible, yes. You basically would have to wait until quantum computers or something similarly silly are a common thing.

I am afraid you have the option between the 500 bucks and the whiskey.

I'll buy myself 30€ of marijuana and wash everything up.
"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-08 13:47:42
August 08 2016 13:33 GMT
#15003
--- Nuked ---
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
Last Edited: 2016-08-08 13:40:03
August 08 2016 13:38 GMT
#15004
On August 08 2016 22:33 Nesserev wrote:
No back-ups?

Rule 1: Always make back-ups.
Rule 2: Always make back-ups.
...

I have an external hard drive with everything copied on, and various back ups on USBs, but, coincidently, my external hard drive was plugged into my computer and got encrypted too.

My fault anyway, should never have downloaded this shit movie. I was not aware this kind of virus existed too...
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
Acrofales
Profile Joined August 2010
Spain17969 Posts
August 08 2016 14:34 GMT
#15005
On August 08 2016 21:44 WhiteDog wrote:
I want anybody's advice.

Basically, according to everything I've read, I can't get that data unless I pay the ransom, which is 500 USD (that I don't have). Anybody have some knowledge on the subject and give me his point of view ? It's dead ? Should I keep the datas somewhere ? Or should I format everything, drink some whisky, and accept my idiocy ?

Unfortunately, this is correct. Or you could keep it around and wait for quantum computing to catch up, at which point you can probably decrypt it before the heat death of the universe. But with current tech, that's not possible. Cerber seems to be a nasty piece of work without any obvious workarounds, so you are screwed
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
August 08 2016 14:49 GMT
#15006
On August 08 2016 20:08 nnn_thekushmountains wrote:
Show nested quote +
On August 08 2016 17:09 Djagulingu wrote:
On August 08 2016 07:02 nnn_thekushmountains wrote:
I used express and mongodb to make a single page app.
When the page loads, a bunch of information comes from the database through the view (EJS) into static javascript, where it is used.
Google maps does some stuff with the information.
Every 10 seconds, I am POSTing new information back to the server side to be stored in the database.

Is this bad? From the users end, it looks like the page is constantly loading. Do I need to start using websockets (socket.io)?

If you post shit on the UI thread (which you do), user thinks that page is constantly loading.

Solution: Use background threads, in other words, workers.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers


This looks like a good solution. The only problem is that my digital ocean $5/month server only has one worker.

That has nothing to do with the amount of workers of the digital ocean $5/month droplets. Those worker threads work on the client side, not on your server. The only thing that your server will do is write the lat-long locations whenever it receives an update.

What will happen on your client is: Client will have seperate threads for UI rendering and updating the server and because of this fact, your browser won't think that you are rendering the UI whenever you update the server.
"windows bash is a steaming heap of shit" tofucake
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
Last Edited: 2016-08-08 16:05:29
August 08 2016 15:55 GMT
#15007
On August 08 2016 23:34 Acrofales wrote:
Show nested quote +
On August 08 2016 21:44 WhiteDog wrote:
I want anybody's advice.

Basically, according to everything I've read, I can't get that data unless I pay the ransom, which is 500 USD (that I don't have). Anybody have some knowledge on the subject and give me his point of view ? It's dead ? Should I keep the datas somewhere ? Or should I format everything, drink some whisky, and accept my idiocy ?

Unfortunately, this is correct. Or you could keep it around and wait for quantum computing to catch up, at which point you can probably decrypt it before the heat death of the universe. But with current tech, that's not possible. Cerber seems to be a nasty piece of work without any obvious workarounds, so you are screwed

Yeah.

Tho I'm cracking up right now. I figured out most of my files where backed up in another old computer (it's a save from last year but it's pretty complete, I just miss my recent work). But I'm receiving mails from colleagues because cerber encrypted the dropbox.

Seriously I was pissed, now I'm just laughing.
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
Last Edited: 2016-08-08 16:18:02
August 08 2016 16:15 GMT
#15008
On August 09 2016 00:55 WhiteDog wrote:
Show nested quote +
On August 08 2016 23:34 Acrofales wrote:
On August 08 2016 21:44 WhiteDog wrote:
I want anybody's advice.

Basically, according to everything I've read, I can't get that data unless I pay the ransom, which is 500 USD (that I don't have). Anybody have some knowledge on the subject and give me his point of view ? It's dead ? Should I keep the datas somewhere ? Or should I format everything, drink some whisky, and accept my idiocy ?

Unfortunately, this is correct. Or you could keep it around and wait for quantum computing to catch up, at which point you can probably decrypt it before the heat death of the universe. But with current tech, that's not possible. Cerber seems to be a nasty piece of work without any obvious workarounds, so you are screwed

Yeah.

Tho I'm cracking up right now. I figured out most of my files where backed up in another old computer (it's a save from last year but it's pretty complete, I just miss my recent work). But I'm receiving mails from colleagues because cerber encrypted the dropbox.

Seriously I was pissed, now I'm just laughing.


I think you can recover old file versions from dropbox, they shouldn't be encrypted as well

edit: not really sure how extensive the dropbox file history is, probably not on the level of git. You can try I guess, just go to the web version -> right click file -> previous versions
TRUEESPORTS || your days as a respected member of team liquid are over
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
August 08 2016 16:29 GMT
#15009
On August 09 2016 01:15 emperorchampion wrote:
Show nested quote +
On August 09 2016 00:55 WhiteDog wrote:
On August 08 2016 23:34 Acrofales wrote:
On August 08 2016 21:44 WhiteDog wrote:
I want anybody's advice.

Basically, according to everything I've read, I can't get that data unless I pay the ransom, which is 500 USD (that I don't have). Anybody have some knowledge on the subject and give me his point of view ? It's dead ? Should I keep the datas somewhere ? Or should I format everything, drink some whisky, and accept my idiocy ?

Unfortunately, this is correct. Or you could keep it around and wait for quantum computing to catch up, at which point you can probably decrypt it before the heat death of the universe. But with current tech, that's not possible. Cerber seems to be a nasty piece of work without any obvious workarounds, so you are screwed

Yeah.

Tho I'm cracking up right now. I figured out most of my files where backed up in another old computer (it's a save from last year but it's pretty complete, I just miss my recent work). But I'm receiving mails from colleagues because cerber encrypted the dropbox.

Seriously I was pissed, now I'm just laughing.


I think you can recover old file versions from dropbox, they shouldn't be encrypted as well

edit: not really sure how extensive the dropbox file history is, probably not on the level of git. You can try I guess, just go to the web version -> right click file -> previous versions

It works ! There's tons of files (we're like 20 on this dropbox) to restore tho. Thanks buddy.
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
August 08 2016 16:33 GMT
#15010
On August 09 2016 01:29 WhiteDog wrote:
Show nested quote +
On August 09 2016 01:15 emperorchampion wrote:
On August 09 2016 00:55 WhiteDog wrote:
On August 08 2016 23:34 Acrofales wrote:
On August 08 2016 21:44 WhiteDog wrote:
I want anybody's advice.

Basically, according to everything I've read, I can't get that data unless I pay the ransom, which is 500 USD (that I don't have). Anybody have some knowledge on the subject and give me his point of view ? It's dead ? Should I keep the datas somewhere ? Or should I format everything, drink some whisky, and accept my idiocy ?

Unfortunately, this is correct. Or you could keep it around and wait for quantum computing to catch up, at which point you can probably decrypt it before the heat death of the universe. But with current tech, that's not possible. Cerber seems to be a nasty piece of work without any obvious workarounds, so you are screwed

Yeah.

Tho I'm cracking up right now. I figured out most of my files where backed up in another old computer (it's a save from last year but it's pretty complete, I just miss my recent work). But I'm receiving mails from colleagues because cerber encrypted the dropbox.

Seriously I was pissed, now I'm just laughing.


I think you can recover old file versions from dropbox, they shouldn't be encrypted as well

edit: not really sure how extensive the dropbox file history is, probably not on the level of git. You can try I guess, just go to the web version -> right click file -> previous versions

It works ! There's tons of files (we're like 20 on this dropbox) to restore tho. Thanks buddy.


No problem I'm glad to hear it works, this is some scary stuff! Not sure if dropbox has some bulk previous restore function that could help. Make sure to quarantine the infected computer!
TRUEESPORTS || your days as a respected member of team liquid are over
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
August 08 2016 16:39 GMT
#15011
Also if you were using OneDrive for your other files you can do similar stuff for recovering those as well.
TRUEESPORTS || your days as a respected member of team liquid are over
-Zoda-
Profile Blog Joined April 2011
France3578 Posts
August 08 2016 17:32 GMT
#15012
Not long ago I saw a guy on twitter who allegedly spoofed a ransomware, manually sending to the bad guy's server a request that said the bitcoins were cashed in, the encryption key came right back.
Maybe you can try something like that if you're good at wireshark. x)
♪ 最初はi つなぐdo それ つまりlife 常に移動 ♪ - IGN: Uhryks
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
Last Edited: 2016-08-08 19:17:27
August 08 2016 18:22 GMT
#15013
I restored all the files in the dropbox ... three hours later ...
I told to the ransom support that I couldn't pay and they offered me a 20 % discount. So nice, such nice guys really. So now I only need to pay for 400 € approximatly. I answered that I was poor and shit, I had no tooth and all, and that I didn't have even one euro to spare. They will certainly listen their hearts and propose me a bigger discount ....
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2016-08-08 18:30:52
August 08 2016 18:29 GMT
#15014
Glad you got most of your stuff back, the rest of it will have to call it a day. Sad though, I hate when I lose files like that... Normally I see ransomware targeted towards companies, since it's $500 for each computer they infect... But Dropbox always saves the day, and I don't typically download movies/music anymore... Also having a Mac helps fight a lot of these viruses/malware off.
Life?
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
August 08 2016 20:13 GMT
#15015
On August 08 2016 22:33 Nesserev wrote:
No back-ups?

Rule 1: Always make back-ups.
Rule 2: Always make back-ups.


I guess you messed up the quote a bit. The original version is:


There are 2 types of sysadmin:
1. Those who make back-ups.
2. Those who will make back-ups.
Time is precious. Waste it wisely.
bangsholt
Profile Joined June 2011
Denmark138 Posts
August 08 2016 20:38 GMT
#15016
On August 09 2016 03:22 WhiteDog wrote:
I restored all the files in the dropbox ... three hours later ...
I told to the ransom support that I couldn't pay and they offered me a 20 % discount. So nice, such nice guys really. So now I only need to pay for 400 € approximatly. I answered that I was poor and shit, I had no tooth and all, and that I didn't have even one euro to spare. They will certainly listen their hearts and propose me a bigger discount ....


Have a look at this thread, maybe it will help.

https://www.quora.com/How-do-I-remove-cerber-ransomware-virus-and-restore-the-files
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
August 09 2016 00:06 GMT
#15017
--- Nuked ---
bardtown
Profile Joined June 2011
England2313 Posts
Last Edited: 2016-08-09 10:15:51
August 09 2016 10:15 GMT
#15018
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.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
August 09 2016 10:44 GMT
#15019
--- Nuked ---
WhiteDog
Profile Blog Joined November 2010
France8650 Posts
Last Edited: 2016-08-09 12:54:51
August 09 2016 12:51 GMT
#15020
On August 09 2016 05:38 bangsholt wrote:
Show nested quote +
On August 09 2016 03:22 WhiteDog wrote:
I restored all the files in the dropbox ... three hours later ...
I told to the ransom support that I couldn't pay and they offered me a 20 % discount. So nice, such nice guys really. So now I only need to pay for 400 € approximatly. I answered that I was poor and shit, I had no tooth and all, and that I didn't have even one euro to spare. They will certainly listen their hearts and propose me a bigger discount ....


Have a look at this thread, maybe it will help.

https://www.quora.com/How-do-I-remove-cerber-ransomware-virus-and-restore-the-files

There is actually a decryptor made by Trend Micro that works partially for cerber v1 (which is what I have). I'm running it right now, but if anybody is as dumb as me, or know someone as dumb as me, then you'll know that there is a partial free solution at the moment.

https://success.trendmicro.com/portal_kb_articledetail?solutionid=1114221

Apparently the cerber encryption is flawed at some point, so you can decrypt the files if the program is able able to find the first file that was encrypted. The more microprocessor you have, the less the decryptor is efficient tho, so funnily enough it is easier to decrypt cerber on a shit PC than on a good one.

CERBER decryption must be executed on the infected machine itself (as opposed to another machine) since the tool needs to try and locate the first infected file for a critical decryption calculation.

Due to the method of decryption for CERBER, the tool may take several hours (average is 4) to complete decryption on a standard Intel i5 dual-core machine. In addition, the encryption logic for CERBER also is built in such a way that the more cores a CPU has, the lower percentage chance of success for the decryption because of its complexity.

Similar to some other types of ransomware encryption, some files may be only partially decrypted and may require a subsequent file repair.
"every time WhiteDog overuses the word "seriously" in a comment I can make an observation on his fragile emotional state." MoltkeWarding
Prev 1 749 750 751 752 753 1031 Next
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 1: Playoffs Day 2
herO vs SHIN
Reynor vs Cure
Tasteless776
3DClanTV 90
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Crank 1438
Tasteless 765
Harstem 142
IndyStarCraft 134
Rex 114
StarCraft: Brood War
Calm 9717
firebathero 5922
Rain 5013
Horang2 1608
Jaedong 1511
Larva 554
Pusan 491
actioN 404
BeSt 317
Leta 280
[ Show more ]
EffOrt 162
Light 143
Mini 140
ToSsGirL 135
Rush 111
Hyun 110
PianO 78
JYJ53
JulyZerg 48
Mind 48
Killer 35
Backho 28
Sharp 24
Mong 23
NaDa 23
HiyA 18
sSak 17
Sacsri 14
zelot 12
Shinee 10
Movie 8
IntoTheRainbow 7
SilentControl 5
Bale 4
Barracks 4
Dota 2
XcaliburYe744
XaKoH 408
420jenkins279
League of Legends
JimRising 348
Counter-Strike
shoxiejesuss811
Stewie2K558
allub254
Other Games
DeMusliM412
Pyrionflax234
ArmadaUGS93
rGuardiaN53
Lowko34
Organizations
StarCraft 2
ComeBackTV 580
IntoTheiNu 37
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH255
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt468
Upcoming Events
OSC
2h 9m
WardiTV European League
5h 9m
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
5h 9m
Big Brain Bouts
5h 9m
Korean StarCraft League
16h 9m
CranKy Ducklings
23h 9m
RSL Revival
23h 9m
FEL
1d 5h
RSL Revival
1d 23h
FEL
2 days
[ Show More ]
BSL: ProLeague
2 days
Dewalt vs Bonyth
Replay Cast
3 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
Replay Cast
5 days
RSL Revival
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.