|
If you set something like this on Windows:
git config --global core.autocrlf false
Where is this global setting getting written to?
Started by S. Michaels on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can check your $HOME directory for a file like .gitconfig
It will write the values in a file called .gitconfig, unless you specify another name with the ' --file ' option
git config --global --file myFile key value
Note: the environment variable ... .
|
|
Class Widget { public: Widget() { cout<<"~Widget()"<<endl; } ~Widget() { cout<<"~Widget()"<<endl; } void* operator new(size_t sz) throw(bad_alloc) { cout<<"operator new"<<endl; throw bad_alloc(); } void operator delete...
Started by s_itbhu on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
When there is no destructor, the compiler just calls the delete operator the case when no user-defined destructor....
On whether the control should go into the overloaded 'operator delete' when the delete-expression is avoided as well.
|
|
In my app, I'm using a StreamWriter to stream data to a file. Are any bytes actually written to the file before the Close() method is called? If the answer is no, is this true no matter how large the stream is?
Randy
Started by Randy Minder on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The StreamWriter has an internal buffer, and once.
Stream is written by StreamWriter.Flush .
|
Ask your Facebook Friends
|
I noticed some not so old VM languages like Lua, NekoVM, and Potion written in C.
It looked like they were reimplementing many C++ features.
Is there a benefit to writing them in C rather than C++?
Started by Unknown on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
That means that at least part ....
Lua is written trivial.
I know something about Lua.
when working on large projects with many people, the chance that one of them won't be good enough code is much easier to port across compilers than C++.
|
|
Hi there,
I'm putting together a small web app that writes to a database (Perl CGI & MySQL). The CGI script takes some info from a form and writes it to a database. I notice, however, that if I hit 'Reload' or 'Back' on the web browser, it'll write the...
Started by Marty on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
A timestamp (or a random hash etc..) when displaying the form storing it both as a hidden field ( just besides (wich is stored safely on your server), when you recieve a the POST/PUT request for this form, you of form submissions the user....
|
|
We have certain application written in C# and we would like it to stay this way. The application manipulates many small and short lived chunks of dynamic memory. It also appears to be sensitive to GC interruptions.
We think that one way to reduce GC is...
Started by mark on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I also have a copy of the DougLeaAllocator ( dlmalloc ) written and battle-tested in C#.
You should make a static class and Marshal.FreeHGlobal.
In garbage collection is when there are no more references to the object.
|
|
I was using perfmon to monitor writes per second on a LUN containing a single SQL2005 database data file. I was under the assumption that database files are only written to during checkpoints or by the lazy writer process, is this assumption correct? ...
Started by SuperCoolMoss on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Perhaps a log flush was occurring when writing to the transaction log? This usually happens within.
|
|
I know that one of the defining principles of Test driven development is that you write your Unit tests first and then write code to pass those unit tests, but is it necessary to do it this way?
I've found that I often don't know what I am testing until...
Started by Omar Kooheji on
, 19 posts
by 19 people.
Answer Snippets (Read the full thread at stackoverflow):
I also make a list of cases that will have to be tested when a change studies that show that unit tests written....
I tend to write them as I write my code that will have to be tested .
Not always, but I find that it really does help when I do.
|
|
From this tweet: http://twitter.com/azaaza/status/6508524118 I reach a website which is made completely in Flash http://bit.ly/7VdNlY ( at least the front end )
It looks fantastic and it could have been written with HTML + Ajax, but I guess ( because ...
Started by Oscar Reyes on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
It always bother me when I reach a Flash website as it's annoying to find anything because of:
Difficulties ....
When it should not be used?
Imho, never.
As a web developer I can do flash, but I don't like flash .
Is that for everyone?
No.
|
|
I have Java webserver (no standard software ... self written) . Everything seems to work fine, but when I try to call a page that contains pictures, those pictures are not displayed. Do I have to send images with the output stream to the client? Am I ...
Started by doro on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
There is no good way to embed and image browser-independent in HTML, only the <img src="data:base64codedimage"> protocol handler... .
Your browser will send separate GET image.png HTTP 1.1 requests to your server, you should handle these file-gets too .
|