1,446 Topics

Member Avatar for
Member Avatar for cyberbemon

i'm writing a C program in unix that take a number upto 5 and creates that amount of threads..if the use doesn't enter anything the program quits after 5 secs...and this is where i'm stuck T_T ..how do i do this ? time.h ? code of wat i've done so …

Member Avatar for Ancient Dragon
0
177
Member Avatar for Theanonymous

I need to write a program that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. Like this : if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form …

Member Avatar for finchh
0
295
Member Avatar for Enzo85

Hello everyone I am new to this site. I have a university assignment in which I need to program a 2 player pacman game, using C and the Unix operating system. If more than 2 users have typed the command to run the program/s the users must wait in FIFO …

0
129
Member Avatar for pythonbegin

Hi all I have a program that is written in java and have three different executables program.sh, program.bat, program.jar. i can starts the gui by using program.jar and then in gui i can enter parameters. but as i want to run it over several parameters and get the outputs. i …

Member Avatar for JamesCherrill
0
215
Member Avatar for echocoder

I am using the following string and Java code to create a user on a Linux box via Java. [CODE=java] ... String x = "/usr/sbin/useradd -g users -s /bin/bash -c 'FIRST M LAST, STERK,DIV-DIS-OFF,123-456-2913' -p 2342asdfa231rcawef09 -d /home/flast -m flast"; RunCommand(x); ... [/CODE] However, upon execution it spins a list …

Member Avatar for thekashyap
0
300
Member Avatar for MisterSinyster

need help with a homework problem and i've been starring at code all day and my brain is fried... any advice or pointers would be greatly appreciated Description of the Problem Write a method minimum3 that returns the smallest of three floating-point numbers. Use the Math.min method to implement minimum3. …

Member Avatar for jon.kiparsky
0
1K
Member Avatar for harish9

*ptr = 'hello world"; if we try to modify the content the result is undefined when i worked with gcc in unix. But i can modify the content in Turbo c. How it worked i got confussed.

Member Avatar for rubberman
0
146
Member Avatar for plannerK

I'm mostly a former developer, doing small pieces of code in a variety of languages and applications in order to help out my team. I joined DaniWeb to learn new things, be reminded of old things, get help and help out others. I do mostly systems engineering now, processes, quality, …

Member Avatar for AndreRet
0
103
Member Avatar for bufospro

Hi all, I am new in shell scripting and I need your help 1. I would like to make a list of files (no folders) of unix system which do not belong to root 2. I would like to make a list with directories of system which the first letter …

Member Avatar for bufospro
0
151
Member Avatar for sidlampard

This is an assignment question, I know i should do it myself, but believe me i have just learned this subject and couldn't find the answer. Please if someone could give me the answer, i would be greatfull. And please if you could hurry because I have to submit on …

Member Avatar for Potion
0
111
Member Avatar for imon214

how to populate select box depending upon the selection of the radio button on rails anyone knows what will be the possible ajax and rails script for populating dropdown list values based on selected radio button on rails 3 example there are two type of platform choices(windows, unix) of radio …

Member Avatar for Taywin
0
1K
Member Avatar for arjunaw

In a unix pthreads based app I'm working on, I have objects of a particular class (call it class foo) being created in multiple threads. I need a specific public method of class foo invoked at or after 60 seconds of the object coming into existence (it is not imperative …

Member Avatar for arjunaw
0
4K
Member Avatar for baldwindc

I have worked with Java, C, and C++ primarily on unix systems. I would like to get into Windows application development, and have two questions. (In your opinion) - What is the best IDE supported lanauage in the Windows environment that is capable of sending system events to change system …

Member Avatar for Momerath
0
143
Member Avatar for cliffcc

If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// …

Member Avatar for diafol
0
122
Member Avatar for virtue

Hi, I wanna traverse inside the file system by using threads and processes.My program has to assume the first parameter is either given as "-p" which offers a multi-process application or "-t" which runs in a multi-threaded way. The second parameter is the pathname of a file or directory. If …

1
146
Member Avatar for NicAx64

[quote] •… Linux is basically a DOS based OS. •These days we are using 128 and 256 bit processors. •A compiler is a software that converts code written in a particular programming language to machine code. To compile a program, you must hit ALT+F9. (It took me a while to …

Member Avatar for Momerath
0
251
Member Avatar for andylbh

Hi guys, I'm trying to do a client server socket program, where the client writes a list of numbers for the server to compute, and then finally server returns a result. I've managed to get my functions working the way I want (not in client/server) But I've problem implementing it …

Member Avatar for gerard4143
0
2K
Member Avatar for kuchi

Apache is running in UNIX box, and we have configured folder path in config file and we are accessing python code from that folder. In the python code, we have two methods new_page() and access_form_elements(), new_page() -- print new HTML page with two form elements and method=POST and action=same .py …

0
83
Member Avatar for Xytheron

Hey all! So i've been working on a unix chat server and I think I've done a good job having no idea what I'm doing :-p. The only issue I'm running into is that I can't get it to go 1 to multiple. For instance, the idea is that any …

Member Avatar for Xytheron
0
149
Member Avatar for dark3lf

Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount …

Member Avatar for thekashyap
0
202
Member Avatar for Christine

I can upload one file and would like to allow for 4 - 6 file uploads. I did not write the upload code and all I need is to add more uploads and I am not sure how to alter the code. # maximum file size allowed (kilo bytes) $max …

0
85
Member Avatar for ebbtide

Hello, I need assistance with a pearl/expect script to change user password on mulitple UNIX/Linux servers. I have one dated 11/16/2006 but it is not working exactly as expected. Was hoping there was an updated version that might assist me? It works as such: passchange.script -cmd "passwd user" -inputfile file_with_listofhosts …

Member Avatar for thekashyap
0
196
Member Avatar for gregarion

Hey guys , i am having a problem with string arrays. Basically ,i declared my array in the header file. Here is my prog. [CODE]Main.cpp using namespace std; int main(){ string Test = "fat"; e te; te.b(Test); } Test.h class e { public: void b(string) string a [ ]; int …

Member Avatar for Ancient Dragon
0
152
Member Avatar for l00kit

Hello all, I'm studying socket programming and have trouble when simulate a FTP server (I don't want to use pyftpdlib). The problem is when the client want to list the directory (LIST command) on the server, I do not find a way to send directory contents. here is the code: …

Member Avatar for l00kit
0
254
Member Avatar for lewashby

I'M taking a Linux/Unix admin course from the Oreilly online school. But I'M having a hard time understanding tcp/ip section, it's really making my head spin. Here is some of the lesson, could someone please help clear this up for me? thanks. Network, Broadcast, and Subnets Let's give ourselves a …

Member Avatar for lewashby
0
407
Member Avatar for Xytheron

Hey all! So my buddies and I have been in the OS programming class and we've gotten ourselves an idea. We get free range to the Unix server for academic purposes and we thought it might be fun to try and write a PTC server so we can chat across …

Member Avatar for Xytheron
0
91
Member Avatar for MasterMic

I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which …

Member Avatar for MasterMic
0
239
Member Avatar for tuse

In a shell script, I want to 'spool' (record) the shell prompt & command typed alongwith its output into a file. eg: In the script, if I give a 'ls' command, the file should contain: [CODE] <<root@server ~>>$ ls a b c.txt <<root@server ~>>$ [/CODE] i.e. the command as if …

Member Avatar for shibblez
0
2K
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Member Avatar for baldwindc
0
242
Member Avatar for Oblivious21

hey everyone this is my situation. i am taking a programing course that introduces you to a few languages. the first one is C now im a java guy (not very good with it yet) im still learning but i understand the basic concepts so im not totally in the …

Member Avatar for Oblivious21
0
265
Member Avatar for Xytheron

Hey all. I don't want to be one of those that sounds like HW but they didn't say it was so I'll be honest, this is HW but I feel like I've done enough that it's reasonable to ask for a little help here. This is a snippet from a …

Member Avatar for charlybones
0
209
Member Avatar for alaa sam
Member Avatar for rcmango

Hi, well I have written something that compiles and runs fine with a different compiler, but when trying to use a g++ compiler, I get errors when compiling in a unix environment. Here is the command line I have used: [CODE]g++ Agent.h Agent.cpp Driver.C g++: Compilation of header file requested. …

Member Avatar for Akill10
0
118
Member Avatar for Xytheron

Hey all! Long time reader, first time poster! So I'm trying to communicated between two processes on a UNIX machine using shared memory. I believe everything in this program is working fine except for how I'm attempting to call the memory to check. Basically the parent process writes to the …

Member Avatar for Xytheron
0
169
Member Avatar for gsingh2011

Does anyone know if its possible to type in a number and get the resulting ASCII characters in a batch file? I think in Unix based machines you type the command then \042 or whatever number you want, but I don't know if you can do it in batch files...

Member Avatar for SimonEyes
0
4K
Member Avatar for alaa sam

hi I'm new to unix and i'm taking a tutorial about it , but they mentioned something like the X window system and i don't know what is it ? , so can any one explain it for me , and I'll be thankful.

Member Avatar for alaa sam
0
120
Member Avatar for Duki

Hey everyone, We're trying to figure out if it's possible to use winsock on an AIX system? If not, is there any native support in C++ for unix based machines and e-mail support, without importing 3rd party libraries?

Member Avatar for synxmax
0
171
Member Avatar for chakebubu

I woulld like to try out motion detection using a webcam in PHP. Would it be possible to do it in Windows? I have already done a google search but the script available is for Unix

Member Avatar for sDJh
0
39
Member Avatar for jrhitokiri

I have these strings as $remaining_time: "3h5m" "4h9m" "15m" "17h" "6d17h" What I want to do is be able to parse through them and output the results in unix format so I can add them up to my $start_time (in unix timestamp) to get the end time. Any suggestions how …

Member Avatar for jrhitokiri
0
192
Member Avatar for eman neercs

What I want to do is to take the previous day's logfile, strip out the search phrases and insert these into a mysql db. Currently using Deep Log Analyser to manually lift the search terms, but I's appreciate some pointers as to how the parsing could be done by a …

Member Avatar for nonshatter
0
140
Member Avatar for Duki
Member Avatar for Frederick2

I don’t know why my operator += and operator + string class member functions are taking so long to do their job and are so inefficient compared to the Standard C++ Library String Class. Its not that they don’t work; its just that they are slower by a factor of …

Member Avatar for Frederick2
0
586
Member Avatar for BobTheLob

Hey guys, it's been quite a while since i've been on here :P I'm fiddling around with the Go language. However, I'd much rather have a build script that'll compile the program for me than typing in the lines of code necessary every time: [CODE] 6g hello.go 6l hello.6 ./6.out …

Member Avatar for griswolf
0
98
Member Avatar for omokop

[code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0233)[url]http://employer.dice.com/talentmatch/servlet/TalentmatchSearch?op=201&dockey=xml/5/8/588dc5c2940163a08ac76fd58199497b@endecaindex&cskr=1&ranking=0&FREE_TEXT=oracle%2Boracles%2B&DESIRED_POSITION=%2B&RECENT_EMPLOYER=%2B&SCHOOL_NAME=%2B[/url] --> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>About Steve Peters </title> <style type="text/css"> #wrapper { width: 318px; } #btnHeader { background-image: url( /assets/images/notes_head.gif ); width: 318px; height: 36px; padding: 0; margin: 0; font-size: 11px; font-family: Arial, Helvetica, sans-serif; …

-4
85
Member Avatar for NickPatton

#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and …

Member Avatar for NickPatton
0
233
Member Avatar for DJSAN10
Member Avatar for steelshark
0
97
Member Avatar for Reverend Jim

When I try to build a C++ project I get the error message in the title line. I am trying to help my son move his development from a unix cluster to his laptop. He is running Windows XP Pro and has installed the Eclipse IDE for C/C++ Developers. The …

Member Avatar for nezachem
0
4K
Member Avatar for Tango2010

Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) …

Member Avatar for ~s.o.s~
0
505
Member Avatar for iambenny

i have run 2 nic cards in an assortment of computers. the reason is that the server is unix based & the router modem for the web only has a command base interface for router settings. so we decided that the second nic card will be used for a p2p …

Member Avatar for Breneley
0
303
Member Avatar for alaa sam

hi everyone i'm new to unix/linux . almost know nothing about it , but i wants to learn about it . so how can i get it on my pc . now i use windows xp

Member Avatar for ThisOldMan
0
291

The End.