• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:45
CET 09:45
KST 17:45
  • 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! StarCraft Evolution League (SC Evo Biweekly) RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
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
Nintendo Switch Thread ZeroSpace Megathread Stormgate/Frost Giant Megathread 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
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine 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
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1710 users

The Big Programming Thread - Page 529

Forum Index > General Forum
Post a Reply
Prev 1 527 528 529 530 531 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.
dae
Profile Joined June 2010
Canada1600 Posts
Last Edited: 2014-10-12 18:48:35
October 12 2014 18:45 GMT
#10561
On October 13 2014 03:15 darkness wrote:
Show nested quote +
On October 13 2014 01:33 MinoMoto wrote:
Guys I need help in C#
I need to create program what checks if password is correct.
The problem is that it must check also symbol number // (for example my password is asdfg (5symbols) if i write asd (3symbols) it must write password have 5 symbols)
How can I get my program to count symbols?


If password is properly encrypted (e.g. MD5), are you even able to tell its length? I thought it was one way process. Of course, I understand if a string is used instead but I'm asking in general.


In a real password system, no one but the person entering the password should know its length.

For this, you could probably send length + encrypted (not sure if encrypted is the right word here) PW when the user enters it, and just store them as a pair.

Of course if the password is stored as plaintext, this is rather easy.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
October 12 2014 19:08 GMT
#10562
Thanks for pointing out the difference between hashing and encrypting a password. I thought they were the same. I mean who uses encryption as in 1:1 mapping anyway?
Manit0u
Profile Blog Joined August 2004
Poland17496 Posts
Last Edited: 2014-10-12 19:34:40
October 12 2014 19:33 GMT
#10563
On October 13 2014 01:33 MinoMoto wrote:
Guys I need help in C#
I need to create program what checks if password is correct.
The problem is that it must check also symbol number // (for example my password is asdfg (5symbols) if i write asd (3symbols) it must write password have 5 symbols)
How can I get my program to count symbols?


Plain password should be easy. Just use String.Equals to check if they match. If they don't match, you do the comparison of length() and if you want you can even do character-by-character comparison.

If it's an md5 hashed password you'll need to transform everything to byte array and then compare:


using System;
using System.Linq;

byte[] hash;
byte[] pass = originalPassowrd;
string text = passwordToCheck;


using (MD5 md5 = MD5.Create()) {
hash = md5.ComputeHash(Encoding.UTF8.GetBytes(text));
}

bool same = hash.SequenceEqual(pass);


And in most cases you'll want your system to save all passwords as the same length so it's not really feasible to check that. But I'm not very good so take all I've written with a pinch of salt
Time is precious. Waste it wisely.
MysteryMeat1
Profile Blog Joined June 2011
United States3292 Posts
October 12 2014 19:47 GMT
#10564
On October 12 2014 23:49 ZenithM wrote:
Show nested quote +
On October 12 2014 15:49 MysteryMeat1 wrote:
On October 12 2014 10:34 icystorage wrote:

public static void getTotalCharacters()
{

while(in.hasNextByte())
{
in.hasNextByte();
lengthInCharacters++;
}

System.out.println("Total number of characters is: " + lengthInCharacters);
}


in.hasNextByte() is being called again in the while loop o_o doesnt that make your program loop forever?


doesn't hasnextmethod not move the cursor?

Not sure about the double negative there, but HasNext methods don't advance the cursor.


ya thats what i meant, so wouldn't the loop be infinite because its never advancing the cursor?
"Cause ya know, Style before victory." -The greatest mafia player alive
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
Last Edited: 2014-10-12 20:37:18
October 12 2014 20:28 GMT
#10565
On October 13 2014 04:47 MysteryMeat1 wrote:
Show nested quote +
On October 12 2014 23:49 ZenithM wrote:
On October 12 2014 15:49 MysteryMeat1 wrote:
On October 12 2014 10:34 icystorage wrote:

public static void getTotalCharacters()
{

while(in.hasNextByte())
{
in.hasNextByte();
lengthInCharacters++;
}

System.out.println("Total number of characters is: " + lengthInCharacters);
}


in.hasNextByte() is being called again in the while loop o_o doesnt that make your program loop forever?


doesn't hasnextmethod not move the cursor?

Not sure about the double negative there, but HasNext methods don't advance the cursor.


ya thats what i meant, so wouldn't the loop be infinite because its never advancing the cursor?


It would be, except hasNextByte() returns false. It never even enters the loop so it can't get stuck. It would get stuck in an infinite loop if hasNextByte() returned true as it would never advance like you said.
I'll always be your shadow and veil your eyes from states of ain soph aur.
tofucake
Profile Blog Joined October 2009
Hyrule19173 Posts
October 13 2014 13:31 GMT
#10566
More importantly, never use MD5.
Liquipediaasante sana squash banana
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
October 13 2014 14:28 GMT
#10567
SHA256?
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
MichaelEU
Profile Joined February 2011
Netherlands816 Posts
October 13 2014 14:44 GMT
#10568
With a salt.
世界を革命する力を!― znf: "Michael-oniichan ( *^▽^*)ノ✩キラ✩"
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-13 17:34:13
October 13 2014 17:33 GMT
#10569
On October 13 2014 23:28 icystorage wrote:
SHA256?


I don't know. Wikipedia says it's discovered by NSA. Wouldn't they leave a backdoor for them considering recent events? #conspiracy
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
October 13 2014 17:59 GMT
#10570
--- Nuked ---
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-13 19:16:59
October 13 2014 19:15 GMT
#10571
taken your comments on board, i am instead going to look into cloud computing.

"My next idea was to have a look at Cloud Computing as I was advised that many interesting technical challenges exist here. I saw a company hosting online MMO games which conventionally have a download size of 20 gigs that puts a lot of 1st-time users off from bothering to trial them. The cloud hosting of the company allows users to instantly jump into the game without having to download, patch and install it whatsoever. This seems pretty intriguing. "

i'll see what my tutor has to say about it tomorrow. the problem here is that i was supposed to give in a Product Initiation Document last friday which specifies what my project is going to be about, but obviously i have no fucking clue about Cloud Computing so can't specify much!!

i just made a draft title of "An exploration of the benefits and risks of cloud computing with regards to the hosting of large-scale applications" and hope tutor isn't upset at my progress... :/

any comments on this subject? ill make a post maybe later in the week probably after doing some basic research./..

ideally i want to prototype something rather than do 100% research
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-13 20:29:27
October 13 2014 19:23 GMT
#10572
er.... guys did you know gmail just started blocking 7zip (zip) files that contain vbs files?
i saved all my work by emailing myself vbs inside 7zip and now all my archived files are deleted by gmail?????????

could have lost a weeks worth of work due to formatting and thinking my files were not going to be randomly fucking DELETED by my email service


edit: ok i lost 2 weeks of work on an older project

EDIT2: ok found a directory backup which has everything on it afaik :D thank ffucking hell for that


EDIT3:

how the fuck does gmail know that my encrypted 7zip file has a .vbs file containing text inside it?
does this mean that gmail can check inside zip files for whatever it wants?
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-10-13 21:01:27
October 13 2014 20:42 GMT
#10573
Gmail and Outlook and all regular email clients will scan all attachments for viruses. If it's a well known file format they can sweep the format for common virus signatures or decompress the file and do the same. I believe it can still do the same to encrypted archive formats but I'm not entirely sure.


http://www.symantec.com/connect/articles/infectable-objects-part-four-viruses-archive-files-and-compressed-files

This problem was quickly overcome by Anti-Virus vendors, who developed software that would decompress files in memory or use algorithms that can decipher the compression without needing to actually expand the file itself. Some can even go as deep as fifty layers inside an archive file.


Specifically when you attach a file in Gmail, Gmail's terms and conditions explicitly state that they can do fuck all with the uploaded contents and your email content because all attached files are uploaded through Gdrive. So it's natural that they also collect all the text information they can find in your uploaded files. Outlook is a bit less invasive.
There is no one like you in the universe.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-13 21:37:20
October 13 2014 21:37 GMT
#10574
could you briefly explain why zip encryption doesn't prevent them accessing the encrypted files? i mean, does winzip and 7zip work with google to allow google access? i checked the "encrypt file names" button in 7zip so it wasn't a case of google seeing that there was a .vbs file , and it didn't flag the file unless it had text content within the .vbs file (didn't flag an empty .vbs file)
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-10-13 22:36:11
October 13 2014 21:48 GMT
#10575
Are you talking about encryption or compression? Zip doesn't provide encryption, it's a compression format.

Highly unlikely that WinZIP talks to Google. 7zip definitely doesn't. Google doesn't care about your filenames or .vbs or .cs or .txt, they only care about what's inside the file. It's easy to decompress a file and check whether the bytes inside are ASCII characters that form words.

Check "Encrypt File Names" to prevent anyone from seeing the content file names if she doesn't have a password. This option is not available when using the ZIP format.

Read more : http://www.ehow.com/how_8777607_encrypt-file-folder-7zip.html


Not sure if that's relevant to you or not.

--

edit: Never actually worked with .vbs files but apparently they're executable script files like .exe or .py so probably Google determined they could be malicious and deleted them.
There is no one like you in the universe.
Spazer
Profile Blog Joined March 2009
Canada8032 Posts
October 13 2014 21:59 GMT
#10576
On October 14 2014 04:15 FFGenerations wrote:
taken your comments on board, i am instead going to look into cloud computing.

"My next idea was to have a look at Cloud Computing as I was advised that many interesting technical challenges exist here. I saw a company hosting online MMO games which conventionally have a download size of 20 gigs that puts a lot of 1st-time users off from bothering to trial them. The cloud hosting of the company allows users to instantly jump into the game without having to download, patch and install it whatsoever. This seems pretty intriguing. "

i'll see what my tutor has to say about it tomorrow. the problem here is that i was supposed to give in a Product Initiation Document last friday which specifies what my project is going to be about, but obviously i have no fucking clue about Cloud Computing so can't specify much!!

i just made a draft title of "An exploration of the benefits and risks of cloud computing with regards to the hosting of large-scale applications" and hope tutor isn't upset at my progress... :/

any comments on this subject? ill make a post maybe later in the week probably after doing some basic research./..

ideally i want to prototype something rather than do 100% research

Just be very, very aware that you only have a year to complete this project. Cloud computing by itself can be an extremely vague topic, so above all, make sure that your project scale is reasonable. It's very easy to bite off more than you can chew.

My suggestion would be to boil the idea of cloud computing down to "make a shitty computer run something by offloading the expensive operations to a good computer". This will make it waaay easier to prototype things since you won't have to rent a server or anything.

You could try something like making a game run on a phone through streaming. The initial challenges would be to send video to the phone, receive input from the phone, and to keep everything low latency. Depending on your familiarity with all of this stuff, this may take a while. Just pick a really simple game (or tech demo, for that matter). The logical followup to this (time allowing, of course) would be to start using caching and/or prediction to further lower latency. I suspect that streaming and getting input will take up all of your time though.

There's a recent paper from Microsoft on a potential low-latency solution for cloud gaming which you might find interesting: http://research.microsoft.com/apps/pubs/default.aspx?id=226843
Liquipedia
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-13 22:26:01
October 13 2014 22:25 GMT
#10577
On October 14 2014 06:59 Spazer wrote:
Show nested quote +
On October 14 2014 04:15 FFGenerations wrote:
taken your comments on board, i am instead going to look into cloud computing.

"My next idea was to have a look at Cloud Computing as I was advised that many interesting technical challenges exist here. I saw a company hosting online MMO games which conventionally have a download size of 20 gigs that puts a lot of 1st-time users off from bothering to trial them. The cloud hosting of the company allows users to instantly jump into the game without having to download, patch and install it whatsoever. This seems pretty intriguing. "

i'll see what my tutor has to say about it tomorrow. the problem here is that i was supposed to give in a Product Initiation Document last friday which specifies what my project is going to be about, but obviously i have no fucking clue about Cloud Computing so can't specify much!!

i just made a draft title of "An exploration of the benefits and risks of cloud computing with regards to the hosting of large-scale applications" and hope tutor isn't upset at my progress... :/

any comments on this subject? ill make a post maybe later in the week probably after doing some basic research./..

ideally i want to prototype something rather than do 100% research

Just be very, very aware that you only have a year to complete this project. Cloud computing by itself can be an extremely vague topic, so above all, make sure that your project scale is reasonable. It's very easy to bite off more than you can chew.


It reminds me of a story I heard last year at university. One of lecturers has accepted a student proposed project for a game (I think one like Doom), and then you may guess - the project hasn't got completed on time.
Spazer
Profile Blog Joined March 2009
Canada8032 Posts
October 13 2014 22:26 GMT
#10578
It's a common story. Almost happened to me too. It's just so damn easy to have too big of a scope.
Liquipedia
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-13 22:32:17
October 13 2014 22:31 GMT
#10579
Yeah, and I think it's useless to try too hard for a project simply because your university may own your piece of work after that. Mine does that. Not many people come up with Facebook/Linux level projects but still..
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
October 13 2014 22:48 GMT
#10580
On October 14 2014 07:25 darkness wrote:
Show nested quote +
On October 14 2014 06:59 Spazer wrote:
On October 14 2014 04:15 FFGenerations wrote:
taken your comments on board, i am instead going to look into cloud computing.

"My next idea was to have a look at Cloud Computing as I was advised that many interesting technical challenges exist here. I saw a company hosting online MMO games which conventionally have a download size of 20 gigs that puts a lot of 1st-time users off from bothering to trial them. The cloud hosting of the company allows users to instantly jump into the game without having to download, patch and install it whatsoever. This seems pretty intriguing. "

i'll see what my tutor has to say about it tomorrow. the problem here is that i was supposed to give in a Product Initiation Document last friday which specifies what my project is going to be about, but obviously i have no fucking clue about Cloud Computing so can't specify much!!

i just made a draft title of "An exploration of the benefits and risks of cloud computing with regards to the hosting of large-scale applications" and hope tutor isn't upset at my progress... :/

any comments on this subject? ill make a post maybe later in the week probably after doing some basic research./..

ideally i want to prototype something rather than do 100% research

Just be very, very aware that you only have a year to complete this project. Cloud computing by itself can be an extremely vague topic, so above all, make sure that your project scale is reasonable. It's very easy to bite off more than you can chew.


It reminds me of a story I heard last year at university. One of lecturers has accepted a student proposed project for a game (I think one like Doom), and then you may guess - the project hasn't got completed on time.

gotta have proper estimates
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
Prev 1 527 528 529 530 531 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
WardiTV Mondays #62
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 146
-ZergGirl 62
StarCraft: Brood War
Britney 4593
Tasteless 267
BeSt 164
Sharp 99
Sacsri 96
Pusan 93
Killer 80
Dewaltoss 63
Shine 45
sorry 37
[ Show more ]
Shinee 30
ZergMaN 29
ToSsGirL 28
Bale 24
Hm[arnc] 7
Dota 2
febbydoto164
NeuroSwarm112
canceldota43
League of Legends
JimRising 512
C9.Mang0295
Reynor73
Counter-Strike
shoxiejesuss317
Super Smash Bros
Westballz29
Other Games
summit1g10971
WinterStarcraft592
crisheroes372
Happy157
Mew2King36
Organizations
Other Games
gamesdonequick623
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH224
• LUISG 18
• Light_VIP 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1111
Upcoming Events
The PondCast
1h 16m
OSC
7h 16m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
15h 16m
Korean StarCraft League
1d 18h
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.