• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:33
CEST 17:33
KST 00:33
  • 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] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3
Community News
Official StarCraft website teases new content ahead of BlizzCon?77Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3New 3v3 BGH Ladder (and more) on ShieldBattery!40Weekly Cups (August 17-23): Zerg dominate the week6
StarCraft 2
General
Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game SC4ALL: II Winner Will Earn a Spot at HSC 30! Weekly Cups (August 24-30): Patches' balance mod takes over Balance hotfix patch 5.0.16b (July 16) September World Ranking: herO leads, Serral climbs
Tourneys
Stellar Fest TWO the Moon (Dec 16-20) IntoTheTV X SOOP SC2 League : Weekly & Monthly SC2 INu's Battles#20 [BO.9] 2026 GSTL Announcement PIG STY FESTIVAL 8.0! (13 - 23 August)
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This Mutation # 539 Thunder Dome
Brood War
General
Official StarCraft website teases new content ahead of BlizzCon? ASL22 General Discussion Gypsy to Korea [Personal Project Share] Terran Defense v0.60 BW General Discussion
Tourneys
KCM Race Survival 2026 Season 3 Brood War in Budapest ! WORTEX 2026 BW Finals [Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS
Strategy
Odyssey Mineral Stack Saturation Replay Review Process - What do you do? Game Theory for Starcraft Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Diablo IV EVE Corporation [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 Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Artificial Intelligence Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread UK Politics Mega-thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Dreaming of BW patches (mod…
c3rberUs
Regacy Esports: The Bh…
regacyesports
Violent Games and Crime Rate…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6963 users

The Big Programming Thread - Page 450

Forum Index > General Forum
Post a Reply
Prev 1 448 449 450 451 452 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.
ThatGuy
Profile Blog Joined April 2008
Canada695 Posts
February 28 2014 15:34 GMT
#8981
Are total1 and total2 both declared as doubles?
Makavw
Profile Joined April 2010
Croatia165 Posts
February 28 2014 16:07 GMT
#8982
yup , they are
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2014-02-28 16:38:14
February 28 2014 16:37 GMT
#8983
Try using Decimal instead of Double, and see if it makes a difference. (I'm assuming you're using C#)
Makavw
Profile Joined April 2010
Croatia165 Posts
February 28 2014 17:08 GMT
#8984
Yes it c#, and it doesn't make a difference. Meh I will just redo the whole thing using different logic since i can't seem to pinpoint the problem whatsoever.
Prillan
Profile Joined August 2011
Sweden350 Posts
Last Edited: 2014-02-28 19:39:12
February 28 2014 19:20 GMT
#8985
On March 01 2014 02:08 Makavw wrote:
Yes it c#, and it doesn't make a difference. Meh I will just redo the whole thing using different logic since i can't seem to pinpoint the problem whatsoever.

Have you tried entering the numbers using both the American and European (or whatever it is) decimal format? Try with "3,14" and "3.14" and see if it makes any difference.

Edit: For me "3,14" parses as 314.0 and "3.14" as 3.14

Edit 2: Here's a small test you can do. It tests the default, croatian and american locales. (Croatian since it says that you're from Croatia)
string xs = "3.14";
string ys = "3,14";

// msdn.microsoft.com/en-us/goglobal/bb964664.aspx
NumberFormatInfo croatian = CultureInfo.GetCultureInfo("hr-HR").NumberFormat;
NumberFormatInfo american = CultureInfo.GetCultureInfo("en-US").NumberFormat;

string def = string.Format("10*{0} -> {1}\t10*{2} -> {3}", xs, double.Parse(xs) * 10, ys, double.Parse(ys) * 10);
string hr = string.Format("10*{0} -> {1}\t10*{2} -> {3}", xs, double.Parse(xs, croatian) * 10, ys, double.Parse(ys, croatian) * 10);
string us = string.Format("10*{0} -> {1}\t10*{2} -> {3}", xs, double.Parse(xs, american) * 10, ys, double.Parse(ys, american) * 10);

MessageBox.Show(string.Format("Default:\t\t{0}\nCroatian:\t\t{1}\nAmerican:\t\t{2}" , def, hr, us));

For me the popup shows:
Default:		10*3.14 -> 31.4	10*3,14 -> 3140
Croatian: 10*3.14 -> 3140 10*3,14 -> 31.4
American: 10*3.14 -> 31.4 10*3,14 -> 3140

So it seems that I'm using the american version.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Makavw
Profile Joined April 2010
Croatia165 Posts
Last Edited: 2014-02-28 20:23:16
February 28 2014 20:22 GMT
#8986
Hehe yea, I was just about the post that I found the problem and that was exactly it.
I started debugging line by line and noticted that the variable didn't read the decimal point at all.
It seems that I am using american version too and that was the problem .

BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
March 01 2014 10:00 GMT
#8987
Can someone please explain to me what git is? I know there's a site called github that I thin is related.

I was running through some tutorials for angular is and they used git but I don't really understand what it is. I've looked up some places but I'm not really gettin it. Thanks!
WHAT'S HAPPENIN
freelander
Profile Blog Joined December 2004
Hungary4707 Posts
March 01 2014 10:17 GMT
#8988
Git is a version control program. You can make repositories with it, special folders where every file change within them is followed and can be restored in case of screwups. Also have other nifty options such as forking repositories and later joining them again to allow people to work on the same system at the same time etc.

Github is an online social site for where they host git repositories online for you. Those can be set public or private (open source projects often have them public). You can also follow other people's projects, or modify them etc.

If angular is on github, it means they host their source code there in a repository.
And all is illuminated.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-03-01 10:19:36
March 01 2014 10:17 GMT
#8989
Git is a version control system - the most popular one being Git. There are others like Subversion and Mercurial that differ in how they're structured.

Github is a host for Git - you can "upload" and "retrieve" your files from the host if you set it up properly. You could also not use Github and build your own computer/server to host Git yourself, or many other version control systems.

The essential premise of version control is to keep track of the previous state of your application. If you've used "Tracking" in Word, it's the same concept. By storing the previous state of your application, you can more freely do bigger changes without being scared of breaking things, you can take a look and see exactly what you've done since last time, you can distribute "versions" of your software without doing the silly thing of making a new folder, copying ALL changes to the new folder and giving that folder a name and date.

That's essentially the point of version control - automating the task of saving that folder, and saving the state of your application.


When you write 10000s of lines of software, you want to make sure that when you make HUGE, GAME-BREAKING changes and they don't work out, you can restore yourself to a safe point. Git helps you with that. It also has the power to do cooler stuff like allow in parallel development and auto-managing what happens when you want to combine both your work together, and you can spin off other "branches" to work on in parallel.


http://git-scm.com/book/en/Getting-Started-Git-Basics
There is no one like you in the universe.
Encdalf
Profile Joined February 2012
Germany66 Posts
March 01 2014 10:39 GMT
#8990
The above and as a pretty good video introduction:
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
March 01 2014 11:53 GMT
#8991
Git is amazing. It should be taught in schools!
"When the geyser died, a probe came out" - SirJolt
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
March 01 2014 12:23 GMT
#8992
Hey guys,

Just looking for a bit of advise / knowledge about SQL databases. They aren't something I know anything about apart from some basics but first some context. I work for a company which produces hardware and I mainly work in C, there are obvious advantages when you're traversing the whole stack but recently decisions have been made to move our applications over to the .NET framework. This is a large task obviously so we're taking it step by step with plenty of research and prototypes.

Currently part of our software is used for configuring and managing IP cameras, think security room type situation. This is part of our main application which controls 'walls', think 64 monitor desktop type thing. We have a database of cameras in the registry which is managed by this application, essentially what I need to do is shift this over to an SQL database.

This isn't some monstrous database, fairly simple actually, first stage would be two tables, one containing camera models and another containing cameras linked to the other table. This would be controlled by a C# DLL (first stage would be a small C# application though) which will be used by our native C application (baby steps).

Now the basics of SQL aren't a problem, I can watch some pluralsight courses and it doesn't seem complicated but where I'm stumbling a bit is management systems (I think). We are are a Microsoft OEM so my first thought was SQL Server 2012, would this be suitable for this or overkill? I've made small databases in Visual Studio but it seemed more suitable to prototypes, not very flexible but all I want is a small database to ship with the application which contains some camera models by default (I assume these can be made immutable?), and then the user can expand the database using our software.

Sorry if that was a bit long winded but I'm a little hazy on what tools I should really be using to accomplish this so if someone could tell me I can go off an learn them, I don't want to spend hours learning the ins and outs of something which either doesn't do what I need or is complete overkill for such a small scale solution.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2014-03-01 13:20:09
March 01 2014 13:12 GMT
#8993
--- Nuked ---
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
Last Edited: 2014-03-01 14:53:30
March 01 2014 14:52 GMT
#8994
^^ Wouldn't sqlite be a good choice for this scenario?
Age of Mythology forever!
Manit0u
Profile Blog Joined August 2004
Poland17838 Posts
March 01 2014 16:05 GMT
#8995
On March 01 2014 20:53 fabiano wrote:
Git is amazing. It should be taught in schools!


[image loading]
Time is precious. Waste it wisely.
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
March 01 2014 16:46 GMT
#8996
If you're learning git, I can recommend the following website as a very good reference:

http://git-scm.com/

There's a free book hosted on the site, that should provide a good introduction:

http://git-scm.com/book

The book covers everything from the basics of what a repo is, how to set it up, how to use basic commands, what branches are, etc., to more advanced features like interactive staging and rewriting your history.

In general, I'd say these two pages are very useful for people who use git frequently and don't know about them:

http://git-scm.com/book/en/Git-Tools-Interactive-Staging
http://git-scm.com/book/en/Git-Tools-Rewriting-History

Just don't rewrite public history

It also has the man pages for every git command, with examples for many commands.

For example, everything you'd ever want to know about git-log and git-branch:
http://git-scm.com/docs/git-log
http://git-scm.com/docs/git-branch
you gotta dance
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2014-03-03 02:34:00
March 03 2014 02:32 GMT
#8997
On March 02 2014 01:05 Manit0u wrote:
Show nested quote +
On March 01 2014 20:53 fabiano wrote:
Git is amazing. It should be taught in schools!


[image loading]


such pull
much commit

would have been perfect if he did git status at the end.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
LaNague
Profile Blog Joined April 2010
Germany9118 Posts
March 04 2014 02:37 GMT
#8998
god, i just coded and read about Process Control statistics for 12 hours straight.

Cant tell anyone else since all are asleep.


Lets hope i got it right, i cant tell, i have no comparisons.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 04 2014 13:03 GMT
#8999
i have an exam for control theory in <12 hours
There is no one like you in the universe.
Requizen
Profile Blog Joined March 2011
United States33802 Posts
March 04 2014 16:44 GMT
#9000
Could someone give me a rundown as how to apply two different SSL Certs to two different sites on the same server? It's giving me a message that "Another site is using the same HTTPS binding with a different certificate". Do I need to open another port on the server?

We don't really have an IT guy here so I'm a programmer learning this shit on the fly -.-
It's your boy Guzma!
Prev 1 448 449 450 451 452 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 18h 27m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SHIN 248
StarCraft: Brood War
Britney 38435
Calm 6159
Shuttle 2982
actioN 1024
Horang2 558
Hyuk 360
Mini 345
hero 228
firebathero 215
Sexy 138
[ Show more ]
910 83
Bonyth 76
Hyun 75
Yoon 45
Aegong 33
Sharp 21
Free 21
LancerX 19
SilentControl 17
Rock 16
HiyA 13
Terrorterran 12
scan(afreeca) 8
ajuk12(nOOB) 7
Dota 2
Gorgc4510
qojqva2473
420jenkins318
Counter-Strike
fl0m28975
byalli968
SPUNJ384
dupreeh191
Heroes of the Storm
Khaldor307
Liquid`Hasu281
Other Games
singsing1410
B2W.Neo808
Beastyqt570
Mlord321
RotterdaM227
KnowMe143
Liquid`VortiX104
Mew2King102
XaKoH 98
QueenE38
Organizations
Other Games
EGCTV755
StarCraft: Brood War
lovetv 11
[ Show 17 non-featured ]
StarCraft 2
• mYiSmile121
• Adnapsc2 6
• Reevou 2
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Michael_bg 10
• FT.aCt)Sony2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 1244
• WagamamaTV519
League of Legends
• Jankos1646
Other Games
• Shiphtur89
Upcoming Events
Sparkling Tuna Cup
18h 27m
OSC
20h 27m
Shopify Rebellion Sundays
23h 27m
Mixu vs TBD
Spirit vs TBD
Clem vs TBD
Patches Events
1d
OSC
1d 8h
Afreeca Starleague
1d 18h
Soma vs Shuttle
BeSt vs Rush
WardiTV Weekly
1d 19h
Monday Night Weeklies
2 days
Afreeca Starleague
2 days
Leta vs ggaemo
Jaedong vs Queen
GSL
2 days
[ Show More ]
PiGosaur Cup
3 days
Kung Fu Cup
3 days
Replay Cast
4 days
The PondCast
4 days
KCM Race Survival
4 days
Escore
5 days
IntoTheTV X SOOP
5 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

Proleague 2026-09-02
PiG Sty Festival 8.0
Light Tournament 2026

Ongoing

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

Upcoming

Escore Tournament S3: King of Kings
Blizzard Classic Cup 2026
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
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
FISSURE Playground #3
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.