No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
37 Posted Topics
I am writing a site where I will have a news feed of updates on the front page. I have a table that will store the posts. Its fields are post_id, topic, body, and dateposted. I would like for it to search through the table and get the ten latest … | |
I am updating my personal computer's hard disk to an SSD drive soon, and I see there are two main types of drives, SATA II and SATA III. My computer's motherboard was made for SATA 3GBPS, will a SATA III drive still run on it? | |
I am setting up a samba server. When I place the folders that Samba will use inside of the /tmp folder, everything works fine. However, when I try to use a directory that I created, it will not let me access it from another computer. I have given public permissions … | |
I recently rented a a Virtual Private Server. The best way for me to connect to it is to SSH into it and start a service. When I do this, it works perfectly fine, until I close my SSH program, in which the software stops running. How can I fix … | |
So I host a server for a game called Minecraft for people to play on. The default port that the game looks for is 25565. If another port is to be used, it must be specified after the IP. The IP and the port number are a rather long number … | |
I've heard that Linux stores all of the wifi network info in a single file(or directory) on your computer. I was wanting to see the networks that are stored in my computer and was wondering where I should go to see this. Thank you. | |
I downloaded the 3.7 GB Fedora x86_64 DVD.iso. Is there any way I can put this on a USB drive and boot from it without using the "Live USB"? | |
Ok, so I have decided to dual-boot my laptop with Windows 7 and Fedora 14. So here is a list of questions I have about the choices I have: [CODE] 1. KDE or GNOME? I've heard that KDE is the better way to go, especially for development, but wanted to … | |
I was turning off some of the startup services on my computer(Windows XP), and found a program under the Startup tab that I do not remember installing, and have not seen on other computers. The name of this program is =, and the location listed is also =. This made … | |
Are there any good C++ XML parsing APIs that anyone recommends? I tried TinyXML but couldn't get it to compile, or find any information about it. | |
I am using Direct2D to write a simple rendering system that I could use to easily write a game. I have a function that renders each object every frame. Now, if my game is going to be dynamic, I can't hardcode every object into that function. I would much prefer … | |
I am using the Direct2D API to draw some graphics for my program. I have a function that I call every time the Window redraws that draws the frame. I can't hardcode every object to be drawn into the function, if I want it to be dynamic. What is the … | |
I have my FTP server set up and I created a user called ftpsecure and added the name to the list of users in vsftpd.conf. I type in the IP in my Web Development studio and the username and password. It connects and displays my FTP welcome message but then … | |
Say I want an action to be performed on my database every so often such as add a random number of "points" to a random entry in a table every time it iterates. I want this to happen even if nobody visits my site. If this is possible with PHP … | |
I am looking for an API that can provide simple, 2D graphics support. Since Direct3D wasn't directly made for 2D, I looked elsewhere, and saw an API called Direct2D by Microsoft. Can anyone point me to a good tutorial on this API. The one Microsoft provides is very overly complicated … | |
I'm experimenting with GDI+. Say I have a box and want it to move across the screen on a keypress. Do I have to clear the screen and redraw everything everytime I want to move the box? Or is there a way to just change the coordinates of the box? | |
Since some SATA connections can get up to 6 gigabits per second connection speed, why don't we use SATA instead of USB which the newest version can get 3.0 Gbps. | |
I'm setting up my server to host 2 domains. In the VirtualHosts section I have it set up as they do on the Apache website. But line 280 or so asks for a DocumentRoot, well I have 2, what should I do here? | |
I am having a problem in Android where I cannot set the text of a TextView to an int without my application crashing. Does anyone else have this problem? I tried changing the int to "static int" as I saw in a suggestion, but it still doesn't work. Android's website … | |
[code=php] <?php session_start(); $password = "password"; if($_POST['password']==$password) { $_SESSION['loggedin']=1; header("location:index.php"); } else { header("location:index.php"); } ?> [/code] That works fine in other browsers. But in IE, when you click the submit button the previous page it redirects you back, and not logged in. Internet explorer says something about security. Does … | |
My Linux machine is running Fedora 10, Apache 2, PHP 5, MySQL, and VSFTPD. I don't want the public to have access to my FTP files. All I want is to be able to securely connect my Windows machine using Aptana Studio and be able to easily transfer my web … | |
It compiles without any errors in Eclipse, and when I comment it out, the application does not crash, but somewhere in here it is making my application crash on startup. Does anyone know how to fix this problem? [code=Java] Button send_button = (Button)findViewById(R.id.SendButton); spam_button.setOnClickListener((OnClickListener) this); phone_number = (TextView)findViewById(R.id.ph_num); txt_body = … | |
Is there a way for me to have a PHP script run constantly on the server, rather than only run when a user loads the page? Sorry if this is a stupid question. I just haven't ever had the need until now. | |
I am testing with HttpGet to simply see if it would download anything from my website, but the application crashes on startup. Anyone know why? [code=Java]package com.httptest; import java.net.URI; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import org.apache.http.client.methods.HttpRequestBase; public class httptest extends Activity { /** Called when … | |
For some reason the post is not getting inserted into my database. [code=PHP] if($_SESSION['permissions']>=1) { $query="INSERT INTO news (id, title, poster, posterid, body) VALUES ('$id','$title','$poster','$posterid','$body')"; $result=mysql_query($query,$con); header("location:index.php"); } [/code] | |
I am new to Android development. This compiles in Eclipse without any errors, but when I run it in the emulator, it crashes, why? [code=java]package com.buttontest; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ButtonTest extends Activity { int timesPressed = 0; String timesPressedText = ""; … | |
Does anyone know of a good tutorial on how to send data through a USB port? I've lately been trying to link my programming skills with my electronics skills. Thanks for your help. :) | |
I have one piece of code that has to be written in C++, another has to be written in C#. So I decided that I will write a class in C++ that updates the information. Then is read by the C# application. Would it be as simple as compiling all … | |
Does anyone know of a good DirectInput tutorial? Every one I've found adds all kinds of extra stuff into it, and all it gives me are lines of code without explaining the well, or showing me how to fit them all together. | |
Does anybody know of a good tutorial that could teach me how to use LINQ in C++, I will be using it to communicate my game to an online MySQL database and it will also be reading XML files. | |
I'm getting problems with this code. I'm trying to use OpenAL. A sound SDK developed by the makers of OpenGL. When I use this code: [code=c++] #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <al/al.h> #include <al/alc.h> #include <al/alu.h> #include <al/alut.h> ALuint Buffer; ALuint Source; float SourcePos[]={0.0f,0.0f,0.0f}; float SourceVel[]={0.0f,0.0f,0.0f}; float ListenerPos[]={0.0f,0.0f,0.0f}; … | |
How would I go about placing an image around the edges of a table? | |
What is the best way for me to send and int[999999] accross a socket? When I just plug in the pointer to the array I get this error: [icode]Error 1 error C2664: 'send' : cannot convert parameter 2 from 'int (*)[999999]' to 'const char *'[/icode] | |
Does anyone know of one? Even better, one that has graphics, networking, sound, and input? | |
I am on a project that requires the use of C# and C++, is it possible to compile both languages in the same compiler without spending $200 on the full version. When I try to add a .cpp file to C# it says 'Make sure you have installed (.cpp) files.' … | |
I am trying this: [code=c++] #include <windows.h> #include <windowsx.h> #include <d3d9.h> #pragma comment (lib, "d3d9.lib") LPDIRECT3D9 d3d; LPDIRECT3DDEVICE9 d3ddev; void initD3D(HWND hWnd); void render_frame(void); void cleanD3D(void); LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hWnd; WNDCLASSEX … | |
I am learning how to make Windows in C++, and I have a problem: [code=c++] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MessageBox(NULL, L"Hello World!", L"TEST", MB_ICONEXCLAMATION | MB_OK); return 0; } [/code] I get this error: [icode]Error 1 error C2664: 'MessageBoxA' : cannot … |
The End.