Forum: Shell Scripting Feb 24th, 2008 |
| Replies: 1 Views: 2,339 cat /usr/local/apache/logs/error_log|grep "Access denied with code 406"|grep -o -P "(?<= \[error\] \[client )[^]]*"|sort|uniq>> /etc/blocklist |
Forum: C Feb 22nd, 2008 |
| Replies: 2 Views: 714 Java has variable-length argument lists. |
Forum: Java Feb 21st, 2008 |
| Replies: 7 Views: 770 http://en.wikipedia.org/wiki/Object-oriented_programming |
Forum: C++ Feb 18th, 2008 |
| Replies: 1 Views: 464 THREADPARAMS * pSocket;
pSocket->m_sServerSocket.Accept(m_sClientSocket);
pSocket is not initialized. You need to assign a valid value first. |
Forum: Java Feb 10th, 2008 |
| Replies: 3 Views: 9,425 for (j = 0; j < playerNum; j++)
{
for (k = (playerNum - 1); k > j; k--)
{
// j==k test not needed, k>j
... |
Forum: C++ May 14th, 2006 |
| Replies: 3 Views: 849 Visual Basic
- easier to learn
C++
- better performance
- more game libraries available
- can be portable to other platforms |
Forum: C++ Jan 27th, 2006 |
| Replies: 3 Views: 3,161 Look in MSDN for GetOpenFileName and SetSaveFileName functions. |
Forum: Java Jan 25th, 2006 |
| Replies: 27 Views: 10,676 System.out.println(Math.cos(Math.toRadians(90)));
System.out.println(Math.cos(Math.toRadians(270)));
gives
6.123233995736766E-17
-1.8369701987210297E-16
good enough for most purposes. |
Forum: RSS, Web Services and SOAP Jan 24th, 2006 |
| Replies: 5 Views: 5,213 You have to use Music OCR techniques. Check http://www.musitek.com/ for a product doing something similar. For the xml to midi part you have to look for the file format or library for writing midi... |
Forum: PHP Jan 24th, 2006 |
| Replies: 4 Views: 1,470 http://httpd.apache.org/download.cgi
Look for "Win32 Binary (MSI Installer)", download, run setup program, fallow the setup instructions. |
Forum: Computer Science Jan 24th, 2006 |
| Replies: 3 Views: 2,309 Computers can solve many math problems with the right algorithm and resources. It depends a lot on what kind of problems you want to solve and the available hardware. |
Forum: Java Jan 24th, 2006 |
| Replies: 27 Views: 10,676 Math.cos is using angles in radians. Try Math.cos(Math.toRadians(90)).
Second - I don't understand.
Try jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |