The Big Programming Thread - Page 450
| Forum Index > General Forum |
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
Canada695 Posts
| ||
|
Makavw
Croatia165 Posts
![]() | ||
|
enigmaticcam
United States280 Posts
| ||
|
Makavw
Croatia165 Posts
| ||
|
Prillan
Sweden350 Posts
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"; For me the popup shows: Default: 10*3.14 -> 31.4 10*3,14 -> 3140 So it seems that I'm using the american version. | ||
|
Makavw
Croatia165 Posts
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
United States2493 Posts
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! | ||
|
freelander
Hungary4707 Posts
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. | ||
|
Blisse
Canada3710 Posts
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 | ||
|
Encdalf
Germany66 Posts
| ||
|
fabiano
Brazil4644 Posts
| ||
|
adwodon
United Kingdom592 Posts
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
Belgium2760 Posts
| ||
|
mantequilla
Turkey780 Posts
| ||
|
Manit0u
Poland17493 Posts
On March 01 2014 20:53 fabiano wrote: Git is amazing. It should be taught in schools! ![]() | ||
|
Mr. Wiggles
Canada5894 Posts
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 | ||
|
sluggaslamoo
Australia4494 Posts
such pull much commit would have been perfect if he did git status at the end. | ||
|
LaNague
Germany9118 Posts
Cant tell anyone else since all are asleep. Lets hope i got it right, i cant tell, i have no comparisons. | ||
|
Blisse
Canada3710 Posts
![]() | ||
|
Requizen
United States33802 Posts
We don't really have an IT guy here so I'm a programmer learning this shit on the fly -.- | ||
| ||

![[image loading]](http://asset-7.soup.io/asset/6573/3899_7410_500.png)

