• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:34
CET 03:34
KST 11:34
  • 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] Finals Preview: Sweet Victory!12[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
Weekly Cups (October 19-25): Clem triples first in 5.0.175Evil Geniuses - shutting down20ISSL (IntoTheTV x SOOP SC2 League): Premier6Weekly Cups (October 12-18): 5.0.17 era begins1[$1250] International ShieldBattery League92
StarCraft 2
General
SC2 Power Rank: epic29 No more SC2 streamers on team liquid? Weekly Cups (October 19-25): Clem triples first in 5.0.17 How do you feel about the mass reverts in the 5.0.17 PTR? Evil Geniuses - shutting down
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 ISSL (IntoTheTV x SOOP SC2 League): Premier Stellar Fest TWO the Moon (Dec 16-20) RSL 2026 Offline Finals LCQ Sign-Ups Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
Simple Questions/Answers [G] How to playtest arcade maps [A] Nemrods 1/4 players
External Content
Mutation # 549 Endless Sparkles The PondCast: SC2 News & Results Mutation # 548 Shining Bright Mutation # 547 Temple Of Terror
Brood War
General
Bot on ladder SCHNAIL now supports Remastered Rollback Netcode in Brood War BW General Discussion [Megathread] Daily Funny Videos
Tourneys
[Megathread] Daily Proleagues [Women's StarCraft] MonstarZ vs BA 2026-10-30 Star Con San Diego 2026 Small VOD Thread 2.0
Strategy
50,000-Word Terran Builds Memo 2026-10-22 Cliff Jump Revisited (1 in a 1000 strategy) Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Mobile Legends: Bang Bang Armies of Exigo - YesYes? General RTS Discussion Thread
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
European Politico-economics QA Mega-thread US Politics Mega-thread R I P Patrick Stewart Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine
Fan Clubs
Reynor Fan Club The Flash Fan Club Serral Fan Club
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece
Sports
TeamLiquid Health and Fitness Initiative For 2023 Football (Soccer) Thread MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
Why I built Repalyzer (1.1.…
BlueStar
Innovate or Game Over?
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 8738 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
Poland17865 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
Replay Cast
08:00
GSL CK 6
CranKy Ducklings95
Liquipedia
OSC
07:00
Masters Cup #151: Group D
davetesta26
Liquipedia
The PiG Daily
05:30
Best Games of SC
herO vs Rogue
GuMiho vs ShoWTimE
Clem vs herO
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 207
PiLiPiLi 43
StarCraft: Brood War
ProTech173
Sexy 73
LancerX 22
Dota 2
monkeys_forever772
PGG 232
League of Legends
JimRising 687
Counter-Strike
taco 556
Super Smash Bros
hungrybox600
Other Games
summit1g10677
WinterStarcraft296
XaKoH 295
C9.Mang0258
Maynarde136
JuggernautJason30
Organizations
Other Games
gamesdonequick790
[ Show 12 non-featured ]
StarCraft 2
• Hupsaiya 149
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Azhi_Dahaki10
• Pr0nogo 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• Scarra984
Upcoming Events
Sparkling Tuna Cup
7h 26m
WardiTV Invitational
9h 26m
Epic.LAN
10h 26m
IPSL
13h 26m
eOnzErG vs McRibbed
LancerX vs StRyKeR
AI Arena Tournament
14h 26m
OSC
1d 11h
Yamato Cup
1d 12h
IPSL
1d 14h
Artosis vs RiceHat
Kyrie vs Sony
Map Test Tournament
1d 20h
WardiTV Weekly
2 days
[ Show More ]
Ultimate Battle
2 days
Rush vs BeSt
Replay Cast
2 days
Rogue vs Classic
Patches Events
3 days
PiGosaur Cup
3 days
Kung Fu Cup
4 days
The PondCast
5 days
KCM Race Survival
5 days
Liquipedia Results

Completed

Proleague 2026-10-30
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
International ShieldBattery League
BSL Season 23
IPSL Winter 2026-27
PGL Masters Bucharest 2026
Stake Ranked Episode 5
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
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

1xBet Invitational
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
BLAST Bounty Winter 2027
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 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.