I know that apple doesn't sell macbooks (just the vanilla, white macbook, not the pro models) with 8 gb of RAM but I'm wondering if it's possible to upgrade one to 8 gb of RAM. Anyone done it?
As the title implies how can I create a new log file each day in C#? Now the program may not necessarily run all day and night but only get invoked during business hours. So I need to do two things.
1) How can I create a new log file each day? The log file will be have the name in a format like MMDDYYYY.txt
2) How can I create it just after midnight in case it is running into all hours of the night?
Isn't
A a = new A(); // A is a class name
supposed to work in C++?
I am getting:
conversion from 'A*' to non-scalar
type 'A' requested
Whats wrong with that line of code?
What programs do you install on a fresh Windows/Linux machine? It doesn't have to be any specific category - programming tools, browsers, anything!
Update: If possible, can you post links? It makes it a lot easier for readers.
A friend of mine sent me this code snippet to celebrate his new baby birth:
void new_baby_name() { father_surname++; }
The snippet is from his point of view, he is the father and the new baby get the surname from him.
I answered with this:
class father_name {};
class mother_name {};
class new_baby_name: public father_name, public mother_name {};
but I am not fully satisfied of my answer...
I have a windows 2003 r2 server with lot of users, websites , sql server , DNS , How can i move this to a fresh windows 2003 r2 including NTFS permissions without manually creating users , websites , db etc., its independent server, not in a domain.
Hi,
I converted an old sql server database from 2000 to 2005 and forgetten to add old indexes to the new db.
is there any way to copy the old indexes to the new db?
any help?
i built a page that can redirect a user to a new page after clicking on facebook like button on my page, but the like button does not show on mobile web. i did this with facebook javascript SDK not iframe because i need to use FB.Event.subscribe to do the redirect part. does anyone know how to solve this problem? or does anyone have some suggestions how to imply redirecting a user to a new web page after clicking facebook like button on mobile web page?
I upgraded the hard disk in my notebook to a 128GB Kingston SSD V100. Everything worked fine for about a week then out of the blue the notebook would not boot up any more. A black dos-like screen was shown with the options to try and boot normally or attempt to repair windows. Neither option would do anything.
When I removed the drive and tested it in an external usb case no other computers are able to access the drive either.
Is there anything I can try to fix it myself?
The drive is partitioned into three drives and when it's connected through an external usb case to another computer I can see the partitions, just can't access anything on them. Does this mean the drive might be recoverable?
I have get_iplayer installed on a Windows 7 PC and, generally, it has worked without too many problems. Now I find that I cannot download "The Sinking of the Laconia" from the BBC. Both episodes are still available for viewing (although only episode 2 has a live ' download' option). An error message saying 'ERROR: RTMP_ReadPacket, failed to read RTMP packet header' may be relevant?
If anyone can help before the programme becomes unavailable, I'd be grateful
I've got a copy of the Pulling Strings with Puppet book (written in 2007) but given that it has a bunch of equivocal language, I'm wonder how much has changed since then? I've found this Release Notes page and a (short) summery table at the top of the language tutorial but neither have dates, so I don't know where to start (and the more detailed notes make for rather dry reading).
Does anyone know of a page that list thing that have changed since that book was published?
I am trying to create new object of other class in a for loop. like
for(int i =0;i<10;i++){
Computer p1=new Computer(10,20);
}
and when I try anywhere to reach p1.someAction(); it say you must declare p1. But if I declare it on top of program how can I create again in loop? I also try only Computer p1; but it gave exeption ..
Is anyone else experiencing Chrome extensions disappearing upon closing the browser? I do have the Click and Clean extension installed, and I'm wondering whether that is uninstalling my extensions somehow when it deletes browsing history. Thanks!
I have read about the Tuples provided with the coming-out of the new .NET Framework features, and still am I wondering about how it could be useful in real-world enterprise applications.
Can one give me a brief explanation along with a simple but real-world code sample?
Thanks! =)
Hello;
Why can't I start a line using a parenthesis followed by the keyword new?? For example:
(New <custom_obj>).foo(var)
In that case is obvious that I'm trying to avoid creating a named instance of the the <custom_obj> because I know that I'll only be using it at that sentence.
Note that actually creating a named instance is not a problem for me... I just wanna know the reason why this is not possible.
Hello
I have allocated and array of Objects
Objects *array = new Objects[N];
How should I delete this array?
Just
delete[] array;
or with iterating over array's elements?
for(int i=0;i<N;i++)
delete array[i];
delete[];
Thanks
I have a simple script that does some search and replace.
This is basically it:
File.open("us_cities.yml", "r+") do |file|
while line = file.gets
"do find a replace"
end
"Here I want to write to a new file"
end
As you can see I want to write a new file with the output. How can I do this?
I have VPS with CentOS 5.4.
This is production server.
The problem is when my webiste installs some scripts from site , then the owner name is not written on the file and as user i can even change the file permissions.
Is there any way that which ever script is writing file , the owner of home directory should the owner of all the files
I have data in a table, but am working on data loading. I want to reseed all new inserts for testing.
What would be the line to set all new inserts to a certain seed value?
I have VPS with CentOS 5.4.
This is production server.
The problem is when my webiste installs some scripts from site , then the owner name is not written on the file and as user i can even change the file permissions.
Is there any way that which ever script is writing file , the owner of home directory should the owner of all the files
i have a table named news with 3 fields i.e (id, news, time) and i have a setInterval after every 3mints to fetch news from google or any news site ....
now i want to fetch only new rows inserted after every 5 minutes...with jquery $.ajax()...how can i do that...
do i reload the whole table or there is a way to fetch only the new ones...
In my application i have an in-box.If new message is arrived I need to increment the unread count.For that Whether I need to make the database connection for every second to find the new message is arrived?Is there any other methods?
Hello,
I am a bit confused about old/new so that's my question.
What is the biggest numerical primitive datatype in the old and in the new C++ standard?
(integer and floatingpoint)
regards & many thanks in advance
Oops