2,228 Topics

Member Avatar for
Member Avatar for Anark10n

#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", …

Member Avatar for Anark10n
0
151
Member Avatar for steven447

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 …

Member Avatar for steven447
0
757
Member Avatar for Octet

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 …

Member Avatar for here2serve
0
362
Member Avatar for kimbokasteniv

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 …

Member Avatar for rubberman
0
221
Member Avatar for suley04

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 …

Member Avatar for JorgeM
0
217
Member Avatar for Lucaci Andrew

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 …

Member Avatar for Ancient Dragon
0
257
Member Avatar for SgtMe

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 …

Member Avatar for SgtMe
0
269
Member Avatar for brugernavn

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 …

Member Avatar for thelostboy
0
214
Member Avatar for avestavik

Hello. Can someone tell me if there is possible to get localhost:8000 -> localhost/admin This is on a ubuntu 12.04 with lamp.

0
161
Member Avatar for Ritesh_4

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 …

Member Avatar for Ritesh_4
0
196
Member Avatar for erogol

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 …

Member Avatar for smantscheff
0
272
Member Avatar for toomutch

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 …

Member Avatar for toomutch
0
447
Member Avatar for Nimrod7676

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. =]

Member Avatar for rubberman
0
142
Member Avatar for BlackJavaBean

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** …

Member Avatar for nhadley
0
663
Member Avatar for abhimanipal

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 …

Member Avatar for mike_2000_17
0
2K
Member Avatar for memomk

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, …

Member Avatar for memomk
0
2K
Member Avatar for Alper55

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 …

0
114
Member Avatar for Amaina

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, …

0
125
Member Avatar for mayankwasekar

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

Member Avatar for Nimrod7676
-3
188
Member Avatar for degarb

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 …

Member Avatar for rubberman
0
131
Member Avatar for isaacjun16

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> …

Member Avatar for isaacjun16
0
269
Member Avatar for C0ding

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, …

Member Avatar for C0ding
0
184
Member Avatar for Ritesh_4

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 …

Member Avatar for Ritesh_4
0
174
Member Avatar for adit_kr

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) …

Member Avatar for cereal
0
142
Member Avatar for mjdodd

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 …

Member Avatar for rubberman
0
325
Member Avatar for c24w

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 …

Member Avatar for mjdodd
0
201
Member Avatar for slashqb

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. …

Member Avatar for slashqb
0
174
Member Avatar for abhiroop11

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 …

0
126
Member Avatar for ret801

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

Member Avatar for rubberman
0
168
Member Avatar for paulas24

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 …

Member Avatar for FelineHazard
0
166
Member Avatar for FelineHazard

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 …

Member Avatar for FelineHazard
0
829
Member Avatar for alaa sam

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

Member Avatar for kletig
0
116
Member Avatar for dgcs

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 …

Member Avatar for joehms22
1
204
Member Avatar for chound

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. …

Member Avatar for chound
0
443
Member Avatar for beep

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. …

0
133
Member Avatar for paulas24

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

Member Avatar for rubberman
0
197
Member Avatar for vinod tik

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.

Member Avatar for flagstar
0
284
Member Avatar for khakilang

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 …

Member Avatar for peaceman
0
258
Member Avatar for eranre

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 …

0
180
Member Avatar for Vampiricx3

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?

Member Avatar for jbennet
0
289
Member Avatar for emorjon2

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 …

Member Avatar for jbennet
0
277
Member Avatar for FelineHazard

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 …

Member Avatar for FelineHazard
0
237
Member Avatar for luiseduardo14

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 …

Member Avatar for NotNull
0
360
Member Avatar for jbennet

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 …

Member Avatar for jbennet
0
377
Member Avatar for tubby123

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 …

Member Avatar for Cameronsmith63
0
112
Member Avatar for KatseasSAvvas

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]: …

Member Avatar for KatseasSAvvas
0
2K
Member Avatar for HoneyBadger

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 …

Member Avatar for HoneyBadger
0
2K
Member Avatar for HoneyBadger

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 …

Member Avatar for HoneyBadger
0
186
Member Avatar for HoneyBadger

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 …

Member Avatar for HoneyBadger
0
227
Member Avatar for HoneyBadger

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 …

Member Avatar for mike_2000_17
0
168

The End.