2,228 Topics
![]() | |
#include <stdio.h> #include <mysql.h> #include <string.h> int main(int argc, char **argv) { MYSQL *conn; MYSQL_RES *result; MYSQL_ROW row; int num_fields; int i; char user_query[100]; char word[10]; printf("Enter word: "); scanf("%s", word); sprintf(user_query, "select * from english where word = %s", word); printf("%s\n", user_query); conn = mysql_init(NULL); mysql_real_connect(conn, "localhost", "root", "123", … | |
Hello, I have a website that uses Smarty. When I try `$oSmart->display("header.html");` I get a blank page without warnings and errors. I'v proven with `var_dump()` that the smarty object is succesfully created. I know to that the page is enterily rendered by using: echo "start"; //Smarty Stuff echo "end"; Also … | |
Ok, so I have just set up a server using Ubuntu Server 12.04 but I have hit a bit of a brick wall when attempting to view webpages. I chown'ed the /var/www folder so I could add my files to it and all is working fine from this front but … | |
I am attempting to the compile the source at this [page](http://sourceforge.net/projects/sserver/files/). After resolving the dependencies, I am able to configure successfully, however make does not execute without errors. I was under the impression that a successful configure was meant to ensure a successful make, but since this does not seem … | |
can anyone actually tell me what the point is of using VMWare, and which version I should use if I want to run Ubuntu and MAC OS Lion? Also, if I wanted 2, could I use it 2 practice Network Security between the running OS's?? - obviously this is gonna … | |
OK, so here's the deal. I'm trying to create 2 programs, a server and a client, which communicates between them. I'm working on Ubuntu, throughout FIFO. So, 1st of all, I create 2 FIFO's: $ mkfifo pipe $ mkfifo pipo Ok, and after that I create the client and the … | |
Hi all, I'm a total newbie to Ubuntu (12.04) - I've literally been using it a few hours. I have a samsung n220 netbook with an RTL8192e card, but its not recognised. I've been slaving away trying to get this thing working (connected to router via ethernet right now). I … | |
Hey, I have a couple of questions about cloud computing. Now, If i connect 10 computers together in a cloud, can I consider the 10 computers to be one big computer? If i have 3 computers with 100Gb hdd each, connectet in a cloud. Can i so make a vm … | |
![]() | Hello. Can someone tell me if there is possible to get localhost:8000 -> localhost/admin This is on a ubuntu 12.04 with lamp. |
Hello, anyone can tell me how I can fix the "Login timed out after 60 seconds" error, when the system is not even taking 60 seconds, since as soon as it loads, it gives this error when am trying to enter my login details. I have access to the system's … | |
I want to pass my all database from windows to ubuntu on my computer. I think passing all releated data files will be enough so I need to find the files in my windows. Do you know what isthe directory path for these files? Also is it enough to carry … | |
Hi All, Don't know if this is the right forum for this query, but couldn't find anything more suitable. I have written a new app in VB.net as a front end to a mySQL database held on a PC on the LAN running Windows XP. This worked fine for a … | |
Hello everybody, I'm using Ubuntu 11.10 and I don't know about assembler for linux, but I think there is. Do anybody know about Assembler for linux? Thanks. =] | |
I'm trying my hand at OpenCV and have run into a problem that Dr. Google hasn't been able to help me out with. According to O'Reilly, the following code should play an AVI file in a window the program creates. [CODE] #include "highgui.h" #include <stdio.h> int main( int argc, char** … | |
Hi everybody, Please excuse the noob question as I am new to STL in C++. I am trying to write a very basic program which uses iota. However my compiler is complaining that iota does not exist in algorithm. Some other forums suggested including <backward/algo.h> as iota could have been … | |
hey i have this code when starting the Process to make database it freeze at all what should i do? # -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import sys try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, … | |
i have implemented a PAM module that logs user in according to login information written on NFC-Tags. i can log in via GDM or KDM with checking data on nfc tag and corresponding information on Ubuntu. Here is my question: how can i bypass (GDM or KDM) login screen and … | |
Hi I am working on a project in CSS and xhtml but when i tested the layout on different browsers i identified a problem in positioning of elements. To be precise, the navigation bar renders well in firefox 11 for ubuntu canonical 1.0 but seems not to work in IE, … | |
lavdo dekho 1)press windows button 2)type "system monitor" 3)click on "file systems" 4)double click on "host" 5)its done ye maza aa gaya . wa wa ye maza aa gaya hai na | |
I spent a day this week trying to uninstall Ubuntu and reinstalling xp. I used both gparted to delete the linux partion and linux's fdisk m d. I even did full ntfs format in xp install. I used two different xp cds of different xp versions. Both would copy the … | |
Hi, I have a problem with a the imput of some data on a program Im making (FYI new in c++, homework). So basicly the progrma I have is to imput diferent type of data, this is what im doing. (Im using codeblock 8.02 in Ubuntu 10.04 ) #include <iostream> … | |
Hello everyone, Like i said in some other posts i made before, i'am totally new with Ubuntu, so what i really would like to know is if there is a way i can add some extra content to the ubunto Desktop.iso CD. i have the Ubuntu v 9.04 Desktop i386, … | |
Hello, I have a Ubuntu 10.04 server running on a VM on Windows XP, and would like to sync the VM's date/time with the XP one. How can I do this? I tried with the date -s command in the console, but after some time the date/time on the VM … | |
I am using firefox 9.0.1 under ubuntu 11.10. Suppose I am lying that I am using internet explorer 8 under windows vista. (by manipulating http request headers). Is there any way for the server to find this out? (at least the fact that I am using Ubuntu not Microsoft Windows) … | |
I hope this may interst others who have similiar problems! I have a Western Digital 1.5 Terra Hard disk that is formatted in EXT3 for a humax satellite box. ( satellite type boxes tend to be EXT format for larger file handling) It went awol due to power cut whilst … | |
Hello, thanks for reading. I have recently noticed sound only coming from one speaker. I have done the obvious diagnoses and determined: [LIST] [*]both speakers work fine (on another PC using the same set-up); and [*]it is not the operating system (Windows) - I booted a recent Ubuntu Live CD … | |
Operating System Used:Ubuntu 11.04 Compiler Used: GCC Program related files:[Git Hub Link][1] I'm trying a implement program which will do a job, same as that of CPP (The C preprocessor) when I compile a .c file. In this particular code Copy_file_to_buf function not copying the whole file into the buffer. … | |
i am using gcc 4.4.3 on ubuntu 10.4 32bit machine. i use 'gdb' to debug my code. Since few days i am seeing that whenever i debug code gdb steps into the c library functions used in the code also(like printf,fgets etc). This shows a long list of calls from … | |
hello I have just installed ubuntu over my windows partition and I like it but im having minor issues, when I open system monitor and look at the memory usage I see I have 741 mb of memory wtf!?! cause I know I have 2gb installed | |
hello everyone Of late, our company has been getting attacks from someone on the internet and this has led us to being black listed. The administrator thinks its through my machine that the attacker is gaining access. I use ubuntu 10.04.3 on a windows network. How can I tell if … | |
I am trying to get iptables to block multiple ssh attempts, and having only partial success (Ubuntu 10.4 LTS). I've been following recommendations from the [URL="http://www.la-samhna.de/library/brutessh.html"]excellent post by Rainer Wichmann[/URL] and decided the best strategy suited for my system is simply having iptables block multiple attempts at ssh. Thus I … | |
hi everyone well I'm using ubuntu 12.04 , I'm trying to install the update but it keeps giving me a message that the source isn't authorized . So is there's anyway to install the required updates using the command line ?? Thanks in advance | |
After a few hours searching and not finding an answer, does anyone know _if_ thunderbird can be configured to work with Verizon DSL (Actiontec) wired model/router)? Simularly, can Ubuntu be configured to work with verizon dsl? Verizon tech reps say they have no knowledge of a solution. Mostly I get … | |
Hi, I changed my video card day before yesterday from ATI 4650 to 6670, and then I had problems while switching on my computer for a few times, then it got sorted. Today, windows informs me that my computer is running slow, so it wanted to switch of aero interface. … | |
I am here to find out why all of your so-called operating systems on this planet are so, I believe you say "****ed"? More seriously, I just "upgraded" from Vista Home Pro to 7 Ultimate and I was so happy thinking these bizarre quirks of Vista are in the past. … | |
hey this is paulas24 i would love to install a writer software that can detect external cd/dvd/writer drivers on ubuntu 10.04 lts. any help will be highly appreciated | |
can anyone tell how to uninstall ubuntu 11.10 i have it in my laptop and the OS(ubuntu) doesn't load properly. i have win7 also in the same system. | |
I heard of Linux many years ago but did pay any attention to it. Only 2 years ago when I was a photographer for an event call MYGOSCON (Malaysian Government Open Source Conference) where I get to know about Open Source and Linux. From than on I was eager to … | |
I was wondering if anyone can assist me with a problem that I have with C Bluetooth programming (Linux Bluez). I am using Ubuntu 10.04, BlueZ 4.60. My goal is to have a L2CAP socket in which there will be minimal delay for sending data between 2 computers. So far … | |
hey guys, I'm studying to be a pro C++/Java programmer and are currently working in Ubuntu, is this a suitable choice? Or is there a more suitable linux distro? | |
hi all! i have a serius problem with the USB keyboard. I've installed Ubuntu but when the OS choosing menu comes up, the keyboard doesn't work, which make the ubuntu worthless :( I have installed ubuntu before, on a previous netbook running windows XP and then the keyboard worked without … | |
Hi all, I am attempting to install [URL="http://www.csc.liv.ac.uk/~greg/sshdfilter/"]sshdfilter[/URL] on my ubuntu 10.4 LTS machine. This package is supposed to block ssh-bruteforce attacks. It does that by adding blocking rules to iptables when multiple bad ssh logins are detected, and blocks the ip that initiated them. This package usually relies on … | |
Hey guys, i'm trying to compile this piece of code with nasm in Ubuntu. It's a boot loader for a simple operational system i'm doing as a university project. [CODE][BITS 16] ; 16 bit instructions [ORG 0x7C00] jmp word load db "ONYXDISK" ; OEM Label String dw 512 ; Bytes … | |
Ok, im trying to PXE boot a thin client under Linux. Ive been using the following HOWTO: [code] tftpd cannot do PXE installs due to the lack of the tsize option, so we use tftpd-hpa instead: sudo apt-get install dnsmasq tftpd-hpa tftp-hpa openbsd-inetd xinetd bootp dhcp3-server sudo mkdir /var/lib/tftpboot cd … | |
Hey , I wanted to know if browsing a page takes the same data as downloading it. Also, does streaming a youtube video take the same bandwidth as downloading it. The obvious answer would be yes, because buffering is basically downloading in itself. But I have noticed that it takes … | |
I'd like to ask the user if he/she wants to rerun a script. I've thought of doing that with a while. My problem is that both [CODE] import sys rerun = "y" while rerun == "n": sys.exit() else: print("do some stuff") rerun = str(input("Would you like to start again? [y/n]: … | |
I set up a MySQL databse following this tutorial: [URL="http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/"]http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/[/URL] Here is what I did: [CODE]$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.51a-3ubuntu5.1 (Ubuntu) Type 'help;' or '\h' for help. Type … | |
Guys I installed mySQLdb in Ubuntu with: [CODE]mydeskt@mydeskt-desktop:~$ sudo apt-get install python-mysqldb[/CODE] but when I go to the python interpreter and type: [CODE]>>> import mySQLdb [/CODE]I get: [CODE] Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named mySQLdb [/CODE]It is installed though, because when … | |
Guys I just installed Ubuntu 10.04 last night and I have been struggling to get it to work. Here are my current misfortunes: 1.) Ubuntu won't use my built in speakers(I can use headphones just fine though.) 2.) Microphone wont work 3.) Wont detect wireless card.(To get around this I … | |
Guys I just installed Ubuntu 10.4 and it wont detect my wireless networks. Here is my progress so far: 1.) I uninstalled Windows 7 2.) I installed Ubuntu 11.10....but didnt' like the new lay-out. 3.) So I installed Ubuntu 10.04 Ubuntu 11.10 recognized all wireless networks...no probelm. I just didn't … |
The End.