developer

clear javascript console in Google Chrome

Question: ❓❓❓ I was wondering if I could clear up the console with some command.. console.log(), can print… is there a command to clear up console?.. I’ve tried to console.log(console); and got this functions below… assert: function assert() { [native code] } constructor: function Console() { [native code] } count: Read more…

By admin, ago
developer

How do I trap ctrl-c in a C# console app

Question: ❓❓❓ I would like to be able to trap CTRL+C in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this? Good Answer: πŸ‘ŒπŸ‘ŒπŸ‘Œ See MSDN: Console.CancelKeyPress Event Article with code samples: Ctrl-C and the .NET console Read more…

By admin, ago
developer

How to change node.js’s console font color?

Question: ❓❓❓ I had to change the console background color to white because of eye problems, but the font is gray colored and it makes the messages unreadable. How can I change it? Good Answer: πŸ‘ŒπŸ‘ŒπŸ‘Œ Below you can find colors reference of text to command when running node.js application: Read more…

By admin, ago
developer

Disable Rails SQL logging in console

Question: ❓❓❓ Is there a way to disable SQL query logging when I’m executing commands in the console? Ideally, it would be great if I can just disable it and re-enable it with a command in the console. I’m trying to debug something and using “puts” to print out some Read more…

By admin, ago
developer

How can I write to console in PHP?

Question: ❓❓❓ Is it possible write string or log into the console? What I mean Just like in jsp, if we print something like system.out.println("some") it will be there at console not at page. Good Answer: πŸ‘ŒπŸ‘ŒπŸ‘Œ Firefox On Firefox you can use an extension called FirePHP which enables the Read more…

By admin, ago