• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:38
CEST 07:38
KST 14:38
  • 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
[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244
Community News
StarCraft open world shooter announced at BlizzCon54Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10Official StarCraft website teases new content ahead of BlizzCon?162Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3
StarCraft 2
General
How do you feel about the StarCraft shooter announcement at BlizzCon 2026? StarCraft open world shooter announced at BlizzCon Balance hotfix patch 5.0.16b (July 16) Team Liquid Map Contest #22: Results and Winners Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 KSL Week #92 IntoTheTV X SOOP SC2 League : Weekly & Monthly 2026 GSTL Announcement Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 542 The Ascended Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This
Brood War
General
Official StarCraft website teases new content ahead of BlizzCon? BGH Auto Balance -> http://bghmmr.eu/ Broodwar Prediction Market Practice Partners (Official) [D] Brainstorming a balance patch for Brood war
Tourneys
[ASL22] Ro16 Group A [ASL22] Ro16 Group B Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Game Theory for Starcraft
Other Games
General Games
Diablo IV EVE Corporation Nintendo Switch Thread [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Trading/Investing Thread US Politics Mega-thread UK Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Diablo Animated Series on Netflix Movie Discussion!
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Virtual Romance, Real-Life C…
TrAiDoS
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6776 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
Poland17843 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
Hyrule19254 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
Canada8036 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
Canada8036 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
OSC
20:30
Masters Cup #151
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
FoxeR 56
StarCraft: Brood War
Shuttle 2178
Aegong 90
910 53
yabsab 28
Dota 2
ODPixel308
NeuroSwarm199
Other Games
summit1g9999
JimRising 533
PiGStarcraft309
RuFF_SC243
Organizations
Other Games
BasetradeTV230
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH307
• Sammyuel 16
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21884
• lizZardDota249
League of Legends
• Jankos767
• Lourlo722
• Stunt311
Upcoming Events
Sparkling Tuna Cup
4h 22m
WardiTV Invitational
5h 22m
ByuN vs Percival
Cure vs Classic
Shopify Rebellion Sundays
9h 22m
Spirit vs Mixu
Clem vs TBD
RSL Revival
10h 22m
Serral vs Rogue
BlizzCon
12h 52m
IdrA vs MC
Replay Cast
18h 22m
Afreeca Starleague
1d 4h
Light vs JyJ
Soulkey vs hero
WardiTV Weekly
1d 5h
Monday Night Weeklies
1d 10h
Afreeca Starleague
2 days
Snow vs Shinee
Shine vs EffOrt
[ Show More ]
GSL
2 days
PiGosaur Cup
2 days
The PondCast
3 days
Kung Fu Cup
3 days
Replay Cast
3 days
KCM Race Survival
4 days
IntoTheTV X SOOP
4 days
Replay Cast
4 days
IntoTheTV X SOOP
5 days
Replay Cast
5 days
GSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #5 - TRS
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
Blizzard Classic Cup 2026
Blizzard Classic Cup 2026
RSL Revival: Season 6
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
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.