1,446 Topics

Member Avatar for
Member Avatar for RexxX

I've never written byte variables on my unix shell before, so I don't know if it works or not. I'd been using unsigned ints to get hex numbers as input but I was having trouble with what my input actually was. My friend told me to use byte variables instead …

Member Avatar for Narue
0
139
Member Avatar for afireinside7710

hey guys, first post. I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while …

Member Avatar for programmersbook
0
198
Member Avatar for thanjaa

Hi We have dd command in Unix to make an image of the entire hard disk or a partition of it (bit copy not just a file copy). I would like to know how to do the same in C++. Thanks in advance....

Member Avatar for Ancient Dragon
0
206
Member Avatar for absk

I have been coding in C++ for a few years now and am comfortable with OOP concepts and Data Structures. Now I wish to pursue a higher level language which will hwlp me in application development. After much reading, I arrived at C# and Java. Which one should I pursue? …

Member Avatar for peter_budo
0
160
Member Avatar for avirag

Hi all I am making a code for folder lock, for that i made a unix code in notepad which makes a batch file of that but i am having a problem in this, when i run this batch file the folder converts into control panel shape.But i want that …

0
135
Member Avatar for Ryyback

Hey all, I am just learning PHP and have pieced this code together, but I cannot get it to work. Anyone have an idea on why? First file is the file contact page. <html> <head> <title>RT Photography-Contact Page)</title> <style> BODY{font-size: 8pt; font-family: Verdana } .button {background-color: rgb(128,128,128); color:#ffffff; font-size: 8pt;} …

Member Avatar for kireol
0
110
Member Avatar for Namibnat

[COLOR="Red"]Note two things: First off, I don't guarantee that it works well. Writing to files, if done wrong can always break things. Be careful. I mostly participate in this forum (the Python part) for fun, and my code is written like that. Second: this script is about copying things. I …

Member Avatar for Namibnat
1
821
Member Avatar for discovery-power

Hi All, I recently made the move from Windows to Mandriva Linux 2010, in Windows I used an IDE to write my code then build my projects, in Linux I cant find a suitable IDE im really struggling to build my projects. Now I can write my projects in kwrite …

Member Avatar for discovery-power
0
118
Member Avatar for halluc1nati0n

I have trouble understanding the compilers. The following code does work in UNIX under g++, but under VC++ it would not even compile. Anyone can provide valid reasons why? [B]Code:[/B] [CODE]#include <stdio.h> #include <iostream> #include <string.h> using namespace std; int main() { string tmp_nw_msg, crc_chksum, buffer; cout << "Enter the …

Member Avatar for Nick Evan
0
260
Member Avatar for wolverine_ramir

I would like to know how do i create a flat file from a query in oracle. For example i would like to create a select statement and the output to the flat file should be like this: name,location,address ...... Later on, this task will be embedded in a unix …

Member Avatar for debasisdas
0
112
Member Avatar for Mattpd

I officially have the worst C professor in the world. The guy hasn't answered my email in weeks and I don't have a class meeting before this assignment is due, so I have come here for some help. If anyone could point me in the right direction any part of …

Member Avatar for Trad
0
206
Member Avatar for halluc1nati0n

I'm trying this in Visual Studio 2005 (VC++) [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <bitset> #include <sstream> #include <conio.h> #include <iostream> using namespace std; #include <time.h> string tot_msg, message, to_be_sent_msg, sent_msg, msg_to_be_sent; char * transport_layer_data_header; char * transport_layer_data_msg; bool whole_msg_sent=false; int actual_len, i, seq_num=0; char * mynode = "2"; …

Member Avatar for mrnutty
0
251
Member Avatar for imclumsy

Hi guys, I have this project question that is just REALLY boggling me and I am getting nowhere :( The project description is really large and I can't post all of it hear but I'd just like to post the part I'm on and how far I've gotten with the …

Member Avatar for imclumsy
0
153
Member Avatar for cabosun

So I have two MAL programs that I am getting 2 errors in each of them. I am using xSpim on unix to run this program. I wrote this using the windows version PCSPIM which compiled the program and ran it flawlessly. But when I tried to run it using …

0
86
Member Avatar for newsguy

There is no doubt that the current server market environment is the worse it has ever been, but a new report from IDC suggests that the worse may be over as the market posts sequential quarterly revenue growth for the first time since 2008. The [URL="http://www.idctracker.com"]IDC EMEA Quarterly Server Tracker[/URL] …

0
604
Member Avatar for Voulnet

Hello all, I am a Computer Engineer, fresh off graduation, and I would like to educate myself on a broad range of technological fields and aspects. I am the kind of person who is easily distracted while reading from a screen, and so I would like to ask fellow daniweb …

Member Avatar for Voulnet
2
197
Member Avatar for Yeen

I've got a bit of a problem. I've got a test tomorrow in python programming, and I've been learning the language using 3.1. The computers we're taking the test on all have 2.6 installed. They're Linux (not very familiar with Unix). Obviously this is troublesome. I don't want to spend …

Member Avatar for Yeen
0
155
Member Avatar for roswell1329

My company is retiring an online document warehousing application that stored lots of text data. The application stored the data in a folder hierarchy that looked just like a Windows folder tree. I'm trying to replicate that hierarchy on a UNIX file system, but the tools provided with the application …

Member Avatar for roswell1329
0
95
Member Avatar for Prahaai

Good day. I would need an advice about sys.stdout and sys.stderr. I use Python 2.6, on Windows XP SP3, but i think the question is the same for UNIX/ MAC computers. I tried all possible combinations before posting this message, so ANY advice would be great. I work with "subprocess" …

Member Avatar for Gribouillis
0
346
Member Avatar for ryy705

Hello, What permissions should PHP files have on a unix/linux system? Is 655 appropriate? Many thanks in advance.

Member Avatar for diafol
0
84
Member Avatar for liamfriel

Hey Guys, I am using an Ajax Image uploader, which for a while worked - but now does not. I was wondering you guys could help me figure out what is wrong. The site is on a host and I have set up a ticket - but I would also …

0
112
Member Avatar for roverphoenix

This program was written and tested in unix/linux environment (in EMacs editor )with a GCC compiler.

Member Avatar for Ancient Dragon
2
248
Member Avatar for khess

I've done a bit of research on Windows 7 Enterprise to discover some of its new features and to uncover its secrets. From what I've seen so far, [URL="http://www.microsoft.com"]Microsoft[/URL] has provided some interesting Linux-esque features that might accidentally boost Linux adoption as a side effect. The two primary features to …

Member Avatar for MikeAinOz
1
687
Member Avatar for TheBeast32

Hi, I installed cygwin recently and wanted to do some network programming with it. Since I have never used unix sockets before, I'm reading Beej's Guide To Network Programming. I took this from section 5.1 and tried to compile it. I get a few errors that I can't figure out …

Member Avatar for developer_borja
0
671
Member Avatar for naziatarannum

Hi all, I have a simple question as it appears. But am unable to get the solution. Question is -how do I get the access time of a file in unix. please advise on the command. Thanks

Member Avatar for Aia
0
109
Member Avatar for Mikorist

Hi, About Me My personal interests: Religious Books Humanities My favorite quote: Many people sing, but few are singers. Many people write, but few are writers. Many people speak, but few are orators. Many people think, but few are thinkers. Many people pray, but few are religious. Many people smile, …

0
24
Member Avatar for ruwanaru

This is the error [CODE]Warning: Cannot modify header information - headers already sent by (output started at /home/rejocoma/public_html/login-registor/do_login.php:9) in /home/rejocoma/public_html/login-registor/do_login.php on line 40[/CODE] and this comming only on my hosting not in local machine ita unix hosting solution can any one give me a help on this im a new …

Member Avatar for venkat0904
0
116
Member Avatar for PDB1982

I'm trying to see if there is a way to have my navigation bar follow the user as he/she scrolls down the page....I think it might have to do with JAVA, but I wanted to see if anyone knew a css trick first. HTML Code: [code] <div id="sidebar"> <ul class="sidenav"> …

Member Avatar for PDB1982
0
123
Member Avatar for khess

Have you searched for Linux distributions that are 100% free? Did you find more than one that suited your needs? Well, here's a list of nine from which you can choose your favorite. Free means freedom to alter, redistribute, sell or release as a different product with no restrictions on …

Member Avatar for khess
1
2K
Member Avatar for cabosun

So I am suppose to write a program that will implementing one method if computing checksums for a file containing integers. I am executing the program by a command line from the following form: p4a inputfile outputfile I can compile the program in Dev C++ compiler with no errors. But …

Member Avatar for gerard4143
0
81
Member Avatar for webmastercook

I have a clone script and i have uploaded it to my server i followed the instructions but to be frank with you all i don't have a clue whats happened or why its happened but i keep getting error page at this site [url]www.freefacebookinfo.co.cc[/url] "Internal Server Error The server …

Member Avatar for webmastercook
0
142
Member Avatar for katharnakh

I am facing problem connecting problem connecting remote MySQL server which is firewall protected. I used the valid user name and password, but it throws me the error [I]OperationalError: (2003, "Can't connect to MySQL server on 'www.myreomtemysqlserver.com' (10061)")[/I] I want to connect from python. I searched in Google is there …

Member Avatar for wendymclee
0
261
Member Avatar for Ineedhelpplz

So I have an assignment that I have been attempting for 2 weeks now and the class has been given extensions twice now. Everyone seems to be struggling with this part of the assignment. The assignment is to do K&R Exercise 5-13, unix tail command. [COLOR="Red"] Instructions: "The program takes …

Member Avatar for Ineedhelpplz
0
247
Member Avatar for PopeJareth

Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Member Avatar for PopeJareth
0
256
Member Avatar for *nix

i am new to unix. i have written a code for testing the basic functions read / write and open i have read that read/write returns the no of bytes read/written but here my write is returning 1 and read is returning 0 no matter how many chars i write. …

0
50
Member Avatar for symmet

Hi, I'm trying to create a simple shell in C for Unix. I've been able to do all the parsing of commands and execution, but I'm having a problem with piping. I think the problem is that I'm not hooking into the correct pipe for the input of the second …

Member Avatar for gerard4143
0
177
Member Avatar for jerrytouille

Let's start with 1 pipe such as ex: "ls | grep hello" What I'm trying to do is to split the *args[] into 2 that one contains "ls" (left-of-the-pipe command) and the other contains "grep hello" (right command) -> so I can execute the child pipe as producer and parent …

Member Avatar for jerrytouille
0
213
Member Avatar for deven1974

Can anybody help me with a unix script project that I have no clue on starting it, and also I 'm not that much familiar with unix scripting. Don't get me wrong have little bit experience with Linux, but when comes to script I'm just a beginner. If any someone …

Member Avatar for ithelp
0
96
Member Avatar for axed

Sorry for a duplicate post. The other post had gotten messy and since I was not allowed to delete it, I am starting a new post. Hi, here are the errors I am getting when i compile on cygwin. It is weird that the code compiles and runs perfectly on …

Member Avatar for axed
0
212
Member Avatar for rudz

plz plz urgent im a beginner in unix. can someone reply asap . what are kernel modules?what role do they plan in building and runnig a kernel?what happens if the linux kernel did not support modules?

Member Avatar for rudz
0
137
Member Avatar for jerrytouille

Hi, I found this website is very helpful since I'm a newbie in Unix and C++ coding. Can't wait to ask questions :D Thanks!

0
18
Member Avatar for raigs

How can I return the file modification time as an int (UNIX epoch)? [CODE]#include <time.h> #include <sys/stat.h> int *FILEMOD(char *FILENAME) { struct stat ATTRIBUTES; time_t MTIME; stat(FILENAME, &ATTRIBUTES); MTIME = ATTRIBUTES.st_mtime; return MTIME; } int main(void) { printf("%i",FILEMOD("file.txt")); return 0; }[/CODE] gcc errors: [ICODE]filemod.c: In function ‘FILEMOD’: mod.c:14: warning: return …

Member Avatar for SVR
0
80
Member Avatar for opt!kal

Hi there, So im working on this assignment where the user is supposed to input a variety of UNIX commands and they must behave as if one typed it into the terminal. My current problem lies with when a user tries to redirect the inputted commands to some file. Currently …

Member Avatar for opt!kal
0
102
Member Avatar for zhou1919

To create the registration account in my homepage, do I need to set up a database to store all usernames and passwords? If I do, how to set up the database on the unix server where my homepage is on?

Member Avatar for Will Gresham
-1
61
Member Avatar for LSUchemist

I have an assignment to write a program using 1D and 2D parallel arrays with input coming from a .data file given to us. I am nearly a complete novice with writing code and right now I am having a very hard time getting my program to write any values …

Member Avatar for jonsca
0
96
Member Avatar for onemanclapping

Hi, I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function. Can someone help me? I need ideas for how to read a file system! How can I list directories (to a string or …

0
115
Member Avatar for chowdarysmk

[B]Hello members[/B] i am the new one to css... In our forum above we see Hardware/software softwaredevelopment web development internet marketing business exchange is there in tis how can create dropdown lists like hardware/software 1.microsoftwindows 2.Linux&unix 3.Mac etc... How can i get tis type of style sheet plz give the …

Member Avatar for Beg.CProgrammer
0
74
Member Avatar for Namibnat

I am busy with a project for fun and I am finding it tricky to set balues for mysql queries. If I do the following: [CODE]function CalcPostByTime(){ include 'DB_connection.php'; $result = mysql_query("SELECT ztime FROM blogpost;");[/CODE] What is the simplest way to set an array, which will be a return value …

Member Avatar for kekkaishi
0
137
Member Avatar for redpython

Hi all – I am running Python 2.6.2 in a Windows XP Pro environment. I am trying to write my first python/cgi script combo and they must execute on a Linux websever. After surfing the web I realize that MS-DOS and Unix systems use different methods to identify end-of-line information …

Member Avatar for redpython
0
141
Member Avatar for want_to_code

what are the ways that a process can be created in UNIX apart from fork/vfork?

Member Avatar for 50701735
0
52

The End.