/** @deprecated this one must be resolved differently */
@Deprecated
public void setModeChange()
{
this.mode = Mode.CHANGE;
}
Archive for the ‘Dev’ Category
Inept management hires inept arrogant conceited glory hogging twit
Inept management promotes twit at twit’s urging
Twit hires more twits for personal gain
Twit blames remaining competant workers for downward spiral
Remaining competant worker leaves
Company does well-deserved tail spin, crashes and burns
This code will open Explorer and select the file or folder given.
static void openInExplorer(string path)
{
string cmd = "explorer.exe";
string arg = "/select " + path;
Process.Start(cmd, arg);
}
Likte veldig godt dette uttrykket til en av arkitektorene våre:
“Du skal behandle de som skriver kode som du behandler en vakker kvinne eller mann (merk at jeg ikke på noen måte antyder at de som koder kan være nettopp det), hvis du på død og liv må si sannheten så for gudsskyld pakk det inn i fagre ord
”
Espen Dalløkken
A very useful tutorial to understand a vertical-align issue is found here: http://phrogz.net/css/vertical-align/index.html.
Okay. This is going to be somewhat personal.
I’m a professional software developer for a medium sized company, which is really not a software company. It’s only internal software I write.
I’ve also wanted to make a game since I started playing games. That’s probably why I’m a software developer today. I’ve been doing more or less C++ since I was 14, doing (at least trying to) 3D-graphics since I was 18. Without knowledge of the particular mathematics involved with 3D-graphics it proved to be difficult.
I’ve started numerous projects with OpenGL, and some are more advanced than others, but I didn’t continue working on a project for more than 2-3 days before I got tired.
I’ve started an other project now. I don’t know what I’ll make, or whether if I’ll make anything. But I’ve started an other project. The only real difference from previous projects is that I know the value of libraries and there is no point in re-inventing the wheel for every project.
Standard template library is there, Boost is there and some other libraries. I know how to use them. And I know they exist!
For this project I know I’m going to use
- STL
- The boost libraries
- Ogre3D for graphics
I’m not so sure about the sound and physics part, but for now I think I’ll stick with
- Bullet for physics
- FMOD for sound
I must also review the licenses for the libraries to make sure they are allowed to be used in commercial projects or not. I’m not saying my project is going to be commercial, but I won’t exclude it. I’ll also aim for Windows and Linux support. And probably Mac if it’s going to be commercial.
So far I have an empty scene with a blue background.
It’s a start! … again
When I get this error, it’s always because I’ve opened the debugging process in Process Explorer.
Error 1 fatal error LNK1201: error writing to program database 'e:\blergh\blergh\bin\blergh_d.pdb'; check for insufficient disk space, invalid path, or insufficient privilege
Close the handle in Process Explorer or restart Process Explorer.
If you need to update a column in a table than you can use different approaches:
1) To modify a datatype of the column:
alter table Person modify COLUMN_A char(2) null
2) To make a column required:
First look if the column has some constraints:
sp_helpconstraint Person
If the column has constraints than you need to drop them first:
alter table Person drop constraint FK_PERSON_REF_ADRESS
Then if you can specify a default value for the column you can drop the column and create it again:
alter table Person drop COLUMN_A alter table Person add COLUMN_A char(2) default 0 not null
But there is not the way we always need it. In such a case we need to drop the hole table and create it again:
drop table Person
create table Person(
COLUMN_B numeric(9,0) null,
COLUMN_C char(2) not null,
COLUMN_D date not null,
COLUMN_A numeric(9,0) identity,
constraint PK_PERSON primary key (COLUMN_A),
constraint FK_PERSON_REF_ADRESS foreign key (COLUMN_B)
references Adress (COLUMN_ADRESS_A)
)
This little macro prints out user warnings to the output window in a format the “Error List” within Visual Studio will understand and parse. Taken from Stack Overflow and modified a little.
#define STRINGISE_IMPL(x) #x
#define STRINGISE(x) STRINGISE_IMPL(x)
// Use: #pragma message WARN("My message")
#if _MSC_VER
# define FILE_LINE_LINK __FILE__ "(" STRINGISE(__LINE__) ") : "
# define WARN(exp) (FILE_LINE_LINK "warning: " exp)
#else//__GNUC__ - may need other defines for different compilers
# define WARN(exp) ("WARNING: " exp)
#endif
It will produce output like this:
1>.\src\bug.cpp(82) : warning: check me
When this line is present in the source file.
#pragma message WARN("check me")
